diff options
author | John W. Linville <linville@tuxdriver.com> | 2011-09-15 15:37:02 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-15 15:37:02 -0400 |
commit | 8ea9ac0a47a179bf404b4f451e5e82cffe11940d (patch) | |
tree | 13f313c34a63e745865b0bef0863cd8d2f05aa32 /drivers/net/wireless/ath/ath9k/main.c | |
parent | 31dda0ae933bb9fea9cfe000b698c41af0417cac (diff) | |
parent | 282cdb325aea4ebbc42ce753b47cc96145eb54bc (diff) |
Merge branch 'master' of git://git.infradead.org/users/linville/wireless into for-davem
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 6530694a59ae..722967b86cf1 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c @@ -2303,6 +2303,12 @@ static void ath9k_flush(struct ieee80211_hw *hw, bool drop) mutex_lock(&sc->mutex); cancel_delayed_work_sync(&sc->tx_complete_work); + if (ah->ah_flags & AH_UNPLUGGED) { + ath_dbg(common, ATH_DBG_ANY, "Device has been unplugged!\n"); + mutex_unlock(&sc->mutex); + return; + } + if (sc->sc_flags & SC_OP_INVALID) { ath_dbg(common, ATH_DBG_ANY, "Device not present\n"); mutex_unlock(&sc->mutex); |