diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-04-26 19:08:27 -0400 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-05-10 18:08:49 -0400 |
commit | 0af0d04b8db7712498558541cbedeeebdbabf70f (patch) | |
tree | 601dd26725cbfa6ac50c5f88dff8f096b899ad58 /drivers/net/wireless/iwlwifi/iwl-debugfs.c | |
parent | 65d1f89682acf4d61dec7a8b771ed34afb7c17d9 (diff) |
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: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-debugfs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c index df34c3105e1e..06905bb9238d 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c +++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c | |||
@@ -1225,7 +1225,7 @@ static ssize_t iwl_dbgfs_chain_tx_power_read(struct file *file, | |||
1225 | struct statistics_tx *tx; | 1225 | struct statistics_tx *tx; |
1226 | 1226 | ||
1227 | if (!iwl_is_alive(priv)) | 1227 | if (!iwl_is_alive(priv)) |
1228 | pos += scnprintf(buf + pos, bufsz - pos, "N/A\n"); | 1228 | return -EAGAIN; |
1229 | else { | 1229 | else { |
1230 | tx = &priv->statistics.tx; | 1230 | tx = &priv->statistics.tx; |
1231 | if (tx->tx_power.ant_a || | 1231 | if (tx->tx_power.ant_a || |