From: Jouni Malinen Date: Tue, 10 Feb 2015 20:20:07 +0000 (+0200) Subject: Drop all hostapd STA entries on interface disabled event X-Git-Tag: hostap_2_4~137 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c165cb400c350adb036d4ea34a2d936e75afafde;p=thirdparty%2Fhostap.git Drop all hostapd STA entries on interface disabled event If the driver indicates that the interface has been disabled, assume that all associations have been lost and remove the hostapd STA entries. Signed-off-by: Jouni Malinen --- diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c index e39378450..c39989c34 100644 --- a/src/ap/drv_callbacks.c +++ b/src/ap/drv_callbacks.c @@ -1222,6 +1222,7 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event, } break; case EVENT_INTERFACE_DISABLED: + hostapd_free_stas(hapd); wpa_msg(hapd->msg_ctx, MSG_INFO, INTERFACE_DISABLED); hapd->disabled = 1; break;