summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c
diff options
context:
space:
mode:
authorAvraham Stern <avraham.stern@intel.com>2022-11-02 16:59:58 +0200
committerGregory Greenman <gregory.greenman@intel.com>2022-11-10 13:27:11 +0200
commitb0b9b80599a30ee8862c0294b8a3b69c9c6df4f9 (patch)
tree3eaddacaee1785f5deeb819efc002133d7aa6c0e /drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c
parentc4bb943e0ad5829ec387e30bcb4b30cb15a572b9 (diff)
wifi: iwlwifi: mei: wait for the mac to stop on suspend
When iwlmei driver is removed, it removes all the interfaces since CSME will take over the NIC while there is no SAP connection. When the iwlmei driver is removed due to the host being suspended, this results in the interface being down after resume since the interface was removed on suspend so mac80211 will not try to bring it up on resume. Since on suspend the mac is stopped anyway by mac80211, there is no need to remove the interface in this case. Wait for the mac to stop instead. Once the mac is stopped, the driver will not access the NIC anymore so it is safe for CSME to take over. Signed-off-by: Avraham Stern <avraham.stern@intel.com> Signed-off-by: Gregory Greenman <gregory.greenman@intel.com> Link: https://lore.kernel.org/r/20221102165239.371102f04586.I813a964607b3e92ea275a0cf56df57227c11ae88@changeid
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c')
0 files changed, 0 insertions, 0 deletions