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

Commit 02eec9c5 authored by Wey-Yi Guy's avatar Wey-Yi Guy Committed by John W. Linville
Browse files

iwlwifi: set default tx power user limit to minimal



Set the tx_power_user_lmt to the lowest power level
this value will get overwritten by channel's max power avg
from eeprom

Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: default avatarReinette Chatre <reinette.chatre@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent aa065263
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1671,7 +1671,10 @@ int iwl_init_drv(struct iwl_priv *priv)
	priv->qos_data.qos_cap.val = 0;

	priv->rates_mask = IWL_RATES_MASK;
	priv->tx_power_user_lmt = IWL_TX_POWER_TARGET_POWER_MAX;
	/* Set the tx_power_user_lmt to the lowest power level
	 * this value will get overwritten by channel max power avg
	 * from eeprom */
	priv->tx_power_user_lmt = IWL_TX_POWER_TARGET_POWER_MIN;

	ret = iwl_init_channel_map(priv);
	if (ret) {