hostapd: Disassoc STA without WPA/RSN IE if AP proto is WPA/RSN
With the AP proto configured being WPA/RSN and SME in the driver, the previous implementation in hostapd is to not process hostapd_notif_assoc() due to "No WPA/RSN IE from STA", if the (Re)Association Request frame is without the WPA/RSN IEs. Enhance that to disassociate such station provided the AP is not using WPS. Signed-off-by: Hu Wang <huw@codeaurora.org>
This commit is contained in:
parent
9f85f0edd3
commit
63dc0f9c4d
1 changed files with 3 additions and 1 deletions
|
@ -262,7 +262,9 @@ int hostapd_notif_assoc(struct hostapd_data *hapd, const u8 *addr,
|
|||
#endif /* CONFIG_WPS */
|
||||
|
||||
wpa_printf(MSG_DEBUG, "No WPA/RSN IE from STA");
|
||||
return -1;
|
||||
reason = WLAN_REASON_INVALID_IE;
|
||||
status = WLAN_STATUS_INVALID_IE;
|
||||
goto fail;
|
||||
}
|
||||
#ifdef CONFIG_WPS
|
||||
if (hapd->conf->wps_state && ie[0] == 0xdd && ie[1] >= 4 &&
|
||||
|
|
Loading…
Reference in a new issue