aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ath/if_ath.c
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2014-05-05 17:06:40 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2014-05-05 17:06:40 +0000
commit4b734a1c84dd614e81f85164b9c282c5fe474709 (patch)
tree22543ad2b6cd9c51b47e7ca1b82244eb270d13cb /sys/dev/ath/if_ath.c
parent9d12ca17b5a0d6f21565405352405651b8e48344 (diff)
downloadsrc-4b734a1c84dd614e81f85164b9c282c5fe474709.tar.gz
src-4b734a1c84dd614e81f85164b9c282c5fe474709.zip
Wake up the hardware before calling ath_mode_init() in the ioctl() path.
Tested: * AR5416, STA + powersave
Notes
Notes: svn path=/head/; revision=265370
Diffstat (limited to 'sys/dev/ath/if_ath.c')
-rw-r--r--sys/dev/ath/if_ath.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index d8b0a0107779..a3ab2f61dbfa 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -6504,7 +6504,9 @@ ath_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
* 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) {
/*