mac80211: Don't destroy auth data in case of anti-clogging
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Thu, 26 Mar 2020 13:09:34 +0000 (15:09 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 24 Apr 2020 10:33:42 +0000 (12:33 +0200)
commita4055e74a2ff7c70ccdb6c36254ad5181464f211
treeba570665d9119ddf6c30f20d585a28ce5214bd1b
parentd46b4ab870fa29445b701e922e9aa36b15f833ea
mac80211: Don't destroy auth data in case of anti-clogging

SAE AP may reject authentication with WLAN_STATUS_ANTI_CLOG_REQUIRED.
As the user space will immediately continue the authentication flow,
there is no need to destroy the authentication data in this case.
This saves unneeded station removal and releasing the channel.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20200326150855.7483996157a8.I8040a842874aaf6d209df3fc8a2acb97a0bf508b@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c