rtlwifi: rtl8192ee: Fix TX hang due to failure to update TX write point
authorTroy Tan <troy_tan@realsil.com.cn>
Tue, 20 Jan 2015 17:01:23 +0000 (11:01 -0600)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 3 Feb 2015 13:10:19 +0000 (15:10 +0200)
Initially, the routine to update the write point in the FIFO buffer was
coded to save CPU time by not doing the calculation every interrupt. This
was an error and results in TX hangs.

Signed-off-by: Troy Tan <troy_tan@realsil.com.cn>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Stable <stable@vger.kernel.org> [V3.18]
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rtlwifi/rtl8192ee/trx.c

index 55d1da5e162b2b2a3323b0045fe8cadeb1e4acdf..04b91aade21d645ebc8bb340470488fac0151dca 100644 (file)
@@ -1027,8 +1027,7 @@ bool rtl92ee_is_tx_desc_closed(struct ieee80211_hw *hw, u8 hw_queue, u16 index)
        static u8 stop_report_cnt;
        struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[hw_queue];
 
-       /*checking Read/Write Point each interrupt wastes CPU */
-       if (stop_report_cnt > 15 || !rtlpriv->link_info.busytraffic) {
+       {
                u16 point_diff = 0;
                u16 cur_tx_rp, cur_tx_wp;
                u32 tmpu32 = 0;