linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: <pkshih@realtek.com>
To: <kvalo@codeaurora.org>, <tony0620emma@gmail.com>
Cc: <linux-wireless@vger.kernel.org>
Subject: [PATCH 09/11] rtw88: coex: update WLAN 5G AFH parameter for 8822b
Date: Fri, 23 Oct 2020 17:37:40 +0800	[thread overview]
Message-ID: <20201023093742.29908-10-pkshih@realtek.com> (raw)
In-Reply-To: <20201023093742.29908-1-pkshih@realtek.com>

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

Adaptive Frequency Hopping(AFH) is a method of transmitting
radio signals by rapidly changing the carrier frequency among
many distinct frequencies, which can avoid interference.
Add this feature to update AFH parameter for 8822b.

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

diff --git a/drivers/net/wireless/realtek/rtw88/rtw8822b.c b/drivers/net/wireless/realtek/rtw88/rtw8822b.c
index 743a2f6f1965..f7f6a63e576f 100644
--- a/drivers/net/wireless/realtek/rtw88/rtw8822b.c
+++ b/drivers/net/wireless/realtek/rtw88/rtw8822b.c
@@ -2260,7 +2260,6 @@ static const struct coex_tdma_para tdma_nsant_8822b[] = {
 /* rssi in percentage % (dbm = % - 100) */
 static const u8 wl_rssi_step_8822b[] = {60, 50, 44, 30};
 static const u8 bt_rssi_step_8822b[] = {30, 30, 30, 30};
-static const struct coex_5g_afh_map afh_5g_8822b[] = { {0, 0, 0} };
 
 /* wl_tx_dec_power, bt_tx_dec_power, wl_rx_gain, bt_rx_lna_constrain */
 static const struct coex_rf_para rf_para_tx_8822b[] = {
@@ -2281,6 +2280,27 @@ static const struct coex_rf_para rf_para_rx_8822b[] = {
 	{1, 13, true, 1}
 };
 
+static const struct coex_5g_afh_map afh_5g_8822b[] = {
+	{120, 2, 4},
+	{124, 8, 8},
+	{128, 17, 8},
+	{132, 26, 10},
+	{136, 34, 8},
+	{140, 42, 10},
+	{144, 51, 8},
+	{149, 62, 8},
+	{153, 71, 10},
+	{157, 77, 4},
+	{118, 2, 4},
+	{126, 12, 16},
+	{134, 29, 16},
+	{142, 46, 16},
+	{151, 66, 16},
+	{159, 76, 4},
+	{122, 10, 20},
+	{138, 37, 34},
+	{155, 68, 20}
+};
 static_assert(ARRAY_SIZE(rf_para_tx_8822b) == ARRAY_SIZE(rf_para_rx_8822b));
 
 static const u8
-- 
2.21.0


  parent reply	other threads:[~2020-10-23  9:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-23  9:37 [PATCH 00/11] rtw88: coex: fix field issues and add debug interfaces pkshih
2020-10-23  9:37 ` [PATCH 01/11] rtw88: coex: fixed some wrong register definition and setting pkshih
2020-10-23  9:37 ` [PATCH 02/11] rtw88: coex: update coex parameter to improve A2DP quality pkshih
2020-10-23  9:37 ` [PATCH 03/11] rtw88: coex: reduce magic number pkshih
2020-10-23  9:37 ` [PATCH 04/11] rtw88: coex: coding style adjustment pkshih
2020-10-23 17:26   ` kernel test robot
2020-10-23  9:37 ` [PATCH 05/11] rtw88: coex: Modify the timing of set_ant_path/set_rf_para pkshih
2020-10-23  9:37 ` [PATCH 06/11] rtw88: coex: add separate flag for manual control pkshih
2020-10-23  9:37 ` [PATCH 07/11] rtw88: coex: modified for BT info notify pkshih
2020-10-23  9:37 ` [PATCH 08/11] rtw88: coex: change the parameter for A2DP when WLAN connecting pkshih
2020-10-23  9:37 ` pkshih [this message]
2020-10-23  9:37 ` [PATCH 10/11] rtw88: coex: add debug message pkshih
2020-10-23  9:37 ` [PATCH 11/11] rtw88: coex: simplify the setting and condition about WLAN TX limitation 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=20201023093742.29908-10-pkshih@realtek.com \
    --to=pkshih@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).