diff options
author | Adrian Chadd <adrian@FreeBSD.org> | 2014-03-22 03:36:07 +0000 |
---|---|---|
committer | Adrian Chadd <adrian@FreeBSD.org> | 2014-03-22 03:36:07 +0000 |
commit | f857fb4fa3e67cccee8c2d3aaf4a8048b193465f (patch) | |
tree | b9f530b29a9f476055733c72b06a67088a683213 /sys/dev | |
parent | f804336026decdbca2aa00982bbb8c048693890e (diff) | |
download | src-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
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ath/ath_hal/ar5212/ar5212_power.c | 4 |
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; } |