aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/mvm/power.c
diff options
context:
space:
mode:
authorAlexander Bondar <alexander.bondar@intel.com>2013-03-05 03:41:34 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-04-03 16:49:15 -0400
commit7c1bf93fb299b739d2ca145b7f2a129c8d7a84c1 (patch)
tree02b1d9d7282bde2139f1852d2685fc82cb194b2d /drivers/net/wireless/iwlwifi/mvm/power.c
parent5ee2b2154e73fe1e80c6ec4c84ad9ffadb524aec (diff)
iwlwifi: mvm: Fix active-to-powersave transition time units
Active to power save mode transition time for TX/RX in the power table command is in microseconds, fix the units in the driver. 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>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/power.c')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/power.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/power.c b/drivers/net/wireless/iwlwifi/mvm/power.c
index 7a278f31a8a7..f66694c617e6 100644
--- a/drivers/net/wireless/iwlwifi/mvm/power.c
+++ b/drivers/net/wireless/iwlwifi/mvm/power.c
@@ -120,11 +120,11 @@ static void iwl_mvm_power_build_cmd(struct iwl_mvm *mvm,
120 120
121 if (iwlmvm_mod_params.power_scheme == IWL_POWER_SCHEME_LP) { 121 if (iwlmvm_mod_params.power_scheme == IWL_POWER_SCHEME_LP) {
122 /* TODO: Also for D3 (device sleep / WoWLAN) */ 122 /* TODO: Also for D3 (device sleep / WoWLAN) */
123 cmd->rx_data_timeout = cpu_to_le32(10); 123 cmd->rx_data_timeout = cpu_to_le32(10 * USEC_PER_MSEC);
124 cmd->tx_data_timeout = cpu_to_le32(10); 124 cmd->tx_data_timeout = cpu_to_le32(10 * USEC_PER_MSEC);
125 } else { 125 } else {
126 cmd->rx_data_timeout = cpu_to_le32(50); 126 cmd->rx_data_timeout = cpu_to_le32(50 * USEC_PER_MSEC);
127 cmd->tx_data_timeout = cpu_to_le32(50); 127 cmd->tx_data_timeout = cpu_to_le32(50 * USEC_PER_MSEC);
128 } 128 }
129} 129}
130 130