Skip to content

Commit 477e475

Browse files
author
Narpat Mali
committed
wifi: rtw89: 885xbx: apply common settings to 8851B, 8852B and 8852BT
JIRA: https://issues.redhat.com/browse/RHEL-35542 Have not included the other new references for 8852BT, as it would need other commits with other new features. commit 190dc12 Author: Ping-Ke Shih <[email protected]> Date: Fri Jun 7 15:06:59 2024 +0800 wifi: rtw89: 885xbx: apply common settings to 8851B, 8852B and 8852BT Many common settings can share to 8851B, 8852B and 8852BT, so add an inline function rtw89_is_rtl885xb() to be concise. Meanwhile review and align settings for existing chips. Signed-off-by: Ping-Ke Shih <[email protected]> Link: https://msgid.link/[email protected] Signed-off-by: Narpat Mali <[email protected]>
1 parent ef14507 commit 477e475

File tree

1 file changed

+10
-0
lines changed
  • drivers/net/wireless/realtek/rtw89

1 file changed

+10
-0
lines changed

drivers/net/wireless/realtek/rtw89/core.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6076,6 +6076,16 @@ static inline bool rtw89_is_mlo_1_1(struct rtw89_dev *rtwdev)
60766076
}
60776077
}
60786078

6079+
static inline bool rtw89_is_rtl885xb(struct rtw89_dev *rtwdev)
6080+
{
6081+
enum rtw89_core_chip_id chip_id = rtwdev->chip->chip_id;
6082+
6083+
if (chip_id == RTL8852B || chip_id == RTL8851B)
6084+
return true;
6085+
6086+
return false;
6087+
}
6088+
60796089
int rtw89_core_tx_write(struct rtw89_dev *rtwdev, struct ieee80211_vif *vif,
60806090
struct ieee80211_sta *sta, struct sk_buff *skb, int *qsel);
60816091
int rtw89_h2c_tx(struct rtw89_dev *rtwdev,

0 commit comments

Comments
 (0)