aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-04-03 18:05:50 (GMT)
committerJouni Malinen <j@w1.fi>2010-04-04 05:14:22 (GMT)
commit9a3cb18d743ec9939fb8d6c81aafdbe4be5d6e00 (patch)
tree1d85547a61708c1c610331fd6a3e43896a8489ad
parentc41a1095b5c41d11e143b63e4babbf1753cf74fc (diff)
downloadhostap-9a3cb18d743ec9939fb8d6c81aafdbe4be5d6e00.zip
hostap-9a3cb18d743ec9939fb8d6c81aafdbe4be5d6e00.tar.gz
hostap-9a3cb18d743ec9939fb8d6c81aafdbe4be5d6e00.tar.bz2
Add AP-STA-DISCONNECT event for driver-based MLME
-rw-r--r--src/ap/drv_callbacks.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c
index 0fa6f73..c05e4fa 100644
--- a/src/ap/drv_callbacks.c
+++ b/src/ap/drv_callbacks.c
@@ -19,6 +19,7 @@
#include "drivers/driver.h"
#include "common/ieee802_11_defs.h"
#include "common/ieee802_11_common.h"
+#include "common/wpa_ctrl.h"
#include "hostapd.h"
#include "ieee802_11.h"
#include "sta_info.h"
@@ -160,6 +161,8 @@ void hostapd_notif_disassoc(struct hostapd_data *hapd, const u8 *addr)
}
sta->flags &= ~(WLAN_STA_AUTH | WLAN_STA_ASSOC);
+ wpa_msg(hapd->msg_ctx, MSG_INFO, AP_STA_DISCONNECTED MACSTR,
+ MAC2STR(sta->addr));
wpa_auth_sm_event(sta->wpa_sm, WPA_DISASSOC);
sta->acct_terminate_cause = RADIUS_ACCT_TERMINATE_CAUSE_USER_REQUEST;
ieee802_1x_notify_port_enabled(sta->eapol_sm, 0);