iwlwifi: Cancel and set MARKER_CMD timer during suspend-resume
authorHaim Dreyfuss <haim.dreyfuss@intel.com>
Wed, 27 Dec 2017 13:21:18 +0000 (15:21 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 2 Mar 2018 08:19:59 +0000 (10:19 +0200)
commit7f8ae00f63725e835b5ed8a97bc18bf1c950acb2
treea64214c9a67c028709c0939e1c425853880527cf
parent78dc897b7ee67205423dbbc6b56be49fb18d15b5
iwlwifi: Cancel and set MARKER_CMD timer during suspend-resume

While entering to D3 mode there is a gap between the time the
driver handles the D3_CONFIG_CMD response to the time the host is going
to sleep.
In between there might be cases which MARKER_CMD can tailgate.
Also during resume flow the MARKER_CMD might get sent while D0I3_CMD
is being handled in the FW.
Cancel MARKER_CMD timer and set it again properly during suspend
resume flows to prevent this command from being sent accidentlly.

Signed-off-by: Haim Dreyfuss <haim.dreyfuss@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/debugfs.h
drivers/net/wireless/intel/iwlwifi/fw/init.c
drivers/net/wireless/intel/iwlwifi/fw/runtime.h
drivers/net/wireless/intel/iwlwifi/mvm/d3.c