diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2008-08-11 04:34:52 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-29 16:23:58 -0400 |
commit | b4696c8b9233bea812b972a5e79c5db7ecf13867 (patch) | |
tree | af515054456aa403ca973ecf9640e15639f75f5a /drivers/net/wireless/ath9k/main.c | |
parent | 6a2b9e8c8f4be9954933051719b312adcfb7263d (diff) |
ath9k: Use a single opmode variable
ah_opmode and sc_opmode are redundant.
This patch removes sc_opmode.
Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath9k/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c index 262fd7a8cd9a..7504b64020c9 100644 --- a/drivers/net/wireless/ath9k/main.c +++ b/drivers/net/wireless/ath9k/main.c | |||
@@ -472,7 +472,8 @@ static void ath9k_remove_interface(struct ieee80211_hw *hw, | |||
472 | ath_rate_newstate(sc, avp); | 472 | ath_rate_newstate(sc, avp); |
473 | 473 | ||
474 | /* Reclaim beacon resources */ | 474 | /* Reclaim beacon resources */ |
475 | if (sc->sc_opmode == ATH9K_M_HOSTAP || sc->sc_opmode == ATH9K_M_IBSS) { | 475 | if (sc->sc_ah->ah_opmode == ATH9K_M_HOSTAP || |
476 | sc->sc_ah->ah_opmode == ATH9K_M_IBSS) { | ||
476 | ath9k_hw_stoptxdma(sc->sc_ah, sc->sc_bhalq); | 477 | ath9k_hw_stoptxdma(sc->sc_ah, sc->sc_bhalq); |
477 | ath_beacon_return(sc, avp); | 478 | ath_beacon_return(sc, avp); |
478 | } | 479 | } |