diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2008-08-11 14:01:47 +0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-29 16:24:02 -0400 |
commit | 2ad67de3c8a21354b8b2721d5d2baabb7c5013c9 (patch) | |
tree | d05dd0bdc12d96df7cab6c7ef3548f2094215086 /drivers/net/wireless/ath9k/core.c | |
parent | 98deeea0b3464955ec416c30cbd0c3d21cacfa9a (diff) | |
download | kernel_goldelico_gta04-2ad67de3c8a21354b8b2721d5d2baabb7c5013c9.zip kernel_goldelico_gta04-2ad67de3c8a21354b8b2721d5d2baabb7c5013c9.tar.gz kernel_goldelico_gta04-2ad67de3c8a21354b8b2721d5d2baabb7c5013c9.tar.bz2 |
ath9k: Allow AP mode to be enabled
Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/core.c')
-rw-r--r-- | drivers/net/wireless/ath9k/core.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath9k/core.c b/drivers/net/wireless/ath9k/core.c index 0d953f9f..9737775 100644 --- a/drivers/net/wireless/ath9k/core.c +++ b/drivers/net/wireless/ath9k/core.c @@ -549,9 +549,15 @@ int ath_vap_listen(struct ath_softc *sc, int if_id) * XXXX * Disable BMISS interrupt when we're not associated */ - ath9k_hw_set_interrupts(ah, - sc->sc_imask & ~(ATH9K_INT_SWBA | ATH9K_INT_BMISS)); - sc->sc_imask &= ~(ATH9K_INT_SWBA | ATH9K_INT_BMISS); + if (sc->sc_ah->ah_opmode == ATH9K_M_HOSTAP) { + ath9k_hw_set_interrupts(ah, sc->sc_imask & ~ATH9K_INT_BMISS); + sc->sc_imask &= ~ATH9K_INT_BMISS; + } else { + ath9k_hw_set_interrupts( + ah, + sc->sc_imask & ~(ATH9K_INT_SWBA | ATH9K_INT_BMISS)); + sc->sc_imask &= ~(ATH9K_INT_SWBA | ATH9K_INT_BMISS); + } /* need to reconfigure the beacons when it moves to RUN */ sc->sc_flags &= ~SC_OP_BEACONS; |