mwl8k: Disable tx_wait completion
authorNishant Sarmukadam <[email protected]>
Tue, 8 Jan 2013 04:46:05 +0000 (10:16 +0530)
committerJohn W. Linville <[email protected]>
Wed, 9 Jan 2013 19:37:10 +0000 (14:37 -0500)
Whenever TX ring is drained, priv->tx_wait still points
to a valid completion. Making sure that it points to
NULL before returning from the  mwl8k_tx_wait_empty
check.

Signed-off-by: Nishant Sarmukadam <[email protected]>
Signed-off-by: Yogesh Ashok Powar <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
drivers/net/wireless/mwl8k.c

index c4d287b48e6452f473a888be2b1a019736ba15f4..04442c6290a6a1f48a7a05dfe44e11bfd3c7fc9e 100644 (file)
@@ -1588,6 +1588,7 @@ static int mwl8k_tx_wait_empty(struct ieee80211_hw *hw)
 
                rc = -ETIMEDOUT;
        }
+       priv->tx_wait = NULL;
        spin_unlock_bh(&priv->tx_lock);
 
        return rc;