Could not set station flag for kernel driver

Yogesh Ashok Powar yogeshp
Fri Sep 2 04:12:42 PDT 2011


Hi Jouni,

 We have seen following errors when station dissassociates & deauths.

>wlan0: AP-STA-DISCONNECTED 0c:74:c2:9a:4c:59
>wlan0: STA 0c:74:c2:9a:4c:59 IEEE 802.11: disassociated
>wlan0: AP-STA-DISCONNECTED 0c:74:c2:9a:4c:59
>Could not set station 0c:74:c2:9a:4c:59 flags for kernel driver (errno=97).

It seems like hostapd tries to set station flags even after the station
deletion. Following is the patch which avoid removing station entries
from disassoc handler; this will defer station removal to deauth
handler through 'ap_free_sta' call.

Let us know your opinion on this.

Thanks
Yogesh

diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index e5a0a85..0b36577 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -1176,7 +1176,6 @@ static void handle_disassoc(struct hostapd_data *hapd,
 	 * authenticated. */
 	accounting_sta_stop(hapd, sta);
 	ieee802_1x_free_station(sta);
-	hostapd_drv_sta_remove(hapd, sta->addr);
 
 	if (sta->timeout_next == STA_NULLFUNC ||
 	    sta->timeout_next == STA_DISASSOC) {
--



More information about the Hostap mailing list