svn commit: r264898 - head/sys/dev/ath/ath_hal/ar5210

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


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

Log:
  Fix ah_powerMode to be set at the correct place for the AR5210.
  
  Tested:
  
  * AR5210, STA mode

Modified:
  head/sys/dev/ath/ath_hal/ar5210/ar5210_power.c

Modified: head/sys/dev/ath/ath_hal/ar5210/ar5210_power.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ar5210/ar5210_power.c	Thu Apr 24 22:28:53 2014	(r264897)
+++ head/sys/dev/ath/ath_hal/ar5210/ar5210_power.c	Thu Apr 24 23:10:24 2014	(r264898)
@@ -108,21 +108,23 @@ ar5210SetPowerMode(struct ath_hal *ah, H
 		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


More information about the svn-src-all mailing list