wifi: iwlwifi: mvm: cleanup beacon_inject_active during hw restart
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Thu, 13 Apr 2023 18:40:28 +0000 (21:40 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 14 Apr 2023 11:14:50 +0000 (13:14 +0200)
commitfb40cd9d914c8a1b4acc56edaa96046c5f4f1669
treeb4ff9e1f3b6656e8c3882b9cbe2b5f7b161ffe58
parent905d50ddbc83bef0d7f3386e7f3472b0324b405b
wifi: iwlwifi: mvm: cleanup beacon_inject_active during hw restart

beacon_inject_active turns true and false via debugfs when we inject a
beacon. During the time of the beacon injection we can't configure the
FW with a beacon cmd. If we have a hw restart during the beacon injection
then in the recovery flow we will not be able to configure the beacon
cmd to the FW. Fix this by cleaning up this variable after an hw restart.

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230413213309.b021bce5e162.Ia5a0a0b5d8734f63077ceaac936176a345f8d3d1@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c