mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix the AR5211 power mode tracking stuff.
Tested: * AR5211, STA mode
This commit is contained in:
parent
9b34359b11
commit
db23679569
1 changed files with 4 additions and 2 deletions
|
|
@ -110,21 +110,23 @@ ar5211SetPowerMode(struct ath_hal *ah, HAL_POWER_MODE mode, int setChip)
|
|||
setChip ? "set chip " : "");
|
||||
switch (mode) {
|
||||
case HAL_PM_AWAKE:
|
||||
ah->ah_powerMode = mode;
|
||||
status = ar5211SetPowerModeAwake(ah, setChip);
|
||||
break;
|
||||
case HAL_PM_FULL_SLEEP:
|
||||
ar5211SetPowerModeSleep(ah, setChip);
|
||||
ah->ah_powerMode = mode;
|
||||
break;
|
||||
case HAL_PM_NETWORK_SLEEP:
|
||||
ar5211SetPowerModeNetworkSleep(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
|
||||
|
|
|
|||
Loading…
Reference in a new issue