Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122819
b: refs/heads/master
c: 91f39e8
h: refs/heads/master
i:
  122817: 263b6bc
  122815: 1a4814e
v: v3
  • Loading branch information
Jay Sternberg authored and John W. Linville committed Dec 19, 2008
1 parent ea0c404 commit 5264ccc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f1bc4ac61f2c08515afd80c6dc3962aa6d0b138b
refs/heads/master: 91f39e8eea725347b6a82d1e35e512ec8b298b0b
6 changes: 5 additions & 1 deletion trunk/drivers/net/wireless/iwlwifi/iwl-agn.c
Original file line number Diff line number Diff line change
Expand Up @@ -3418,7 +3418,11 @@ static ssize_t show_tx_power(struct device *d,
struct device_attribute *attr, char *buf)
{
struct iwl_priv *priv = (struct iwl_priv *)d->driver_data;
return sprintf(buf, "%d\n", priv->tx_power_user_lmt);

if (!iwl_is_ready_rf(priv))
return sprintf(buf, "off\n");
else
return sprintf(buf, "%d\n", priv->tx_power_user_lmt);
}

static ssize_t store_tx_power(struct device *d,
Expand Down

0 comments on commit 5264ccc

Please sign in to comment.