From: Jouni Malinen Date: Wed, 10 Nov 2010 15:09:31 +0000 (+0200) Subject: Drop local stations on broadcast deauth/disassoc request X-Git-Tag: hostap-1-bp~856 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bf49c346c661bf9dc6c13d69f998cac6306ef0a;p=thirdparty%2Fhostap.git Drop local stations on broadcast deauth/disassoc request When hostapd_cli deauth/disassoc is used with ff:ff:ff:ff:ff:ff address, drop all local STA entries in addition to sending out the broadcast deauth/disassoc frame. --- diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c index 84a1b7e76..152134c60 100644 --- a/hostapd/ctrl_iface.c +++ b/hostapd/ctrl_iface.c @@ -260,6 +260,8 @@ static int hostapd_ctrl_iface_deauthenticate(struct hostapd_data *hapd, if (sta) ap_sta_deauthenticate(hapd, sta, WLAN_REASON_PREV_AUTH_NOT_VALID); + else if (addr[0] == 0xff) + hostapd_free_stas(hapd); return 0; } @@ -314,6 +316,8 @@ static int hostapd_ctrl_iface_disassociate(struct hostapd_data *hapd, if (sta) ap_sta_disassociate(hapd, sta, WLAN_REASON_PREV_AUTH_NOT_VALID); + else if (addr[0] == 0xff) + hostapd_free_stas(hapd); return 0; }