diff options
author | Alexander Bondar <alexander.bondar@intel.com> | 2013-04-14 03:18:25 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-04-16 09:37:17 -0400 |
commit | 0aed849f61c1235041f98e4178d0a60aaa1dc548 (patch) | |
tree | ae8450e686ea608e5e7640fc473b10c43ab4293e | |
parent | d7dad550e6ddb96db9d3e4d322f7d1dd8a6a9c8d (diff) |
iwlwifi: mvm: change TX/RX AM-to-PSM transition time for LP mode
Recently in low power (LP) mode FW moved from active to power save mode
after TX/RX completion faster than in balanced power mode (BPS).
Change AM-to-PSM transition time so that it will be the same as for BPS.
Signed-off-by: Alexander Bondar <alexander.bondar@intel.com>
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/power.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/power.c b/drivers/net/wireless/iwlwifi/mvm/power.c index 9395ab2a1af2..dde384de3ae2 100644 --- a/drivers/net/wireless/iwlwifi/mvm/power.c +++ b/drivers/net/wireless/iwlwifi/mvm/power.c | |||
@@ -146,14 +146,8 @@ void iwl_mvm_power_build_cmd(struct iwl_mvm *mvm, struct ieee80211_vif *vif, | |||
146 | keep_alive = DIV_ROUND_UP(keep_alive, MSEC_PER_SEC); | 146 | keep_alive = DIV_ROUND_UP(keep_alive, MSEC_PER_SEC); |
147 | cmd->keep_alive_seconds = keep_alive; | 147 | cmd->keep_alive_seconds = keep_alive; |
148 | 148 | ||
149 | if (iwlmvm_mod_params.power_scheme == IWL_POWER_SCHEME_LP) { | 149 | cmd->rx_data_timeout = cpu_to_le32(100 * USEC_PER_MSEC); |
150 | /* TODO: Also for D3 (device sleep / WoWLAN) */ | 150 | cmd->tx_data_timeout = cpu_to_le32(100 * USEC_PER_MSEC); |
151 | cmd->rx_data_timeout = cpu_to_le32(10 * USEC_PER_MSEC); | ||
152 | cmd->tx_data_timeout = cpu_to_le32(10 * USEC_PER_MSEC); | ||
153 | } else { | ||
154 | cmd->rx_data_timeout = cpu_to_le32(100 * USEC_PER_MSEC); | ||
155 | cmd->tx_data_timeout = cpu_to_le32(100 * USEC_PER_MSEC); | ||
156 | } | ||
157 | } | 151 | } |
158 | 152 | ||
159 | int iwl_mvm_power_update_mode(struct iwl_mvm *mvm, struct ieee80211_vif *vif) | 153 | int iwl_mvm_power_update_mode(struct iwl_mvm *mvm, struct ieee80211_vif *vif) |