svn commit: r263917 - head/sys/contrib/dev/ath/ath_hal/ar9300
Adrian Chadd
adrian at FreeBSD.org
Sat Mar 29 18:56:12 UTC 2014
Author: adrian
Date: Sat Mar 29 18:56:11 2014
New Revision: 263917
URL: http://svnweb.freebsd.org/changeset/base/263917
Log:
Fix ah_powerMode setting.
Reported by: sbruno
Modified:
head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_power.c
Modified: head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_power.c
==============================================================================
--- head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_power.c Sat Mar 29 18:13:22 2014 (r263916)
+++ head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_power.c Sat Mar 29 18:56:11 2014 (r263917)
@@ -669,6 +669,7 @@ ar9300_set_power_mode(struct ath_hal *ah
switch (mode) {
case HAL_PM_AWAKE:
+ ah->ah_powerMode = mode;
status = ar9300_set_power_mode_awake(ah, set_chip);
#if ATH_SUPPORT_MCI
if (AH_PRIVATE(ah)->ah_caps.halMciSupport) {
@@ -699,6 +700,7 @@ ar9300_set_power_mode(struct ath_hal *ah
#endif
ar9300_set_power_mode_sleep(ah, set_chip);
ahp->ah_chip_full_sleep = AH_TRUE;
+ ah->ah_powerMode = mode;
break;
case HAL_PM_NETWORK_SLEEP:
#if ATH_SUPPORT_MCI
@@ -707,13 +709,13 @@ ar9300_set_power_mode(struct ath_hal *ah
}
#endif
ar9300_set_power_mode_network_sleep(ah, set_chip);
+ ah->ah_powerMode = mode;
break;
default:
HALDEBUG(ah, HAL_DEBUG_POWER_MGMT,
"%s: unknown power mode %u\n", __func__, mode);
return AH_FALSE;
}
- ah->ah_powerMode = status;
return status;
}
More information about the svn-src-all
mailing list