[PATCH] Use correct BSSID for deauth/disconnect in mac80211 EALREADY workaround

Johannes Berg johannes
Wed Sep 26 08:16:09 PDT 2012

On Wed, 2012-09-26 at 16:52 +0200, Mykyta Iziumtsev wrote:
> If auth/connect request to mac80211 fails with EALREADY -
> there'll be retry after forced deauth/disconnect. The problem is that
> wrong BSSID is used in this deauth/disconnect request. Instead of
> BSSID of currently associated AP - BSSID of new AP will be used.
> For NL80211_CMD_DEAUTHENTICATE use correct cached BSSID value.
> For NL80211_CMD_DISCONNECT BSSID is not needed at all,
> because mac80211 uses locally saved value.

What kernel version are you testisng this against? The kernel behaviour
changed significantly in this area, recently authentication isn't
tracked in the kernel any more at all, only association.


More information about the Hostap mailing list