svn commit: r264900 - head/sys/dev/ath/ath_hal/ar5211

Adrian Chadd adrian at FreeBSD.org
Thu Apr 24 23:11:37 UTC 2014


Author: adrian
Date: Thu Apr 24 23:11:36 2014
New Revision: 264900
URL: http://svnweb.freebsd.org/changeset/base/264900

Log:
  Fix the AR5211 power mode tracking stuff.
  
  Tested:
  
  * AR5211, STA mode

Modified:
  head/sys/dev/ath/ath_hal/ar5211/ar5211_power.c

Modified: head/sys/dev/ath/ath_hal/ar5211/ar5211_power.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ar5211/ar5211_power.c	Thu Apr 24 23:11:18 2014	(r264899)
+++ head/sys/dev/ath/ath_hal/ar5211/ar5211_power.c	Thu Apr 24 23:11:36 2014	(r264900)
@@ -110,21 +110,23 @@ ar5211SetPowerMode(struct ath_hal *ah, H
 		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


More information about the svn-src-all mailing list