aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIrfan Sheriff <isheriff@google.com>2011-01-17 14:31:28 -0800
committerIrfan Sheriff <isheriff@google.com>2011-01-18 09:31:46 -0800
commit3c1695b113f50b6ea1576fb35a9cd25b469e8fc0 (patch)
treeac991e999afcb2abe9bf40e416ba5e45d49ff831
parent3ae4d7ced8d9d72b0432a476abdecda77f766c66 (diff)
downloadwpa_supplicant_6-3c1695b113f50b6ea1576fb35a9cd25b469e8fc0.tar.gz
Add WPS bss match check in Non WPA selection
This change is necessary to pass WPS test case 5.1.7 Bug: 3362571 Change-Id: I97771010aff7fc76180646fb38b618715e324be3
-rw-r--r--wpa_supplicant/events.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 77dca18..1d7afb5 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -552,6 +552,11 @@ wpa_supplicant_select_bss_non_wpa(struct wpa_supplicant *wpa_s,
continue;
}
+ /* Fix 5.1.7 WPS test case */
+ if (wpas_wps_ssid_bss_match(wpa_s, ssid, bss) == 0) {
+ continue;
+ }
+
if (!(ssid->key_mgmt & WPA_KEY_MGMT_NONE) &&
!(ssid->key_mgmt & WPA_KEY_MGMT_WPS) &&
!(ssid->key_mgmt & WPA_KEY_MGMT_IEEE8021X_NO_WPA))