From: Wey-Yi Guy Date: Mon, 26 Apr 2010 23:08:27 +0000 (-0700) Subject: iwlwifi: give correct return information for tx power debugfs X-Git-Tag: v2.6.35-rc1~473^2~42^2^2~66 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0af0d04b8db7712498558541cbedeeebdbabf70f;p=thirdparty%2Flinux.git 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 Signed-off-by: Reinette Chatre --- diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c index df34c3105e1e4..06905bb9238d6 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, 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 ||