aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/mac80211.c2
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/power.c6
2 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/iwlwifi/mvm/mac80211.c
index fe031608fd91..dd158ec571fb 100644
--- a/drivers/net/wireless/iwlwifi/mvm/mac80211.c
+++ b/drivers/net/wireless/iwlwifi/mvm/mac80211.c
@@ -207,7 +207,7 @@ int iwl_mvm_mac_setup_register(struct iwl_mvm *mvm)
207 207
208 hw->wiphy->hw_version = mvm->trans->hw_id; 208 hw->wiphy->hw_version = mvm->trans->hw_id;
209 209
210 if (iwlwifi_mod_params.power_save) 210 if (iwlmvm_mod_params.power_scheme != IWL_POWER_SCHEME_CAM)
211 hw->wiphy->flags |= WIPHY_FLAG_PS_ON_BY_DEFAULT; 211 hw->wiphy->flags |= WIPHY_FLAG_PS_ON_BY_DEFAULT;
212 else 212 else
213 hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT; 213 hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT;
diff --git a/drivers/net/wireless/iwlwifi/mvm/power.c b/drivers/net/wireless/iwlwifi/mvm/power.c
index dde384de3ae2..ed77e437aac4 100644
--- a/drivers/net/wireless/iwlwifi/mvm/power.c
+++ b/drivers/net/wireless/iwlwifi/mvm/power.c
@@ -111,8 +111,7 @@ void iwl_mvm_power_build_cmd(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
111 */ 111 */
112 cmd->keep_alive_seconds = POWER_KEEP_ALIVE_PERIOD_SEC; 112 cmd->keep_alive_seconds = POWER_KEEP_ALIVE_PERIOD_SEC;
113 113
114 if ((iwlmvm_mod_params.power_scheme == IWL_POWER_SCHEME_CAM) || 114 if (iwlmvm_mod_params.power_scheme == IWL_POWER_SCHEME_CAM)
115 !iwlwifi_mod_params.power_save)
116 return; 115 return;
117 116
118 cmd->flags |= cpu_to_le16(POWER_FLAGS_POWER_SAVE_ENA_MSK); 117 cmd->flags |= cpu_to_le16(POWER_FLAGS_POWER_SAVE_ENA_MSK);
@@ -171,8 +170,7 @@ int iwl_mvm_power_disable(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
171 if (vif->type != NL80211_IFTYPE_STATION || vif->p2p) 170 if (vif->type != NL80211_IFTYPE_STATION || vif->p2p)
172 return 0; 171 return 0;
173 172
174 if ((iwlmvm_mod_params.power_scheme != IWL_POWER_SCHEME_CAM) && 173 if (iwlmvm_mod_params.power_scheme != IWL_POWER_SCHEME_CAM)
175 iwlwifi_mod_params.power_save)
176 cmd.flags |= cpu_to_le16(POWER_FLAGS_POWER_SAVE_ENA_MSK); 174 cmd.flags |= cpu_to_le16(POWER_FLAGS_POWER_SAVE_ENA_MSK);
177 175
178 iwl_mvm_power_log(mvm, &cmd); 176 iwl_mvm_power_log(mvm, &cmd);