wifi: rtw89: fw: correct rtw89_fw_h2c_default_cmac_tbl_be()
PATCH 1/1 wifi: rtw89: fw: correct rtw89_fw_h2c_default_cmac_tbl_be()
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.
--- drivers/net/wireless/realtek/rtw89/fw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/realtek/rtw89/fw.c +1 -1
@@ -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 );
Signature · 1 line
2.30.2
Quoted 2 lines · Wentao Guan
BE_CCTL_INFO_W2_PRELOAD_ENABLEis forh2c->w2, noth2c->w1. These will causeh2c->w1wrong overlap by w2 and w2 not initialized.
Thanks for the catch.
Quoted 3 lines
Fixes c73607b3a8ef ("wifi: rtw89: fw: add CMAC H2C command to initialize default value for RTL8922D")Signed-off-by Wentao Guan <[email protected]>
Ping-Ke Shih
maintainerQuoted 10 lines · Ping-Ke Shih
Sent: Thursday, June 11, 2026 5:06 PM
To: Wentao Guan <[email protected]>
Cc: [email protected]; [email protected]; David Yang(楊典軒) <[email protected]>; [email protected]; [email protected]
Subject: RE: [PATCH] wifi: rtw89: fw: correctrtw89_fw_h2c_default_cmac_tbl_be()Quoted 2 lines · Wentao Guan
BE_CCTL_INFO_W2_PRELOAD_ENABLEis forh2c->w2, noth2c->w1. These will causeh2c->w1wrong overlap by w2 and w2 not initialized.
Quoted 8 lines
Thanks for the catch.
Quoted 3 lines
Fixes c73607b3a8ef ("wifi: rtw89: fw: add CMAC H2C command to initialize default value for RTL8922D")Signed-off-by Wentao Guan <[email protected]>Acked-by Ping-Ke Shih <[email protected]>
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() "
Quoted 14 lines
Quoted 13 lines · Ping-Ke Shih
Sent: Thursday, June 11, 2026 5:06 PM
To: Wentao Guan <[email protected]>
Cc: [email protected]; [email protected]; David Yang(楊典軒) <[email protected]>; [email protected]; [email protected]
Subject: RE: [PATCH] wifi: rtw89: fw: correctrtw89_fw_h2c_default_cmac_tbl_be()Quoted 2 lines · Wentao Guan
BE_CCTL_INFO_W2_PRELOAD_ENABLEis forh2c->w2, noth2c->w1. These will causeh2c->w1wrong overlap by w2 and w2 not initialized.Thanks for the catch.
Quoted 1 line
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Fixes c73607b3a8ef ("wifi: rtw89: fw: add CMAC H2C command to initialize default value for RTL8922D")Signed-off-by Wentao Guan <[email protected]>Acked-by Ping-Ke Shih <[email protected]>To let subject clear, I'll change it to
" wifi: rtw89: fw: correct preload field of w2 inrtw89_fw_h2c_default_cmac_tbl_be()"
OK, thanks for you review.
BRs
Wentao Guan
Ping-Ke Shih
maintainerQuoted 6 lines · Wentao Guan
BE_CCTL_INFO_W2_PRELOAD_ENABLEis forh2c->w2, noth2c->w1. These will causeh2c->w1wrong 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 <[email protected]>Acked-by Ping-Ke Shih <[email protected]>
1 patch(es) applied to rtw-next branch of rtw.git, thanks.
e13cd023a4cd wifi: rtw89: fw: correct preload field of w2 in rtw89_fw_h2c_default_cmac_tbl_be()