WNM: Don't scan frequencies of neighbors that should be ignored
It does not make sense to scan for neighbors that we are not supposed to use anyway. As such, skip them. Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
This commit is contained in:
parent
20ed289a78
commit
40ef706e55
1 changed files with 4 additions and 0 deletions
|
@ -1358,6 +1358,10 @@ static void wnm_set_scan_freqs(struct wpa_supplicant *wpa_s)
|
|||
struct neighbor_report *nei;
|
||||
|
||||
nei = &wpa_s->wnm_neighbor_report_elements[i];
|
||||
|
||||
if (nei->preference_present && nei->preference == 0)
|
||||
continue;
|
||||
|
||||
if (nei->freq <= 0) {
|
||||
wpa_printf(MSG_DEBUG,
|
||||
"WNM: Unknown neighbor operating frequency for "
|
||||
|
|
Loading…
Reference in a new issue