Date: Mon, 5 May 2014 17:06:40 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r265370 - head/sys/dev/ath Message-ID: <201405051706.s45H6emW096690@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) { /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405051706.s45H6emW096690>