Skip to contentSkip to conversation

wifi: rtw89: coex: fix configuration for shared antenna for 8922A

PATCH In review Ping-Ke Shih 2 participants 3 messages Mar 9, 2024 – Mar 14, 2024 Realtek wireless driver (rtw89)

lore
Share & tools
lore

Ping-Ke Shih

author maintainer
#0 lore raw

PATCH 1/1 wifi: rtw89: coex: fix configuration for shared antenna for 8922A

WiFi 2x2 + BT combo cards can be two or three physical antenna. For two antenna case, one antenna is shared by WiFi and BT, and different configuration should be applied. Fix the typo.

This problem was found by Coccicheck, and actually that is a typo instead:
drivers/net/wireless/realtek/rtw89/rtw8922a.c:2235:2-4:

    WARNING: possible condition with no effect (if == else)
---
 drivers/net/wireless/realtek/rtw89/rtw8922a.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/realtek/rtw89/rtw8922a.c +1 -1
index 367459bd1345..708132d5be2a 100644
@@ -2233,7 +2233,7 @@ static void rtw8922a_btc_init_cfg(struct rtw89_dev *rtwdev)
 		 * Shared-Ant && BTG-path:WL mask(0x55f), others:WL THRU(0x5ff)
 		 */
 		if (btc->ant_type == BTC_ANT_SHARED && btc->btg_pos == path)
-			rtw8922a_set_trx_mask(rtwdev, path, BTC_BT_TX_GROUP, 0x5ff);
+			rtw8922a_set_trx_mask(rtwdev, path, BTC_BT_TX_GROUP, 0x55f);
 		else
 			rtw8922a_set_trx_mask(rtwdev, path, BTC_BT_TX_GROUP, 0x5ff);
 
Signature · 1 line
2.25.1
#1 lore raw
Quoted 6 lines · Ping-Ke Shih

WiFi 2x2 + BT combo cards can be two or three physical antenna. For two antenna case, one antenna is shared by WiFi and BT, and different configuration should be applied. Fix the typo.

This problem was found by Coccicheck, and actually that is a typo instead:

Quoted 7 lines

rtw8922a.c:2235:2-4: WARNING: possible condition with no effect (if == else)

Fixes 652c9642eda6 ("wifi: rtw89: coex: add init_info H2C command format version 7")
Cc Ching-Te Ku <[email protected]>
Cc Jakub Kicinski <[email protected]>

Patch applied to wireless.git, thanks.

cec60af1972d wifi: rtw89: coex: fix configuration for shared antenna for 8922A

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
#2 lore raw
In reply to Ping-Ke Shih
Quoted 10 lines · Ping-Ke Shih

WiFi 2x2 + BT combo cards can be two or three physical antenna. For two antenna case, one antenna is shared by WiFi and BT, and different configuration should be applied. Fix the typo.

This problem was found by Coccicheck, and actually that is a typo instead:
drivers/net/wireless/realtek/rtw89/rtw8922a.c:2235:2-4:

    WARNING: possible condition with no effect (if == else)

BTW for Closes and Link tags it's better to use a direct lore link with Message-Id:

    Closes: https://lore.kernel.org/linux-wireless/[email protected]/

The benefits are:

* as the Message-Id is in the link, the mail can be found even if lore.kernel.org would go away

* it's shorter

* regzbot uses the Message-Id to close the issues

In lore you can get the URL from "permalink" link. I changed the link during commit, so no need to resend.

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches