Message ID | f76cead4-bff9-054f-22f4-9ca12a457880@cloudguard.ch |
---|---|
State | Accepted |
Headers | show |
Series | hostapd: Send an event before throwing a station | expand |
On Mon, Aug 13, 2018 at 09:19:56AM +0200, Andreas Tobler wrote: > We use the ctrl interface to record station connect/disconnect events. At > the end of the day we often had more stations connected than the kernel > reported. > The result of the investigation of this issue is the attached patch. Thanks, applied.
diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index d7e7210f7..d8b34fa52 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -2014,6 +2014,7 @@ static void handle_auth(struct hostapd_data *hapd, * updated. To handle this, station's added_unassoc flag is * cleared once the station has completed association. */ + ap_sta_set_authorized(hapd, sta, 0); hostapd_drv_sta_remove(hapd, sta->addr); sta->flags &= ~(WLAN_STA_ASSOC | WLAN_STA_AUTH | WLAN_STA_AUTHORIZED);