aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam List <wlist@ti.com>2012-08-06 10:15:46 -0500
committerEyal Shapira <eyal@wizery.com>2012-08-09 01:40:28 +0300
commitc856b3aa7811c0d948a1608fb42dd8f0d9ae9d40 (patch)
tree8d233e3e3558c723ee19fbcfed9723e223c10dc5
parent69d01c69ff11a0d03efd8363f1790942c96f94ab (diff)
downloadexternal_wpa_supplicant_8_ti-c856b3aa7811c0d948a1608fb42dd8f0d9ae9d40.zip
external_wpa_supplicant_8_ti-c856b3aa7811c0d948a1608fb42dd8f0d9ae9d40.tar.gz
external_wpa_supplicant_8_ti-c856b3aa7811c0d948a1608fb42dd8f0d9ae9d40.tar.bz2
SME: Fix handle Netgear APs WEP shared quirks (UPSTREAM-SQ)
If the network entry is created with both WPA_AUTH_ALG_OPEN and WPA_AUTH_ALG_SHARED set in wpa_s->current_ssid->auth_alg, the existing logic will end up picking WPA_AUTH_ALG_LEAP instead of shared when open authentication fails. Fix this by using a bitwise-and to check for WPA_AUTH_ALG_OPEN instead. (Should be squashed into commit 2e35a02 SME: Handle Netgear APs WEP shared quirks) Signed-Off-By: William List <wlist@ti.com> Signed-Off-By: Eyal Shapira <eyal@wizery.com>
-rw-r--r--wpa_supplicant/sme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c
index 5dd1f8f..3aa8e01 100644
--- a/wpa_supplicant/sme.c
+++ b/wpa_supplicant/sme.c
@@ -347,7 +347,7 @@ void sme_event_auth(struct wpa_supplicant *wpa_s, union wpa_event_data *data)
return;
case WLAN_AUTH_SHARED_KEY:
- if (wpa_s->current_ssid->auth_alg == WPA_AUTH_ALG_OPEN) {
+ if (wpa_s->current_ssid->auth_alg & WPA_AUTH_ALG_OPEN) {
wpa_s->current_ssid->auth_alg =
WPA_AUTH_ALG_SHARED;
wpa_dbg(wpa_s, MSG_DEBUG,