WNM: Drop explicit SSID check
The call to wpa_scan_res_match already checks that the SSID matches current_ssid. Therefore there is no need to do any further checking. Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
This commit is contained in:
parent
939cd294b2
commit
8b51310f4e
1 changed files with 4 additions and 14 deletions
|
@ -781,20 +781,10 @@ compare_scan_neighbor_results(struct wpa_supplicant *wpa_s, os_time_t age_secs,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bss->ssid_len != target->ssid_len ||
|
/*
|
||||||
os_memcmp(bss->ssid, target->ssid, bss->ssid_len) != 0) {
|
* TODO: Could consider allowing transition to another ESS if
|
||||||
/*
|
* PMF was enabled for the association.
|
||||||
* TODO: Could consider allowing transition to another
|
*/
|
||||||
* ESS if PMF was enabled for the association.
|
|
||||||
*/
|
|
||||||
wpa_printf(MSG_DEBUG, "Candidate BSS " MACSTR
|
|
||||||
" (pref %d) in different ESS",
|
|
||||||
MAC2STR(nei->bssid),
|
|
||||||
nei->preference_present ? nei->preference :
|
|
||||||
-1);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!wpa_scan_res_match(wpa_s, 0, target, wpa_s->current_ssid,
|
if (!wpa_scan_res_match(wpa_s, 0, target, wpa_s->current_ssid,
|
||||||
1, 0)) {
|
1, 0)) {
|
||||||
wpa_printf(MSG_DEBUG, "Candidate BSS " MACSTR
|
wpa_printf(MSG_DEBUG, "Candidate BSS " MACSTR
|
||||||
|
|
Loading…
Add table
Reference in a new issue