aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNaveen Singh <nsingh@atheros.com>2011-04-21 16:30:40 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-04-25 19:24:24 -0400
commit8fcf92d1cf85329d0efc029c65af3f92b2041bf2 (patch)
treebc1ba075b9da20d0adde92821bcefe1530ba6803
parent3c9d2f6c14ebbfdc97945f8f8c023f1fde86732b (diff)
ath6kl: fix operations for power management
The cfg80211 ops for power management were completely broken. If we were asked for to go into power save it was putting device in awake, and when we were asked to become awake we were putting the device into power save... This fixes the powersave operations to do the right thing. Signed-off-by: Naveen Singh <nsingh@atheros.com> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/ath6kl/os/linux/cfg80211.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/ath6kl/os/linux/cfg80211.c b/drivers/staging/ath6kl/os/linux/cfg80211.c
index d5e554ecf29c..e87d3aa8526d 100644
--- a/drivers/staging/ath6kl/os/linux/cfg80211.c
+++ b/drivers/staging/ath6kl/os/linux/cfg80211.c
@@ -1209,10 +1209,10 @@ ar6k_cfg80211_set_power_mgmt(struct wiphy *wiphy,
1209 1209
1210 if(pmgmt) { 1210 if(pmgmt) {
1211 AR_DEBUG_PRINTF(ATH_DEBUG_INFO, ("%s: Max Perf\n", __func__)); 1211 AR_DEBUG_PRINTF(ATH_DEBUG_INFO, ("%s: Max Perf\n", __func__));
1212 pwrMode.powerMode = MAX_PERF_POWER; 1212 pwrMode.powerMode = REC_POWER;
1213 } else { 1213 } else {
1214 AR_DEBUG_PRINTF(ATH_DEBUG_INFO, ("%s: Rec Power\n", __func__)); 1214 AR_DEBUG_PRINTF(ATH_DEBUG_INFO, ("%s: Rec Power\n", __func__));
1215 pwrMode.powerMode = REC_POWER; 1215 pwrMode.powerMode = MAX_PERF_POWER;
1216 } 1216 }
1217 1217
1218 if(wmi_powermode_cmd(ar->arWmi, pwrMode.powerMode) != 0) { 1218 if(wmi_powermode_cmd(ar->arWmi, pwrMode.powerMode) != 0) {