diff options
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index 260bf903cb71..4a510441dcf9 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -1386,14 +1386,16 @@ int iwl_set_tx_power(struct iwl_priv *priv, s8 tx_power, bool force) | |||
1386 | { | 1386 | { |
1387 | int ret = 0; | 1387 | int ret = 0; |
1388 | if (tx_power < IWL_TX_POWER_TARGET_POWER_MIN) { | 1388 | if (tx_power < IWL_TX_POWER_TARGET_POWER_MIN) { |
1389 | IWL_WARN(priv, "Requested user TXPOWER %d below limit.\n", | 1389 | IWL_WARN(priv, "Requested user TXPOWER %d below lower limit %d.\n", |
1390 | priv->tx_power_user_lmt); | 1390 | tx_power, |
1391 | IWL_TX_POWER_TARGET_POWER_MIN); | ||
1391 | return -EINVAL; | 1392 | return -EINVAL; |
1392 | } | 1393 | } |
1393 | 1394 | ||
1394 | if (tx_power > IWL_TX_POWER_TARGET_POWER_MAX) { | 1395 | if (tx_power > IWL_TX_POWER_TARGET_POWER_MAX) { |
1395 | IWL_WARN(priv, "Requested user TXPOWER %d above limit.\n", | 1396 | IWL_WARN(priv, "Requested user TXPOWER %d above upper limit %d.\n", |
1396 | priv->tx_power_user_lmt); | 1397 | tx_power, |
1398 | IWL_TX_POWER_TARGET_POWER_MAX); | ||
1397 | return -EINVAL; | 1399 | return -EINVAL; |
1398 | } | 1400 | } |
1399 | 1401 | ||