From: Nishant Sarmukadam Date: Tue, 8 Jan 2013 04:46:05 +0000 (+0530) Subject: mwl8k: Disable tx_wait completion X-Git-Tag: v3.9~407^2~242^2^2~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b0b11fb1e286e03ce911b94844952edd05f554e;p=platform%2Fkernel%2Flinux-amlogic.git mwl8k: Disable tx_wait completion 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 Signed-off-by: Yogesh Ashok Powar Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c index c4d287b..04442c6 100644 --- a/drivers/net/wireless/mwl8k.c +++ b/drivers/net/wireless/mwl8k.c @@ -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;