Skip to content

Commit

Permalink
ath6kl: fix operations for power management
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Naveen Singh authored and Greg Kroah-Hartman committed Apr 25, 2011
1 parent 3c9d2f6 commit 8fcf92d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/ath6kl/os/linux/cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -1209,10 +1209,10 @@ ar6k_cfg80211_set_power_mgmt(struct wiphy *wiphy,

if(pmgmt) {
AR_DEBUG_PRINTF(ATH_DEBUG_INFO, ("%s: Max Perf\n", __func__));
pwrMode.powerMode = MAX_PERF_POWER;
pwrMode.powerMode = REC_POWER;
} else {
AR_DEBUG_PRINTF(ATH_DEBUG_INFO, ("%s: Rec Power\n", __func__));
pwrMode.powerMode = REC_POWER;
pwrMode.powerMode = MAX_PERF_POWER;
}

if(wmi_powermode_cmd(ar->arWmi, pwrMode.powerMode) != 0) {
Expand Down

0 comments on commit 8fcf92d

Please sign in to comment.