rtlwifi: btcoex: 23b 2ant: treat too many low prio packets as retry
authorYan-Hsuan Chuang <yhchuang@realtek.com>
Thu, 6 Apr 2017 20:19:49 +0000 (15:19 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 13 Apr 2017 14:09:35 +0000 (17:09 +0300)
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Pkshih <pkshih@realtek.com>
Cc: Birming Chiu <birming@realtek.com>
Cc: Shaofu <shaofu@realtek.com>
Cc: Steven Ting <steventing@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c

index 327609e3a3097ee22c6b5ba0e7aacdcc807dd2d8..82a5e5357cb7da7725be6c37c5ba36e63931a401 100644 (file)
@@ -1884,6 +1884,11 @@ static void btc8723b2ant_tdma_duration_adjust(struct btc_coexist *btcoexist,
        } else {
                /*accquire the BT TRx retry count from BT_Info byte2*/
                retry_count = coex_sta->bt_retry_cnt;
+
+               if ((coex_sta->low_priority_tx) > 1050 ||
+                   (coex_sta->low_priority_rx) > 1250)
+                       retry_count++;
+
                RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_LOUD,
                         "[BTCoex], retry_count = %d\n", retry_count);
                RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_LOUD,