2016-06-15 15:31:48 +00:00
|
|
|
--- a/src/ap/acs.c
|
|
|
|
+++ b/src/ap/acs.c
|
2022-01-17 19:57:04 +00:00
|
|
|
@@ -420,20 +420,19 @@ static int acs_usable_bw160_chan(const s
|
2016-06-15 15:31:48 +00:00
|
|
|
static int acs_survey_is_sufficient(struct freq_survey *survey)
|
|
|
|
{
|
|
|
|
if (!(survey->filled & SURVEY_HAS_NF)) {
|
|
|
|
+ survey->nf = -95;
|
|
|
|
wpa_printf(MSG_INFO, "ACS: Survey is missing noise floor");
|
|
|
|
- return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!(survey->filled & SURVEY_HAS_CHAN_TIME)) {
|
|
|
|
+ survey->channel_time = 0;
|
|
|
|
wpa_printf(MSG_INFO, "ACS: Survey is missing channel time");
|
|
|
|
- return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!(survey->filled & SURVEY_HAS_CHAN_TIME_BUSY) &&
|
|
|
|
!(survey->filled & SURVEY_HAS_CHAN_TIME_RX)) {
|
|
|
|
wpa_printf(MSG_INFO,
|
|
|
|
"ACS: Survey is missing RX and busy time (at least one is required)");
|
|
|
|
- return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 1;
|