]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Drop all hostapd STA entries on interface disabled event
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 10 Feb 2015 20:20:07 +0000 (22:20 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 11 Feb 2015 08:31:12 +0000 (10:31 +0200)
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 <jouni@qca.qualcomm.com>
src/ap/drv_callbacks.c

index e39378450dad37d835c1b1abf90833bf8fdba3b0..c39989c34eb8bf88d48965556b609b649c7a4685 100644 (file)
@@ -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;