diff options
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 | } |