hostapd: update to 2023-03-29
[openwrt/staging/dedeckeh.git] / package / network / services / hostapd / patches / 470-survey_data_fallback.patch
1 --- a/src/ap/acs.c
2 +++ b/src/ap/acs.c
3 @@ -455,17 +455,17 @@ static int acs_get_bw_center_chan(int fr
4 static int acs_survey_is_sufficient(struct freq_survey *survey)
5 {
6 if (!(survey->filled & SURVEY_HAS_NF)) {
7 + survey->nf = -95;
8 wpa_printf(MSG_INFO,
9 "ACS: Survey for freq %d is missing noise floor",
10 survey->freq);
11 - return 0;
12 }
13
14 if (!(survey->filled & SURVEY_HAS_CHAN_TIME)) {
15 + survey->channel_time = 0;
16 wpa_printf(MSG_INFO,
17 "ACS: Survey for freq %d is missing channel time",
18 survey->freq);
19 - return 0;
20 }
21
22 if (!(survey->filled & SURVEY_HAS_CHAN_TIME_BUSY) &&
23 @@ -473,7 +473,6 @@ static int acs_survey_is_sufficient(stru
24 wpa_printf(MSG_INFO,
25 "ACS: Survey for freq %d is missing RX and busy time (at least one is required)",
26 survey->freq);
27 - return 0;
28 }
29
30 return 1;