aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-08-28 16:16:59 (GMT)
committerJouni Malinen <j@w1.fi>2011-08-28 16:16:59 (GMT)
commit17f6b9005641c9c44f55cda825b3a170ffa8ff04 (patch)
treea7e3e09d4cd0182c8c08f9b6cb37a055da1b7066 /hostapd
parentfb91db56396cce2c13f659fb263fd30d2f23cbef (diff)
downloadhostap-17f6b9005641c9c44f55cda825b3a170ffa8ff04.zip
hostap-17f6b9005641c9c44f55cda825b3a170ffa8ff04.tar.gz
hostap-17f6b9005641c9c44f55cda825b3a170ffa8ff04.tar.bz2
WPS: Wait for EAPOL-Start unless WPS 2.0 station as workaround
Extend the code that waits for the station to send EAPOL-Start before initiating EAPOL authenticator operations to cover the case where the station includes WPS IE in (Re)Association Request frame if that IE does not include support for WPS 2.0. While this should not really be needed, this may help with some deployed WPS 1.0 stations that do not support EAPOL operations correctly and may get confused of the EAP-Request/Identity packets that would show up twice if EAPOL-Start is transmitted.
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/dump_state.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hostapd/dump_state.c b/hostapd/dump_state.c
index 73aa93d..408c4f1 100644
--- a/hostapd/dump_state.c
+++ b/hostapd/dump_state.c
@@ -106,7 +106,8 @@ static void hostapd_dump_state(struct hostapd_data *hapd)
fprintf(f, "\nSTA=" MACSTR "\n", MAC2STR(sta->addr));
fprintf(f,
- " AID=%d flags=0x%x %s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\n"
+ " AID=%d flags=0x%x %s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s"
+ "\n"
" capability=0x%x listen_interval=%d\n",
sta->aid,
sta->flags,
@@ -127,6 +128,7 @@ static void hostapd_dump_state(struct hostapd_data *hapd)
(sta->flags & WLAN_STA_MAYBE_WPS ? "[MAYBE_WPS]" : ""),
(sta->flags & WLAN_STA_WDS ? "[WDS]" : ""),
(sta->flags & WLAN_STA_NONERP ? "[NonERP]" : ""),
+ (sta->flags & WLAN_STA_WPS2 ? "[WPS2]" : ""),
sta->capability,
sta->listen_interval);