mvebu: disable polling delay for passive trip point for puzzle thermal
[openwrt/openwrt.git] / package / network / services / hostapd / patches / 470-survey_data_fallback.patch
1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Wed, 15 Jun 2016 17:31:48 +0200
3 Subject: [PATCH] hostapd: implement fallback for incomplete survey data
4
5 --- a/src/ap/acs.c
6 +++ b/src/ap/acs.c
7 @@ -467,17 +467,17 @@ static int acs_get_bw_center_chan(int fr
8 static int acs_survey_is_sufficient(struct freq_survey *survey)
9 {
10 if (!(survey->filled & SURVEY_HAS_NF)) {
11 + survey->nf = -95;
12 wpa_printf(MSG_INFO,
13 "ACS: Survey for freq %d is missing noise floor",
14 survey->freq);
15 - return 0;
16 }
17
18 if (!(survey->filled & SURVEY_HAS_CHAN_TIME)) {
19 + survey->channel_time = 0;
20 wpa_printf(MSG_INFO,
21 "ACS: Survey for freq %d is missing channel time",
22 survey->freq);
23 - return 0;
24 }
25
26 if (!(survey->filled & SURVEY_HAS_CHAN_TIME_BUSY) &&
27 @@ -485,7 +485,6 @@ static int acs_survey_is_sufficient(stru
28 wpa_printf(MSG_INFO,
29 "ACS: Survey for freq %d is missing RX and busy time (at least one is required)",
30 survey->freq);
31 - return 0;
32 }
33
34 return 1;