wifi: mac80211: cleanup auth_data only if association continues
authorBenjamin Berg <benjamin.berg@intel.com>
Thu, 28 Sep 2023 14:35:22 +0000 (17:35 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 23 Oct 2023 09:43:26 +0000 (11:43 +0200)
commit6b398f1c28f033b82c7363caa73f5669ce4a1853
treea19849f355170d5bcf244f1a992aaf826056d0ac
parent7dbbf557b77946de4aa341a1cf24c1ebe7ec681a
wifi: mac80211: cleanup auth_data only if association continues

If the association command fails then the authentication is still valid
and it makes sense to keep it alive. Otherwise, we would currently get
into an inconsistent state because mac80211 on the one hand is
disconnected but on the other hand the state is not entirely cleared
and a new authentication could not continue.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230928172905.c9855f46ebc8.I7f3dcd4120a186484a91b87560e9b7201d40984f@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c