wifi: iwlwifi: iwlmvm: handle unprotected deauth/disassoc in d3
authorShaul Triebitz <shaul.triebitz@intel.com>
Tue, 6 Feb 2024 16:02:12 +0000 (18:02 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 12 Feb 2024 20:24:01 +0000 (21:24 +0100)
commit24e5252c590dd8fd9ed702e0fbe426eda78641cd
treef06be861e1d5faed7a9ce382e94f10e3881a224f
parenta64be8296e31f432d4a9df4db684cc8a250eb81c
wifi: iwlwifi: iwlmvm: handle unprotected deauth/disassoc in d3

In MFP, do not disconnect if an unprotected deauth
or disassoc was received during D3.
For that, need to configure wowlan with MFP (IS_11W_ASSOC).

Now, in case of an unprotected deauth/disassoc, the wakeup
reason returned by the firmware will be:
IWL_WAKEUP_BY_11W_UNPROTECTED_DEAUTH_OR_DISASSOC
(and not IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_DEAUTH
which will cause a disconnection).
Also, report this reason to cfg80211.

In another patch, the driver will send an SA query.

Signed-off-by: Shaul Triebitz <shaul.triebitz@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240206175739.fde438a22e3f.I3c8497520aaa95a22febff727b0ad08146965d47@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/d3.c