linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: <pkshih@realtek.com>
To: <kvalo@codeaurora.org>
Cc: <tony0620emma@gmail.com>, <ku920601@realtek.com>,
	<linux-wireless@vger.kernel.org>
Subject: [PATCH v2 04/10] rtw88: coex: update AFH information while in free-run mode
Date: Thu, 26 Nov 2020 10:10:53 +0800	[thread overview]
Message-ID: <20201126021059.11981-5-pkshih@realtek.com> (raw)
In-Reply-To: <20201126021059.11981-1-pkshih@realtek.com>

From: Ching-Te Ku <ku920601@realtek.com>

In free run mode, this WLAN info updating is only related to AFH
information, not related to the connection state, which is the current
implementation.
Always update WLAN info in free run mode now.

Signed-off-by: Ching-Te Ku <ku920601@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
---
 drivers/net/wireless/realtek/rtw88/coex.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/realtek/rtw88/coex.c b/drivers/net/wireless/realtek/rtw88/coex.c
index c0dbc8a2f913..3a86b7191ba3 100644
--- a/drivers/net/wireless/realtek/rtw88/coex.c
+++ b/drivers/net/wireless/realtek/rtw88/coex.c
@@ -1361,6 +1361,7 @@ static void rtw_coex_action_freerun(struct rtw_dev *rtwdev)
 	struct rtw_efuse *efuse = &rtwdev->efuse;
 	struct rtw_chip_info *chip = rtwdev->chip;
 	u8 level = 0;
+	bool bt_afh_loss = true;
 
 	rtw_dbg(rtwdev, RTW_DBG_COEX, "[BTCoex], %s()\n", __func__);
 
@@ -1369,7 +1370,7 @@ static void rtw_coex_action_freerun(struct rtw_dev *rtwdev)
 
 	coex->freerun = true;
 
-	if (coex_stat->wl_connected)
+	if (bt_afh_loss)
 		rtw_coex_update_wl_ch_info(rtwdev, COEX_MEDIA_CONNECT);
 
 	rtw_coex_set_ant_path(rtwdev, false, COEX_SET_ANT_2G_FREERUN);
-- 
2.21.0


  parent reply	other threads:[~2020-11-26  2:13 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-26  2:10 [PATCH v2 00/10] rtw88: coex: enhance coex performance and synchronize coex code pkshih
2020-11-26  2:10 ` [PATCH v2 01/10] rtw88: coex: run coexistence when WLAN entering/leaving LPS pkshih
2020-12-02 19:24   ` Kalle Valo
2020-11-26  2:10 ` [PATCH v2 02/10] rtw88: coex: add debug message pkshih
2020-11-26  2:10 ` [PATCH v2 03/10] rtw88: coex: update the mechanism for A2DP + PAN pkshih
2020-11-26  2:10 ` pkshih [this message]
2020-11-26  2:10 ` [PATCH v2 05/10] rtw88: coex: change the coexistence mechanism for HID pkshih
2020-11-26  2:10 ` [PATCH v2 06/10] rtw88: coex: change the coexistence mechanism for WLAN connected pkshih
2020-11-26  2:10 ` [PATCH v2 07/10] rtw88: coex: add function to avoid cck lock pkshih
2020-11-26  2:10 ` [PATCH v2 08/10] rtw88: coex: add action for coexistence in hardware initial pkshih
2020-11-26  2:10 ` [PATCH v2 09/10] rtw88: coex: upgrade coexistence A2DP mechanism pkshih
2020-11-26  2:10 ` [PATCH v2 10/10] rtw88: coex: add feature to enhance HID coexistence performance pkshih

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201126021059.11981-5-pkshih@realtek.com \
    --to=pkshih@realtek.com \
    --cc=ku920601@realtek.com \
    --cc=kvalo@codeaurora.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=tony0620emma@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).