diff options
| author | Adrian Chadd <adrian@FreeBSD.org> | 2014-04-24 23:10:24 +0000 |
|---|---|---|
| committer | Adrian Chadd <adrian@FreeBSD.org> | 2014-04-24 23:10:24 +0000 |
| commit | 151e9d2bb699863815f04ea727cdebfbecb75a10 (patch) | |
| tree | 7bf4f00c0a903596598eb79ca1af8d84acdf1192 /sys/dev/ath | |
| parent | 2ef3c88e4b1a445874b7dc4bb4218c26c086fba6 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ath')
| -rw-r--r-- | sys/dev/ath/ath_hal/ar5210/ar5210_power.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ath/ath_hal/ar5210/ar5210_power.c b/sys/dev/ath/ath_hal/ar5210/ar5210_power.c index f089d0e3eb16..7e7961fcc38a 100644 --- a/sys/dev/ath/ath_hal/ar5210/ar5210_power.c +++ b/sys/dev/ath/ath_hal/ar5210/ar5210_power.c @@ -108,21 +108,23 @@ ar5210SetPowerMode(struct ath_hal *ah, HAL_POWER_MODE mode, int setChip) setChip ? "set chip " : ""); switch (mode) { case HAL_PM_AWAKE: + ah->ah_powerMode = mode; status = ar5210SetPowerModeAwake(ah, setChip); break; case HAL_PM_FULL_SLEEP: ar5210SetPowerModeSleep(ah, setChip); + ah->ah_powerMode = mode; break; case HAL_PM_NETWORK_SLEEP: ar5210SetPowerModeAuto(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; + return status; } HAL_POWER_MODE |
