Return-path: Received: from mail-oi0-f65.google.com ([209.85.218.65]:33502 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1948603AbdEZSmB (ORCPT ); Fri, 26 May 2017 14:42:01 -0400 Received: by mail-oi0-f65.google.com with SMTP id h4so2993362oib.0 for ; Fri, 26 May 2017 11:42:01 -0700 (PDT) From: Larry Finger To: kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, Larry Finger , Yan-Hsuan Chuang , Ping-Ke Shih , Birming Chiu , Shaofu , Steven Ting Subject: [PATCH v2 6/7] rtlwifi: btcoex: Fix logic error in 21a 1ant Date: Fri, 26 May 2017 13:41:46 -0500 Message-Id: <20170526184147.31239-7-Larry.Finger@lwfinger.net> (sfid-20170526_204335_297885_8844D2F4) In-Reply-To: <20170526184147.31239-1-Larry.Finger@lwfinger.net> References: <20170526184147.31239-1-Larry.Finger@lwfinger.net> Sender: linux-wireless-owner@vger.kernel.org List-ID: An edit mistake introduced a logic error. Signed-off-by: Larry Finger Cc: Yan-Hsuan Chuang Cc: Ping-Ke Shih Cc: Birming Chiu Cc: Shaofu Cc: Steven Ting --- v2 - no changes --- drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c index 2740129a86cd..30364966b938 100644 --- a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c +++ b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c @@ -1613,7 +1613,7 @@ static void btc8821a1ant_act_wifi_con_bt_acl_busy(struct btc_coexist *btcoexist, btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); coex_dm->auto_tdma_adjust = false; - } else if ((bt_rssi_state != BTC_RSSI_STATE_HIGH) && + } else if ((bt_rssi_state == BTC_RSSI_STATE_HIGH) || (bt_rssi_state == BTC_RSSI_STATE_STAY_HIGH)) { btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 14); btc8821a1ant_coex_table_with_type(btcoexist, -- 2.12.0