WPS: Start EAPOL immediately even without WPA on WPS association
Previously, the immediate EAPOL authenticator startup was scheduled without having received EAPOL-Start only for the case where WPA/WPA2 was enabled. This can be extended to speed up non-WPA/WPA2 cases as well if the STA includes WPS IE in Association Request frame. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
934d5b0403
commit
80d5a3db9a
1 changed files with 3 additions and 2 deletions
|
@ -1021,8 +1021,9 @@ void ieee802_1x_new_station(struct hostapd_data *hapd, struct sta_info *sta)
|
|||
int key_mgmt;
|
||||
|
||||
#ifdef CONFIG_WPS
|
||||
if (hapd->conf->wps_state && hapd->conf->wpa &&
|
||||
(sta->flags & (WLAN_STA_WPS | WLAN_STA_MAYBE_WPS))) {
|
||||
if (hapd->conf->wps_state &&
|
||||
((hapd->conf->wpa && (sta->flags & WLAN_STA_MAYBE_WPS)) ||
|
||||
(sta->flags & WLAN_STA_WPS))) {
|
||||
/*
|
||||
* Need to enable IEEE 802.1X/EAPOL state machines for possible
|
||||
* WPS handshake even if IEEE 802.1X/EAPOL is not used for
|
||||
|
|
Loading…
Reference in a new issue