Skip to content

Commit e43ee98

Browse files
committed
wifi: rtw89: 8852b: Add rtw8852b_hfc_param_ini_usb
JIRA: https://issues.redhat.com/browse/RHEL-114891 commit f56b444 Author: Bitterblue Smith <rtl8821cerfe2@gmail.com> Date: Sat Jul 5 22:38:35 2025 +0300 wifi: rtw89: 8852b: Add rtw8852b_hfc_param_ini_usb "hfc" means "hci fc" which is "Host Control Interface Flow Control". These are some parameters needed for RTL8852BU. Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com> Acked-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/40dd1597-27d8-4316-ac3b-4bf7ff9f3e2f@gmail.com Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
1 parent d73db7f commit e43ee98

File tree

1 file changed

+45
-1
lines changed

1 file changed

+45
-1
lines changed

drivers/net/wireless/realtek/rtw89/rtw8852b.c

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,48 @@ static const struct rtw89_hfc_param_ini rtw8852b_hfc_param_ini_pcie[] = {
4949
[RTW89_QTA_INVALID] = {NULL},
5050
};
5151

52+
static const struct rtw89_hfc_ch_cfg rtw8852b_hfc_chcfg_usb[] = {
53+
{18, 152, grp_0}, /* ACH 0 */
54+
{18, 152, grp_0}, /* ACH 1 */
55+
{18, 152, grp_0}, /* ACH 2 */
56+
{18, 152, grp_0}, /* ACH 3 */
57+
{0, 0, grp_0}, /* ACH 4 */
58+
{0, 0, grp_0}, /* ACH 5 */
59+
{0, 0, grp_0}, /* ACH 6 */
60+
{0, 0, grp_0}, /* ACH 7 */
61+
{18, 152, grp_0}, /* B0MGQ */
62+
{18, 152, grp_0}, /* B0HIQ */
63+
{0, 0, grp_0}, /* B1MGQ */
64+
{0, 0, grp_0}, /* B1HIQ */
65+
{0, 0, 0} /* FWCMDQ */
66+
};
67+
68+
static const struct rtw89_hfc_pub_cfg rtw8852b_hfc_pubcfg_usb = {
69+
152, /* Group 0 */
70+
0, /* Group 1 */
71+
152, /* Public Max */
72+
0 /* WP threshold */
73+
};
74+
75+
static const struct rtw89_hfc_prec_cfg rtw8852b_hfc_preccfg_usb = {
76+
9, /* CH 0-11 pre-cost */
77+
32, /* H2C pre-cost */
78+
64, /* WP CH 0-7 pre-cost */
79+
24, /* WP CH 8-11 pre-cost */
80+
1, /* CH 0-11 full condition */
81+
1, /* H2C full condition */
82+
1, /* WP CH 0-7 full condition */
83+
1, /* WP CH 8-11 full condition */
84+
};
85+
86+
static const struct rtw89_hfc_param_ini rtw8852b_hfc_param_ini_usb[] = {
87+
[RTW89_QTA_SCC] = {rtw8852b_hfc_chcfg_usb, &rtw8852b_hfc_pubcfg_usb,
88+
&rtw8852b_hfc_preccfg_usb, RTW89_HCIFC_STF},
89+
[RTW89_QTA_DLFW] = {NULL, NULL,
90+
&rtw8852b_hfc_preccfg_usb, RTW89_HCIFC_STF},
91+
[RTW89_QTA_INVALID] = {NULL},
92+
};
93+
5294
static const struct rtw89_dle_mem rtw8852b_dle_mem_pcie[] = {
5395
[RTW89_QTA_SCC] = {RTW89_QTA_SCC, &rtw89_mac_size.wde_size7,
5496
&rtw89_mac_size.ple_size6, &rtw89_mac_size.wde_qt7,
@@ -846,7 +888,9 @@ const struct rtw89_chip_info rtw8852b_chip_info = {
846888
.max_amsdu_limit = 5000,
847889
.dis_2g_40m_ul_ofdma = true,
848890
.rsvd_ple_ofst = 0x2f800,
849-
.hfc_param_ini = {rtw8852b_hfc_param_ini_pcie, NULL, NULL},
891+
.hfc_param_ini = {rtw8852b_hfc_param_ini_pcie,
892+
rtw8852b_hfc_param_ini_usb,
893+
NULL},
850894
.dle_mem = {rtw8852b_dle_mem_pcie,
851895
rtw8852b_dle_mem_usb3,
852896
rtw8852b_dle_mem_usb3,

0 commit comments

Comments
 (0)