diff options
| author | Adrian Chadd <adrian@FreeBSD.org> | 2014-03-10 06:03:35 +0000 |
|---|---|---|
| committer | Adrian Chadd <adrian@FreeBSD.org> | 2014-03-10 06:03:35 +0000 |
| commit | 8a67b42a74807d988d9b8418e651e5c126e91078 (patch) | |
| tree | 9e3a2880c92a7d2f9707cadbcc1da21816d35c4e /sys/dev/ath/ath_hal/ar5312 | |
| parent | cd309dac8263ddb7210102cf04d01095fc7bcd82 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ath/ath_hal/ar5312')
| -rw-r--r-- | sys/dev/ath/ath_hal/ar5312/ar5312_power.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/ath/ath_hal/ar5312/ar5312_power.c b/sys/dev/ath/ath_hal/ar5312/ar5312_power.c index 94a0f1c64bcb..7db6d80cb495 100644 --- a/sys/dev/ath/ath_hal/ar5312/ar5312_power.c +++ b/sys/dev/ath/ath_hal/ar5312/ar5312_power.c @@ -71,7 +71,6 @@ ar5312SetPowerModeNetworkSleep(struct ath_hal *ah, int setChip) HAL_BOOL ar5312SetPowerMode(struct ath_hal *ah, HAL_POWER_MODE mode, int setChip) { - struct ath_hal_5212 *ahp = AH5212(ah); #ifdef AH_DEBUG static const char* modes[] = { "AWAKE", @@ -83,7 +82,7 @@ ar5312SetPowerMode(struct ath_hal *ah, HAL_POWER_MODE mode, int setChip) int status = AH_TRUE; HALDEBUG(ah, HAL_DEBUG_POWER, "%s: %s -> %s (%s)\n", __func__, - modes[ahp->ah_powerMode], modes[mode], + modes[ah->ah_powerMode], modes[mode], setChip ? "set chip " : ""); switch (mode) { case HAL_PM_AWAKE: @@ -100,7 +99,7 @@ ar5312SetPowerMode(struct ath_hal *ah, HAL_POWER_MODE mode, int setChip) __func__, mode); return AH_FALSE; } - ahp->ah_powerMode = mode; + ah->ah_powerMode = mode; return status; } |
