aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/ti/wlcore/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c
index b0795aac4bac..0df28d5cb331 100644
--- a/drivers/net/wireless/ti/wlcore/main.c
+++ b/drivers/net/wireless/ti/wlcore/main.c
@@ -1661,6 +1661,12 @@ static int wl1271_op_suspend(struct ieee80211_hw *hw,
1661 wl1271_debug(DEBUG_MAC80211, "mac80211 suspend wow=%d", !!wow); 1661 wl1271_debug(DEBUG_MAC80211, "mac80211 suspend wow=%d", !!wow);
1662 WARN_ON(!wow); 1662 WARN_ON(!wow);
1663 1663
1664 /* we want to perform the recovery before suspending */
1665 if (test_bit(WL1271_FLAG_RECOVERY_IN_PROGRESS, &wl->flags)) {
1666 wl1271_warning("postponing suspend to perform recovery");
1667 return -EBUSY;
1668 }
1669
1664 wl1271_tx_flush(wl); 1670 wl1271_tx_flush(wl);
1665 1671
1666 mutex_lock(&wl->mutex); 1672 mutex_lock(&wl->mutex);