aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorWu, Fengguang <fengguang.wu@intel.com>2009-02-13 14:51:17 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-02-27 14:52:34 -0500
commitdaf518dee66c3c6029d0b828e15c7adf5aea5493 (patch)
treee9bc8402fdfea8451bb0149f90ffba52b318ffdd /drivers/net
parent1788bcd155a2cbb7fad6bb30c2ae3786ceee8b4c (diff)
iwlwifi: report correct and detailed values about requested txpower
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.c10
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