iwlwifi: mvm: Fix active-to-powersave transition time units
authorAlexander Bondar <alexander.bondar@intel.com>
Tue, 5 Mar 2013 08:41:34 +0000 (10:41 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 3 Apr 2013 20:49:15 +0000 (22:49 +0200)
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>
drivers/net/wireless/iwlwifi/mvm/power.c

index 7a278f31a8a727428892b313e2012bd637f15713..f66694c617e606ee5b5d77b192fe9da9c0cf1ba5 100644 (file)
@@ -120,11 +120,11 @@ static void iwl_mvm_power_build_cmd(struct iwl_mvm *mvm,
 
        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);
-               cmd->tx_data_timeout = cpu_to_le32(10);
+               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(50);
-               cmd->tx_data_timeout = cpu_to_le32(50);
+               cmd->rx_data_timeout = cpu_to_le32(50 * USEC_PER_MSEC);
+               cmd->tx_data_timeout = cpu_to_le32(50 * USEC_PER_MSEC);
        }
 }