Skip to content

Commit

Permalink
iwlwifi: give correct return information for tx power debugfs
Browse files Browse the repository at this point in the history
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: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
  • Loading branch information
Wey-Yi Guy authored and Reinette Chatre committed May 10, 2010
1 parent 65d1f89 commit 0af0d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwlwifi/iwl-debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,7 @@ static ssize_t iwl_dbgfs_chain_tx_power_read(struct file *file,
struct statistics_tx *tx;

if (!iwl_is_alive(priv))
pos += scnprintf(buf + pos, bufsz - pos, "N/A\n");
return -EAGAIN;
else {
tx = &priv->statistics.tx;
if (tx->tx_power.ant_a ||
Expand Down

0 comments on commit 0af0d04

Please sign in to comment.