diff options
author | adrian <adrian@FreeBSD.org> | 2014-05-05 17:06:40 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2014-05-05 17:06:40 +0000 |
commit | 204a407ff5ba304f6796196f87b75bd91286e712 (patch) | |
tree | 22543ad2b6cd9c51b47e7ca1b82244eb270d13cb | |
parent | c38af089e6bc9f9a413dff94cb7c26a1db1734c1 (diff) | |
download | FreeBSD-src-204a407ff5ba304f6796196f87b75bd91286e712.zip FreeBSD-src-204a407ff5ba304f6796196f87b75bd91286e712.tar.gz |
Wake up the hardware before calling ath_mode_init() in the ioctl() path.
Tested:
* AR5416, STA + powersave
-rw-r--r-- | sys/dev/ath/if_ath.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index d8b0a01..a3ab2f6 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) { /* |