hostapd: update to v2.10
[openwrt/staging/mkresin.git] / package / network / services / hostapd / patches / 470-survey_data_fallback.patch
index 1c094bed23ce5f0cd0b54c8496d5b2ebb97623c0..359b5f3ef8f45c14e06ba884b67855b8949eb402 100644 (file)
@@ -1,26 +1,6 @@
 --- a/src/ap/acs.c
 +++ b/src/ap/acs.c
-@@ -292,18 +292,12 @@ static void acs_fail(struct hostapd_ifac
- static long double
- acs_survey_interference_factor(struct freq_survey *survey, s8 min_nf)
- {
--      long double factor, busy, total;
-+      long double factor, busy = 0, total;
-       if (survey->filled & SURVEY_HAS_CHAN_TIME_BUSY)
-               busy = survey->channel_time_busy;
-       else if (survey->filled & SURVEY_HAS_CHAN_TIME_RX)
-               busy = survey->channel_time_rx;
--      else {
--              /* This shouldn't really happen as survey data is checked in
--               * acs_sanity_check() */
--              wpa_printf(MSG_ERROR, "ACS: Survey data missing");
--              return 0;
--      }
-       total = survey->channel_time;
-@@ -392,20 +386,19 @@ static int acs_usable_vht80_chan(struct
+@@ -420,20 +420,19 @@ static int acs_usable_bw160_chan(const s
  static int acs_survey_is_sufficient(struct freq_survey *survey)
  {
        if (!(survey->filled & SURVEY_HAS_NF)) {