summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2014-03-22 03:36:07 +0000
committeradrian <adrian@FreeBSD.org>2014-03-22 03:36:07 +0000
commit35c60983b519a0a4c8d62215977c3aa419c44744 (patch)
treeb9f530b29a9f476055733c72b06a67088a683213
parentdf8e97fc8b389a343721dbd7f227ed43f43a0038 (diff)
downloadFreeBSD-src-35c60983b519a0a4c8d62215977c3aa419c44744.zip
FreeBSD-src-35c60983b519a0a4c8d62215977c3aa419c44744.tar.gz
Also set the AR5212 HAL power mode tracking in the right spot.
Tested: * D-Link DWL-G650 NIC (AR2413), STA mode
-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 f1c1f36..5556328 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;
}
OpenPOWER on IntegriCloud