aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2011-12-10 14:34:52 (GMT)
committerJouni Malinen <j@w1.fi>2011-12-10 14:34:52 (GMT)
commitafcc9ea1a6f1c6dcbb5912bb5740870925c92ee6 (patch)
tree21a7469866d5d5762fd938d168a6c19fff266ce1 /src
parente04a1631801d1f9e392891fbca9c04c45ff2dc0d (diff)
downloadhostap-afcc9ea1a6f1c6dcbb5912bb5740870925c92ee6.zip
hostap-afcc9ea1a6f1c6dcbb5912bb5740870925c92ee6.tar.gz
hostap-afcc9ea1a6f1c6dcbb5912bb5740870925c92ee6.tar.bz2
AP: Improve disconnect and timeout related logging
This previously helped when debugging some auth issues when hitting the AP with 128 association attempts all at once. Signed-off-by: Ben Greear <greearb@candelatech.com>
Diffstat (limited to 'src')
-rw-r--r--src/ap/ieee802_1x.c3
-rw-r--r--src/ap/sta_info.c9
-rw-r--r--src/ap/wpa_auth.c1
3 files changed, 9 insertions, 4 deletions
diff --git a/src/ap/ieee802_1x.c b/src/ap/ieee802_1x.c
index d2121ab..153b271 100644
--- a/src/ap/ieee802_1x.c
+++ b/src/ap/ieee802_1x.c
@@ -1417,6 +1417,9 @@ void ieee802_1x_abort_auth(struct hostapd_data *hapd, struct sta_info *sta)
* request and we cannot continue EAP processing (EAP-Failure
* could only be sent if the EAP peer actually replied).
*/
+ wpa_dbg(hapd->msg_ctx, MSG_DEBUG, "EAP Timeout, STA " MACSTR,
+ MAC2STR(sta->addr));
+
sm->eap_if->portEnabled = FALSE;
ap_sta_disconnect(hapd, sta, sta->addr,
WLAN_REASON_PREV_AUTH_NOT_VALID);
diff --git a/src/ap/sta_info.c b/src/ap/sta_info.c
index 365e9e8..61cb9f1 100644
--- a/src/ap/sta_info.c
+++ b/src/ap/sta_info.c
@@ -329,9 +329,10 @@ void ap_handle_timer(void *eloop_ctx, void *timeout_ctx)
} else if (sta->timeout_next != STA_REMOVE) {
int deauth = sta->timeout_next == STA_DEAUTH;
- wpa_printf(MSG_DEBUG, "Sending %s info to STA " MACSTR,
- deauth ? "deauthentication" : "disassociation",
- MAC2STR(sta->addr));
+ wpa_dbg(hapd->msg_ctx, MSG_DEBUG,
+ "Timeout, sending %s info to STA " MACSTR,
+ deauth ? "deauthentication" : "disassociation",
+ MAC2STR(sta->addr));
if (deauth) {
hostapd_drv_sta_deauth(
@@ -372,7 +373,7 @@ void ap_handle_timer(void *eloop_ctx, void *timeout_ctx)
case STA_REMOVE:
hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE80211,
HOSTAPD_LEVEL_INFO, "deauthenticated due to "
- "inactivity");
+ "inactivity (timer DEAUTH/REMOVE)");
if (!sta->acct_terminate_cause)
sta->acct_terminate_cause =
RADIUS_ACCT_TERMINATE_CAUSE_IDLE_TIMEOUT;
diff --git a/src/ap/wpa_auth.c b/src/ap/wpa_auth.c
index 3d57f9e..1b5a5a2 100644
--- a/src/ap/wpa_auth.c
+++ b/src/ap/wpa_auth.c
@@ -194,6 +194,7 @@ static void wpa_sta_disconnect(struct wpa_authenticator *wpa_auth,
{
if (wpa_auth->cb.disconnect == NULL)
return;
+ wpa_printf(MSG_DEBUG, "wpa_sta_disconnect STA " MACSTR, MAC2STR(addr));
wpa_auth->cb.disconnect(wpa_auth->cb.ctx, addr,
WLAN_REASON_PREV_AUTH_NOT_VALID);
}