Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
35 lines
985 B
Diff
35 lines
985 B
Diff
From: Felix Fietkau <nbd@nbd.name>
|
|
Date: Wed, 15 Jun 2016 17:31:48 +0200
|
|
Subject: [PATCH] hostapd: implement fallback for incomplete survey data
|
|
|
|
--- a/src/ap/acs.c
|
|
+++ b/src/ap/acs.c
|
|
@@ -471,17 +471,17 @@ static int acs_get_bw_center_chan(int fr
|
|
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 for freq %d is missing noise floor",
|
|
survey->freq);
|
|
- return 0;
|
|
}
|
|
|
|
if (!(survey->filled & SURVEY_HAS_CHAN_TIME)) {
|
|
+ survey->channel_time = 0;
|
|
wpa_printf(MSG_INFO,
|
|
"ACS: Survey for freq %d is missing channel time",
|
|
survey->freq);
|
|
- return 0;
|
|
}
|
|
|
|
if (!(survey->filled & SURVEY_HAS_CHAN_TIME_BUSY) &&
|
|
@@ -489,7 +489,6 @@ static int acs_survey_is_sufficient(stru
|
|
wpa_printf(MSG_INFO,
|
|
"ACS: Survey for freq %d is missing RX and busy time (at least one is required)",
|
|
survey->freq);
|
|
- return 0;
|
|
}
|
|
|
|
return 1;
|