aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-core.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c
index 43781dc9adfd..faafcaeae0a6 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.c
+++ b/drivers/net/wireless/iwlwifi/iwl-core.c
@@ -1708,10 +1708,10 @@ int iwl_set_tx_power(struct iwl_priv *priv, s8 tx_power, bool force)
1708 return -EINVAL; 1708 return -EINVAL;
1709 } 1709 }
1710 1710
1711 if (tx_power > IWL_TX_POWER_TARGET_POWER_MAX) { 1711 if (tx_power > priv->tx_power_channel_lmt) {
1712 IWL_WARN(priv, "Requested user TXPOWER %d above upper limit %d.\n", 1712 IWL_WARN(priv,
1713 tx_power, 1713 "Requested user TXPOWER %d above upper limit %d.\n",
1714 IWL_TX_POWER_TARGET_POWER_MAX); 1714 tx_power, priv->tx_power_channel_lmt);
1715 return -EINVAL; 1715 return -EINVAL;
1716 } 1716 }
1717 1717