提交 0af0d04b 编写于 作者: W Wey-Yi Guy 提交者: Reinette Chatre

iwlwifi: give correct return information for tx power debugfs

Return -EAGAIN when request tx power information and uCode is not ready;
so it will not confuse with tx power information not available.
Signed-off-by: NWey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: NReinette Chatre <reinette.chatre@intel.com>
上级 65d1f896
...@@ -1225,7 +1225,7 @@ static ssize_t iwl_dbgfs_chain_tx_power_read(struct file *file, ...@@ -1225,7 +1225,7 @@ static ssize_t iwl_dbgfs_chain_tx_power_read(struct file *file,
struct statistics_tx *tx; struct statistics_tx *tx;
if (!iwl_is_alive(priv)) if (!iwl_is_alive(priv))
pos += scnprintf(buf + pos, bufsz - pos, "N/A\n"); return -EAGAIN;
else { else {
tx = &priv->statistics.tx; tx = &priv->statistics.tx;
if (tx->tx_power.ant_a || if (tx->tx_power.ant_a ||
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册