mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
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.
This commit is contained in:
parent
84992a8fb4
commit
0632542b8b
@ -252,6 +252,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;
|
||||
|
Loading…
Reference in New Issue
Block a user