]> git.karo-electronics.de Git - linux-beck.git/commitdiff
iwlwifi: mvm: change TX/RX AM-to-PSM transition time for LP mode
authorAlexander Bondar <alexander.bondar@intel.com>
Sun, 14 Apr 2013 07:18:25 +0000 (10:18 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 16 Apr 2013 13:37:17 +0000 (15:37 +0200)
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>
drivers/net/wireless/iwlwifi/mvm/power.c

index 9395ab2a1af2cc60838542eb312428e9c31aa0c7..dde384de3ae2212b3b941bfca8ad925cc143adc9 100644 (file)
@@ -146,14 +146,8 @@ void iwl_mvm_power_build_cmd(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
        keep_alive = DIV_ROUND_UP(keep_alive, MSEC_PER_SEC);
        cmd->keep_alive_seconds = keep_alive;
 
-       if (iwlmvm_mod_params.power_scheme == IWL_POWER_SCHEME_LP) {
-               /* TODO: Also for D3 (device sleep / WoWLAN) */
-               cmd->rx_data_timeout = cpu_to_le32(10 * USEC_PER_MSEC);
-               cmd->tx_data_timeout = cpu_to_le32(10 * USEC_PER_MSEC);
-       } else {
-               cmd->rx_data_timeout = cpu_to_le32(100 * USEC_PER_MSEC);
-               cmd->tx_data_timeout = cpu_to_le32(100 * USEC_PER_MSEC);
-       }
+       cmd->rx_data_timeout = cpu_to_le32(100 * USEC_PER_MSEC);
+       cmd->tx_data_timeout = cpu_to_le32(100 * USEC_PER_MSEC);
 }
 
 int iwl_mvm_power_update_mode(struct iwl_mvm *mvm, struct ieee80211_vif *vif)