aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index 1d4e9cadb088..e2cc5994d108 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -2617,12 +2617,10 @@ static ssize_t show_power_level(struct device *d,
2617 struct device_attribute *attr, char *buf) 2617 struct device_attribute *attr, char *buf)
2618{ 2618{
2619 struct iwl_priv *priv = dev_get_drvdata(d); 2619 struct iwl_priv *priv = dev_get_drvdata(d);
2620 int mode = priv->power_data.user_power_setting;
2621 int level = priv->power_data.power_mode; 2620 int level = priv->power_data.power_mode;
2622 char *p = buf; 2621 char *p = buf;
2623 2622
2624 p += sprintf(p, "INDEX:%d\t", level); 2623 p += sprintf(p, "%d\n", level);
2625 p += sprintf(p, "USER:%d\n", mode);
2626 return p - buf + 1; 2624 return p - buf + 1;
2627} 2625}
2628 2626