Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c1bf93f authored by Alexander Bondar's avatar Alexander Bondar Committed by Johannes Berg
Browse files

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: default avatarAlexander Bondar <alexander.bondar@intel.com>
Reviewed-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 5ee2b215
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -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) {
	if (iwlmvm_mod_params.power_scheme == IWL_POWER_SCHEME_LP) {
		/* TODO: Also for D3 (device sleep / WoWLAN) */
		/* TODO: Also for D3 (device sleep / WoWLAN) */
		cmd->rx_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);
		cmd->tx_data_timeout = cpu_to_le32(10 * USEC_PER_MSEC);
	} else {
	} else {
		cmd->rx_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);
		cmd->tx_data_timeout = cpu_to_le32(50 * USEC_PER_MSEC);
	}
	}
}
}