aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorVictor Goldenshtein <victorg@ti.com>2012-10-29 10:38:05 +0200
committerArik Nemtsov <arik@wizery.com>2012-10-29 11:03:58 +0200
commit597e897f23f6d8b0dcafe3fd2416cdcb5f20d0e3 (patch)
tree46031916875702942929d1c86863f39d7c67f54e /wpa_supplicant
parentfd831be2b0a29d78dd12e68c9f881718f49d9a03 (diff)
downloadexternal_wpa_supplicant_8_ti-597e897f23f6d8b0dcafe3fd2416cdcb5f20d0e3.zip
external_wpa_supplicant_8_ti-597e897f23f6d8b0dcafe3fd2416cdcb5f20d0e3.tar.gz
external_wpa_supplicant_8_ti-597e897f23f6d8b0dcafe3fd2416cdcb5f20d0e3.tar.bz2
wpa_s: fix bss selection on identical SSIDs with WEP+AES/TKIP
Configuring two identical SSIDs - one with WEP-SHARED security and one with AES/TKIP breaks any authentication attempt with WEP-SHARED SSID. Reason for this behavior is that during BSS selection from the priority group wrong BSS (with AES/TKIP) was selected. Fix this by disallowing "non-WPA/WPA2" BSS selection with defined rsn_ie/wpa_ie. Signed-off-by: Victor Goldenshtein <victorg@ti.com>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index c3e9ed6..0ac8641 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -473,7 +473,7 @@ static int wpa_supplicant_ssid_bss_match(struct wpa_supplicant *wpa_s,
return 0;
}
- if (!wpa_key_mgmt_wpa(ssid->key_mgmt)) {
+ if (!wpa_key_mgmt_wpa(ssid->key_mgmt) && !rsn_ie && !wpa_ie) {
wpa_dbg(wpa_s, MSG_DEBUG, " allow in non-WPA/WPA2");
return 1;
}