diff options
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/d3.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/d3.c b/drivers/net/wireless/iwlwifi/mvm/d3.c index d4578cefe445..bf087abe39f3 100644 --- a/drivers/net/wireless/iwlwifi/mvm/d3.c +++ b/drivers/net/wireless/iwlwifi/mvm/d3.c | |||
@@ -866,17 +866,13 @@ int iwl_mvm_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan) | |||
866 | cpu_to_le32(IWL_WOWLAN_WAKEUP_PATTERN_MATCH); | 866 | cpu_to_le32(IWL_WOWLAN_WAKEUP_PATTERN_MATCH); |
867 | 867 | ||
868 | if (wowlan->rfkill_release) | 868 | if (wowlan->rfkill_release) |
869 | d3_cfg_cmd.wakeup_flags |= | 869 | wowlan_config_cmd.wakeup_filter |= |
870 | cpu_to_le32(IWL_WOWLAN_WAKEUP_RF_KILL_DEASSERT); | 870 | cpu_to_le32(IWL_WOWLAN_WAKEUP_RF_KILL_DEASSERT); |
871 | 871 | ||
872 | if (wowlan->tcp) { | 872 | if (wowlan->tcp) { |
873 | /* | 873 | /* |
874 | * The firmware currently doesn't really look at these, only | 874 | * Set the "link change" (really "link lost") flag as well |
875 | * the IWL_WOWLAN_WAKEUP_LINK_CHANGE bit. We have to set that | 875 | * since that implies losing the TCP connection. |
876 | * reason bit since losing the connection to the AP implies | ||
877 | * losing the TCP connection. | ||
878 | * Set the flags anyway as long as they exist, in case this | ||
879 | * will be changed in the firmware. | ||
880 | */ | 876 | */ |
881 | wowlan_config_cmd.wakeup_filter |= | 877 | wowlan_config_cmd.wakeup_filter |= |
882 | cpu_to_le32(IWL_WOWLAN_WAKEUP_REMOTE_LINK_LOSS | | 878 | cpu_to_le32(IWL_WOWLAN_WAKEUP_REMOTE_LINK_LOSS | |