提交 daf518de 编写于 作者: W Wu, Fengguang 提交者: John W. Linville

iwlwifi: report correct and detailed values about requested txpower

Signed-off-by: NWu Fengguang <fengguang.wu@intel.com>
Signed-off-by: NReinette Chatre <reinette.chatre@intel.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 1788bcd1
...@@ -1386,14 +1386,16 @@ int iwl_set_tx_power(struct iwl_priv *priv, s8 tx_power, bool force) ...@@ -1386,14 +1386,16 @@ int iwl_set_tx_power(struct iwl_priv *priv, s8 tx_power, bool force)
{ {
int ret = 0; int ret = 0;
if (tx_power < IWL_TX_POWER_TARGET_POWER_MIN) { if (tx_power < IWL_TX_POWER_TARGET_POWER_MIN) {
IWL_WARN(priv, "Requested user TXPOWER %d below limit.\n", IWL_WARN(priv, "Requested user TXPOWER %d below lower limit %d.\n",
priv->tx_power_user_lmt); tx_power,
IWL_TX_POWER_TARGET_POWER_MIN);
return -EINVAL; return -EINVAL;
} }
if (tx_power > IWL_TX_POWER_TARGET_POWER_MAX) { if (tx_power > IWL_TX_POWER_TARGET_POWER_MAX) {
IWL_WARN(priv, "Requested user TXPOWER %d above limit.\n", IWL_WARN(priv, "Requested user TXPOWER %d above upper limit %d.\n",
priv->tx_power_user_lmt); tx_power,
IWL_TX_POWER_TARGET_POWER_MAX);
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册