diff options
author | David S. Miller <davem@davemloft.net> | 2011-05-17 17:33:11 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-17 17:33:11 -0400 |
commit | 9cbc94eabb0791906051bbfac024ef2c2be8e079 (patch) | |
tree | 41ba194e687c6c60f5c883f98737ac83257d0c00 /drivers/net/wireless/ath/ath9k | |
parent | 1d1652cbdb9885e4d73972263e4cdbe1b0beebfe (diff) | |
parent | 7cc31a9ae1477abc79d5992b3afe889f25c50c99 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
drivers/net/vmxnet3/vmxnet3_ethtool.c
net/core/dev.c
Diffstat (limited to 'drivers/net/wireless/ath/ath9k')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 45303bdbc465..17ebdf1e8b7b 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -2265,6 +2265,8 @@ static void ath9k_set_coverage_class(struct ieee80211_hw *hw, u8 coverage_class) | |||
2265 | static void ath9k_flush(struct ieee80211_hw *hw, bool drop) | 2265 | static void ath9k_flush(struct ieee80211_hw *hw, bool drop) |
2266 | { | 2266 | { |
2267 | struct ath_softc *sc = hw->priv; | 2267 | struct ath_softc *sc = hw->priv; |
2268 | struct ath_hw *ah = sc->sc_ah; | ||
2269 | struct ath_common *common = ath9k_hw_common(ah); | ||
2268 | int timeout = 200; /* ms */ | 2270 | int timeout = 200; /* ms */ |
2269 | int i, j; | 2271 | int i, j; |
2270 | bool drain_txq; | 2272 | bool drain_txq; |
@@ -2272,6 +2274,12 @@ static void ath9k_flush(struct ieee80211_hw *hw, bool drop) | |||
2272 | mutex_lock(&sc->mutex); | 2274 | mutex_lock(&sc->mutex); |
2273 | cancel_delayed_work_sync(&sc->tx_complete_work); | 2275 | cancel_delayed_work_sync(&sc->tx_complete_work); |
2274 | 2276 | ||
2277 | if (sc->sc_flags & SC_OP_INVALID) { | ||
2278 | ath_dbg(common, ATH_DBG_ANY, "Device not present\n"); | ||
2279 | mutex_unlock(&sc->mutex); | ||
2280 | return; | ||
2281 | } | ||
2282 | |||
2275 | if (drop) | 2283 | if (drop) |
2276 | timeout = 1; | 2284 | timeout = 1; |
2277 | 2285 | ||