Fix ah_powerMode to be set at the correct place for the AR5210.
Tested: * AR5210, STA mode
This commit is contained in:
parent
2ef3c88e4b
commit
151e9d2bb6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user