aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorAndriy Tkachuk <andriy.v.tkachuk@globallogic.com>2009-02-17 08:17:24 (GMT)
committerJouni Malinen <j@w1.fi>2009-02-27 10:32:10 (GMT)
commit70c6552ddfcb4dfbf9a02f1d14927fadfa1f454a (patch)
tree95879fe9715c8ca0834fa902af60ddad947b9b85 /wpa_supplicant
parentf2f4bc58eb3e9f4fbfea7c7c4d5460233f08828a (diff)
downloadhostap-06-70c6552ddfcb4dfbf9a02f1d14927fadfa1f454a.zip
hostap-06-70c6552ddfcb4dfbf9a02f1d14927fadfa1f454a.tar.gz
hostap-06-70c6552ddfcb4dfbf9a02f1d14927fadfa1f454a.tar.bz2
WPS: support registration with APs in WEP security mode
Attached patch fixes the issue when supplicant does not select APs in WEP security mode for WPS registration. (cherry picked from commit 0632542b8b640d04780af6ca4c154f520d8214d5)
Diffstat (limited to 'wpa_supplicant')
-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 dd4595a..ab3cc64 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -251,6 +251,11 @@ static int wpa_supplicant_match_privacy(struct wpa_scan_res *bss,
if (ssid->mixed_cell)
return 1;
+#ifdef CONFIG_WPS
+ if (ssid->key_mgmt & WPA_KEY_MGMT_WPS)
+ return 1;
+#endif /* CONFIG_WPS */
+
for (i = 0; i < NUM_WEP_KEYS; i++) {
if (ssid->wep_key_len[i]) {
privacy = 1;