svn commit: r265370 - head/sys/dev/ath

Adrian Chadd adrian at FreeBSD.org
Mon May 5 17:06:40 UTC 2014


Author: adrian
Date: Mon May  5 17:06:40 2014
New Revision: 265370
URL: http://svnweb.freebsd.org/changeset/base/265370

Log:
  Wake up the hardware before calling ath_mode_init() in the ioctl() path.
  
  Tested:
  
  * AR5416, STA + powersave

Modified:
  head/sys/dev/ath/if_ath.c

Modified: head/sys/dev/ath/if_ath.c
==============================================================================
--- head/sys/dev/ath/if_ath.c	Mon May  5 17:00:17 2014	(r265369)
+++ head/sys/dev/ath/if_ath.c	Mon May  5 17:06:40 2014	(r265370)
@@ -6504,7 +6504,9 @@ ath_ioctl(struct ifnet *ifp, u_long cmd,
 			 * only reflect promisc mode settings.
 			 */
 			ATH_LOCK(sc);
+			ath_power_set_power_state(sc, HAL_PM_AWAKE);
 			ath_mode_init(sc);
+			ath_power_restore_power_state(sc);
 			ATH_UNLOCK(sc);
 		} else if (ifp->if_flags & IFF_UP) {
 			/*


More information about the svn-src-all mailing list