diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2009-05-19 10:01:41 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-20 14:46:33 -0400 |
commit | aa68aeaaff8bbf58e355eb83b7d0c14ce82b2f12 (patch) | |
tree | 2b9bc787607db87d948ce8dd37ab368ffe750025 /drivers/net/wireless/ath/ath9k | |
parent | 54ce846e2c5ade77bc6650d8e8c7e775e01ad859 (diff) |
ath9k: Wake up for RX filter changes
We must make sure the chip is awake when changing the RX filter
parameters. This could have caused problems, e.g., when changing the
interface to promiscuous mode while in sleep mode.
Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index d2ef9732c1d9..d6545b3538b1 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -2428,8 +2428,10 @@ static void ath9k_configure_filter(struct ieee80211_hw *hw, | |||
2428 | *total_flags &= SUPPORTED_FILTERS; | 2428 | *total_flags &= SUPPORTED_FILTERS; |
2429 | 2429 | ||
2430 | sc->rx.rxfilter = *total_flags; | 2430 | sc->rx.rxfilter = *total_flags; |
2431 | ath9k_ps_wakeup(sc); | ||
2431 | rfilt = ath_calcrxfilter(sc); | 2432 | rfilt = ath_calcrxfilter(sc); |
2432 | ath9k_hw_setrxfilter(sc->sc_ah, rfilt); | 2433 | ath9k_hw_setrxfilter(sc->sc_ah, rfilt); |
2434 | ath9k_ps_restore(sc); | ||
2433 | 2435 | ||
2434 | DPRINTF(sc, ATH_DBG_CONFIG, "Set HW RX filter: 0x%x\n", sc->rx.rxfilter); | 2436 | DPRINTF(sc, ATH_DBG_CONFIG, "Set HW RX filter: 0x%x\n", sc->rx.rxfilter); |
2435 | } | 2437 | } |