diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2008-10-29 00:47:54 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-11-10 15:16:06 -0500 |
commit | 05a1e2d111c98340fb17ec702cf09450eec3a947 (patch) | |
tree | e0ad137a5b964f6864276eb216aa6c1b0f449b0a | |
parent | 154662a6356ec3ccfea0a22218cf149220ea6373 (diff) |
ath9k: Enable interrupts at the proper place
config_interface() was the wrong place to enable interrupts
when bringing up an interface, move it to ath_open().
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath9k/core.c | 9 | ||||
-rw-r--r-- | drivers/net/wireless/ath9k/main.c | 6 |
2 files changed, 4 insertions, 11 deletions
diff --git a/drivers/net/wireless/ath9k/core.c b/drivers/net/wireless/ath9k/core.c index 1826818c7b45..d13844647f93 100644 --- a/drivers/net/wireless/ath9k/core.c +++ b/drivers/net/wireless/ath9k/core.c | |||
@@ -675,13 +675,12 @@ int ath_open(struct ath_softc *sc, struct ath9k_channel *initial_chan) | |||
675 | 675 | ||
676 | ath_setcurmode(sc, ath_chan2mode(initial_chan)); | 676 | ath_setcurmode(sc, ath_chan2mode(initial_chan)); |
677 | 677 | ||
678 | /* | ||
679 | * Don't enable interrupts here as we've not yet built our | ||
680 | * vap and node data structures, which will be needed as soon | ||
681 | * as we start receiving. | ||
682 | */ | ||
683 | sc->sc_flags &= ~SC_OP_INVALID; | 678 | sc->sc_flags &= ~SC_OP_INVALID; |
684 | 679 | ||
680 | /* Disable BMISS interrupt when we're not associated */ | ||
681 | sc->sc_imask &= ~(ATH9K_INT_SWBA | ATH9K_INT_BMISS); | ||
682 | ath9k_hw_set_interrupts(sc->sc_ah,sc->sc_imask); | ||
683 | |||
685 | ieee80211_wake_queues(sc->hw); | 684 | ieee80211_wake_queues(sc->hw); |
686 | done: | 685 | done: |
687 | return error; | 686 | return error; |
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c index 01a5be94a05f..85a23c6a9d83 100644 --- a/drivers/net/wireless/ath9k/main.c +++ b/drivers/net/wireless/ath9k/main.c | |||
@@ -1237,12 +1237,6 @@ static int ath9k_config_interface(struct ieee80211_hw *hw, | |||
1237 | /* Set aggregation protection mode parameters */ | 1237 | /* Set aggregation protection mode parameters */ |
1238 | sc->sc_config.ath_aggr_prot = 0; | 1238 | sc->sc_config.ath_aggr_prot = 0; |
1239 | 1239 | ||
1240 | /* Disable BMISS interrupt when we're not associated */ | ||
1241 | ath9k_hw_set_interrupts(sc->sc_ah, | ||
1242 | sc->sc_imask & | ||
1243 | ~(ATH9K_INT_SWBA | ATH9K_INT_BMISS)); | ||
1244 | sc->sc_imask &= ~(ATH9K_INT_SWBA | ATH9K_INT_BMISS); | ||
1245 | |||
1246 | DPRINTF(sc, ATH_DBG_CONFIG, | 1240 | DPRINTF(sc, ATH_DBG_CONFIG, |
1247 | "%s: RX filter 0x%x bssid %pM aid 0x%x\n", | 1241 | "%s: RX filter 0x%x bssid %pM aid 0x%x\n", |
1248 | __func__, rfilt, | 1242 | __func__, rfilt, |