diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index e5a0a85f3..7293957a4 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -1714,6 +1714,11 @@ static void handle_assoc_cb(struct hostapd_data *hapd, hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE80211, HOSTAPD_LEVEL_NOTICE, "Could not add STA to kernel driver"); + + ap_sta_disconnect(hapd, sta, sta->addr, + WLAN_REASON_DISASSOC_AP_BUSY); + + goto fail; } if (sta->flags & WLAN_STA_WDS)