aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2014-03-22 03:36:07 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2014-03-22 03:36:07 +0000
commitf857fb4fa3e67cccee8c2d3aaf4a8048b193465f (patch)
treeb9f530b29a9f476055733c72b06a67088a683213
parentf804336026decdbca2aa00982bbb8c048693890e (diff)
downloadsrc-f857fb4fa3e67cccee8c2d3aaf4a8048b193465f.tar.gz
src-f857fb4fa3e67cccee8c2d3aaf4a8048b193465f.zip
Also set the AR5212 HAL power mode tracking in the right spot.
Tested: * D-Link DWL-G650 NIC (AR2413), STA mode
Notes
Notes: svn path=/head/; revision=263618
-rw-r--r--sys/dev/ath/ath_hal/ar5212/ar5212_power.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ath/ath_hal/ar5212/ar5212_power.c b/sys/dev/ath/ath_hal/ar5212/ar5212_power.c
index f1c1f3660be7..555632895910 100644
--- a/sys/dev/ath/ath_hal/ar5212/ar5212_power.c
+++ b/sys/dev/ath/ath_hal/ar5212/ar5212_power.c
@@ -134,20 +134,22 @@ ar5212SetPowerMode(struct ath_hal *ah, HAL_POWER_MODE mode, int setChip)
setChip ? "set chip " : "");
switch (mode) {
case HAL_PM_AWAKE:
+ ah->ah_powerMode = mode;
status = ar5212SetPowerModeAwake(ah, setChip);
break;
case HAL_PM_FULL_SLEEP:
ar5212SetPowerModeSleep(ah, setChip);
+ ah->ah_powerMode = mode;
break;
case HAL_PM_NETWORK_SLEEP:
ar5212SetPowerModeNetworkSleep(ah, setChip);
+ ah->ah_powerMode = mode;
break;
default:
HALDEBUG(ah, HAL_DEBUG_ANY, "%s: unknown power mode %u\n",
__func__, mode);
return AH_FALSE;
}
- ah->ah_powerMode = mode;
return status;
}