aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2011-02-24 15:35:59 (GMT)
committerJouni Malinen <j@w1.fi>2011-02-24 15:35:59 (GMT)
commit1aae01fc0450f5f6cd0119bb0c319e3fc990101e (patch)
tree13ec94b0868c834e0e2218dc151cbc21b3f50dc5
parent48b84f18a371aa93114da1e7ee09cec2b09f79d7 (diff)
downloadhostap-1aae01fc0450f5f6cd0119bb0c319e3fc990101e.zip
hostap-1aae01fc0450f5f6cd0119bb0c319e3fc990101e.tar.gz
hostap-1aae01fc0450f5f6cd0119bb0c319e3fc990101e.tar.bz2
Add more wpa_auth debugging messages
-rw-r--r--src/ap/wpa_auth.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/ap/wpa_auth.c b/src/ap/wpa_auth.c
index a5304eb..13e8ec4 100644
--- a/src/ap/wpa_auth.c
+++ b/src/ap/wpa_auth.c
@@ -1978,8 +1978,11 @@ SM_STEP(WPA_PTK)
if (sm->Init)
SM_ENTER(WPA_PTK, INITIALIZE);
else if (sm->Disconnect
- /* || FIX: dot11RSNAConfigSALifetime timeout */)
+ /* || FIX: dot11RSNAConfigSALifetime timeout */) {
+ wpa_auth_logger(wpa_auth, sm->addr, LOGGER_DEBUG,
+ "WPA_PTK: sm->Disconnect");
SM_ENTER(WPA_PTK, DISCONNECT);
+ }
else if (sm->DeauthenticationRequest)
SM_ENTER(WPA_PTK, DISCONNECTED);
else if (sm->AuthenticationRequest)
@@ -2015,6 +2018,8 @@ SM_STEP(WPA_PTK)
SM_ENTER(WPA_PTK, PTKSTART);
else {
wpa_auth->dot11RSNA4WayHandshakeFailures++;
+ wpa_auth_logger(sm->wpa_auth, sm->addr, LOGGER_INFO,
+ "INITPMK - keyAvailable = false");
SM_ENTER(WPA_PTK, DISCONNECT);
}
break;
@@ -2035,6 +2040,9 @@ SM_STEP(WPA_PTK)
else if (sm->TimeoutCtr >
(int) dot11RSNAConfigPairwiseUpdateCount) {
wpa_auth->dot11RSNA4WayHandshakeFailures++;
+ wpa_auth_vlogger(sm->wpa_auth, sm->addr, LOGGER_DEBUG,
+ "PTKSTART: Retry limit %d reached",
+ dot11RSNAConfigPairwiseUpdateCount);
SM_ENTER(WPA_PTK, DISCONNECT);
} else if (sm->TimeoutEvt)
SM_ENTER(WPA_PTK, PTKSTART);
@@ -2058,6 +2066,10 @@ SM_STEP(WPA_PTK)
else if (sm->TimeoutCtr >
(int) dot11RSNAConfigPairwiseUpdateCount) {
wpa_auth->dot11RSNA4WayHandshakeFailures++;
+ wpa_auth_vlogger(sm->wpa_auth, sm->addr, LOGGER_DEBUG,
+ "PTKINITNEGOTIATING: Retry limit %d "
+ "reached",
+ dot11RSNAConfigPairwiseUpdateCount);
SM_ENTER(WPA_PTK, DISCONNECT);
} else if (sm->TimeoutEvt)
SM_ENTER(WPA_PTK, PTKINITNEGOTIATING);