* [PATCH] wifi: rtw89: fw: correct rtw89_fw_h2c_default_cmac_tbl_be()
@ 2026-06-11 8:20 Wentao Guan
2026-06-11 9:05 ` Ping-Ke Shih
0 siblings, 1 reply; 4+ messages in thread
From: Wentao Guan @ 2026-06-11 8:20 UTC (permalink / raw)
To: pkshih
Cc: linux-wireless, linux-kernel, dian_syuan0116, zhanjun, niecheng1,
Wentao Guan
BE_CCTL_INFO_W2_PRELOAD_ENABLE is for h2c->w2, not h2c->w1.
These will cause h2c->w1 wrong overlap by w2 and w2 not initialized.
Fixes: c73607b3a8ef ("wifi: rtw89: fw: add CMAC H2C command to initialize default value for RTL8922D")
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
---
drivers/net/wireless/realtek/rtw89/fw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/realtek/rtw89/fw.c b/drivers/net/wireless/realtek/rtw89/fw.c
index 17704f054727a..af9bcdcef8fbb 100644
--- a/drivers/net/wireless/realtek/rtw89/fw.c
+++ b/drivers/net/wireless/realtek/rtw89/fw.c
@@ -3711,7 +3711,7 @@ int rtw89_fw_h2c_default_cmac_tbl_be(struct rtw89_dev *rtwdev,
le32_encode_bits(4, BE_CCTL_INFO_W1_RTS_RTY_LOWEST_RATE);
h2c->m1 = cpu_to_le32(BE_CCTL_INFO_W1_ALL);
- h2c->w1 = le32_encode_bits(preld, BE_CCTL_INFO_W2_PRELOAD_ENABLE);
+ h2c->w2 = le32_encode_bits(preld, BE_CCTL_INFO_W2_PRELOAD_ENABLE);
h2c->m2 = cpu_to_le32(BE_CCTL_INFO_W2_ALL);
h2c->m3 = cpu_to_le32(BE_CCTL_INFO_W3_ALL);
--
2.30.2
^ permalink raw reply related [flat|nested] 4+ messages in thread* RE: [PATCH] wifi: rtw89: fw: correct rtw89_fw_h2c_default_cmac_tbl_be()
2026-06-11 8:20 [PATCH] wifi: rtw89: fw: correct rtw89_fw_h2c_default_cmac_tbl_be() Wentao Guan
@ 2026-06-11 9:05 ` Ping-Ke Shih
2026-06-11 9:08 ` Ping-Ke Shih
0 siblings, 1 reply; 4+ messages in thread
From: Ping-Ke Shih @ 2026-06-11 9:05 UTC (permalink / raw)
To: Wentao Guan
Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
David Yang(楊典軒), zhanjun@uniontech.com,
niecheng1@uniontech.com
Wentao Guan <guanwentao@uniontech.com> wrote:
> BE_CCTL_INFO_W2_PRELOAD_ENABLE is for h2c->w2, not h2c->w1.
> These will cause h2c->w1 wrong overlap by w2 and w2 not initialized.
Thanks for the catch.
>
> Fixes: c73607b3a8ef ("wifi: rtw89: fw: add CMAC H2C command to initialize default value for RTL8922D")
> Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
^ permalink raw reply [flat|nested] 4+ messages in thread* RE: [PATCH] wifi: rtw89: fw: correct rtw89_fw_h2c_default_cmac_tbl_be()
2026-06-11 9:05 ` Ping-Ke Shih
@ 2026-06-11 9:08 ` Ping-Ke Shih
2026-06-11 9:11 ` Wentao Guan
0 siblings, 1 reply; 4+ messages in thread
From: Ping-Ke Shih @ 2026-06-11 9:08 UTC (permalink / raw)
To: Ping-Ke Shih, Wentao Guan
Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
David Yang(楊典軒), zhanjun@uniontech.com,
niecheng1@uniontech.com
Ping-Ke Shih <pkshih@realtek.com> wrote:
> Sent: Thursday, June 11, 2026 5:06 PM
> To: Wentao Guan <guanwentao@uniontech.com>
> Cc: linux-wireless@vger.kernel.org; linux-kernel@vger.kernel.org; David Yang(楊典軒)
> <dian_syuan0116@realtek.com>; zhanjun@uniontech.com; niecheng1@uniontech.com
> Subject: RE: [PATCH] wifi: rtw89: fw: correct rtw89_fw_h2c_default_cmac_tbl_be()
>
> Wentao Guan <guanwentao@uniontech.com> wrote:
> > BE_CCTL_INFO_W2_PRELOAD_ENABLE is for h2c->w2, not h2c->w1.
> > These will cause h2c->w1 wrong overlap by w2 and w2 not initialized.
>
> Thanks for the catch.
>
> >
> > Fixes: c73607b3a8ef ("wifi: rtw89: fw: add CMAC H2C command to initialize default value for RTL8922D")
> > Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
>
> Acked-by: Ping-Ke Shih <pkshih@realtek.com>
>
To let subject clear, I'll change it to
" wifi: rtw89: fw: correct preload field of w2 in rtw89_fw_h2c_default_cmac_tbl_be() "
^ permalink raw reply [flat|nested] 4+ messages in thread* Re:RE: [PATCH] wifi: rtw89: fw: correct rtw89_fw_h2c_default_cmac_tbl_be()
2026-06-11 9:08 ` Ping-Ke Shih
@ 2026-06-11 9:11 ` Wentao Guan
0 siblings, 0 replies; 4+ messages in thread
From: Wentao Guan @ 2026-06-11 9:11 UTC (permalink / raw)
To: Ping-Ke Shih (pkshih@realtek.com
Cc: linux-wireless@vger.kernel.org, linux-kernel,
dian_syuan0116 (dian_syuan0116@r, 占俊,
聂诚
> Ping-Ke Shih <pkshih@realtek.com> wrote:
> > Sent: Thursday, June 11, 2026 5:06 PM
> > To: Wentao Guan <guanwentao@uniontech.com>
> > Cc: linux-wireless@vger.kernel.org; linux-kernel@vger.kernel.org; David Yang(楊典軒)
> > <dian_syuan0116@realtek.com>; zhanjun@uniontech.com; niecheng1@uniontech.com
> > Subject: RE: [PATCH] wifi: rtw89: fw: correct rtw89_fw_h2c_default_cmac_tbl_be()
> >
> > Wentao Guan <guanwentao@uniontech.com> wrote:
> > > BE_CCTL_INFO_W2_PRELOAD_ENABLE is for h2c->w2, not h2c->w1.
> > > These will cause h2c->w1 wrong overlap by w2 and w2 not initialized.
> >
> > Thanks for the catch.
> >
> > >
> > > Fixes: c73607b3a8ef ("wifi: rtw89: fw: add CMAC H2C command to initialize default value for RTL8922D")
> > > Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
> >
> > Acked-by: Ping-Ke Shih <pkshih@realtek.com>
> >
>
> To let subject clear, I'll change it to
> " wifi: rtw89: fw: correct preload field of w2 in rtw89_fw_h2c_default_cmac_tbl_be() "
OK, thanks for you review.
BRs
Wentao Guan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-06-11 9:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-11 8:20 [PATCH] wifi: rtw89: fw: correct rtw89_fw_h2c_default_cmac_tbl_be() Wentao Guan
2026-06-11 9:05 ` Ping-Ke Shih
2026-06-11 9:08 ` Ping-Ke Shih
2026-06-11 9:11 ` Wentao Guan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.