aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2016-03-24 10:11:55 (GMT)
committerJouni Malinen <j@w1.fi>2016-03-24 10:11:55 (GMT)
commitcbc3d6fe6548ce6add8f86174babbfcbd980d961 (patch)
treeccc70bed5ebbcfdd4fd7b98d20c4994be3d0ed89
parent8854f90badc0ca16e1de381f35e9e3d99af452c9 (diff)
downloadhostap-cbc3d6fe6548ce6add8f86174babbfcbd980d961.zip
hostap-cbc3d6fe6548ce6add8f86174babbfcbd980d961.tar.gz
hostap-cbc3d6fe6548ce6add8f86174babbfcbd980d961.tar.bz2
WNM: Verify BSS TM target match against the current network profile
Reject a BSS transition management candidate if it does not match the current network profile, e.g., due to incompatible security parameters. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
-rw-r--r--wpa_supplicant/wnm_sta.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/wpa_supplicant/wnm_sta.c b/wpa_supplicant/wnm_sta.c
index 7d2a92f..f77d51a 100644
--- a/wpa_supplicant/wnm_sta.c
+++ b/wpa_supplicant/wnm_sta.c
@@ -546,6 +546,17 @@ compare_scan_neighbor_results(struct wpa_supplicant *wpa_s)
continue;
}
+ if (wpa_s->current_ssid &&
+ !wpa_scan_res_match(wpa_s, 0, target, wpa_s->current_ssid,
+ 1)) {
+ wpa_printf(MSG_DEBUG, "Candidate BSS " MACSTR
+ " (pref %d) does not match the current network profile",
+ MAC2STR(nei->bssid),
+ nei->preference_present ? nei->preference :
+ -1);
+ continue;
+ }
+
if (wpa_is_bss_tmp_disallowed(wpa_s, target->bssid)) {
wpa_printf(MSG_DEBUG,
"MBO: Candidate BSS " MACSTR