PATCH: remove_sta in wpa_sta_disconnect()

Gunter Burchardt gbur at
Wed Aug 18 02:49:20 EDT 2004


In wpa_sta_disconnect() hapd->driver.remove_sta() is called and after
it STA_REMOVE is set to inform that the station should be removed. The
first one is not ok! STA_REMOVE causes to remove the sta from all
places in hostapd and kernel (hapd->driver.remove_sta() is also
called). If the station is removed from kernel before accounting stop
is sent there are no accounting information available from kernel for
the sta.

Secondly in the patch is a sanity check whether a terminate cause is
set for the sta.


More information about the HostAP mailing list