aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-03-20 05:40:05 -0400
committerJohannes Berg <johannes.berg@intel.com>2013-03-20 09:17:13 -0400
commit6039f3e196721a4bb08d85af5367e50201052145 (patch)
tree097998faa1e46756c1f8af6bad95731f09c6c55c
parentb9269262342817533a73958ff3f9b1553e9c9b7c (diff)
iwlwifi: mvm: fix WoWLAN RF-kill bug
The RF-kill wakeup trigger flag is set in the wrong command, which means it won't work. Also fix the comment in the TCP wakeup trigger code -- the firmware was changed to look at all the different trigger flags. Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/d3.c10
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 |