iwlwifi: report correct and detailed values about requested txpower
authorWu, Fengguang <fengguang.wu@intel.com>
Fri, 13 Feb 2009 19:51:17 +0000 (11:51 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Feb 2009 19:52:34 +0000 (14:52 -0500)
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>
drivers/net/wireless/iwlwifi/iwl-core.c

index 260bf903cb71ae36e3f2e24cc9c1db0fa5d4738e..4a510441dcf9cbf2c168dc28b011a4fca0a46f02 100644 (file)
@@ -1386,14 +1386,16 @@ int iwl_set_tx_power(struct iwl_priv *priv, s8 tx_power, bool force)
 {
        int ret = 0;
        if (tx_power < IWL_TX_POWER_TARGET_POWER_MIN) {
-               IWL_WARN(priv, "Requested user TXPOWER %d below limit.\n",
-                           priv->tx_power_user_lmt);
+               IWL_WARN(priv, "Requested user TXPOWER %d below lower limit %d.\n",
+                        tx_power,
+                        IWL_TX_POWER_TARGET_POWER_MIN);
                return -EINVAL;
        }
 
        if (tx_power > IWL_TX_POWER_TARGET_POWER_MAX) {
-               IWL_WARN(priv, "Requested user TXPOWER %d above limit.\n",
-                           priv->tx_power_user_lmt);
+               IWL_WARN(priv, "Requested user TXPOWER %d above upper limit %d.\n",
+                        tx_power,
+                        IWL_TX_POWER_TARGET_POWER_MAX);
                return -EINVAL;
        }