]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: rtw89: 8852c: support firmware format up to v1
authorPing-Ke Shih <pkshih@realtek.com>
Mon, 5 Aug 2024 09:00:24 +0000 (17:00 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Fri, 9 Aug 2024 00:36:12 +0000 (08:36 +0800)
Driver has supported different WoWLAN reason code by commit 0e5210217768
("wifi: rtw89: wow: update WoWLAN reason register for different FW")
since firmware version 0.27.80.0. The old driver can't support two
kinds of WoWLAN reason, so increase firmware format to v1.

Also driver tables of BB and RF registers and power values will be added
into v1 format.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20240805090028.27768-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/rtw8852c.c

index d9d7b3ff338aff4bbc1ffbed8c14b965715078d5..244f50e725499bbbff241b30ee15ead10501b8b9 100644 (file)
 #include "rtw8852c_table.h"
 #include "util.h"
 
-#define RTW8852C_FW_FORMAT_MAX 0
+#define RTW8852C_FW_FORMAT_MAX 1
 #define RTW8852C_FW_BASENAME "rtw89/rtw8852c_fw"
 #define RTW8852C_MODULE_FIRMWARE \
-       RTW8852C_FW_BASENAME ".bin"
+       RTW8852C_FW_BASENAME "-" __stringify(RTW8852C_FW_FORMAT_MAX) ".bin"
 
 static const struct rtw89_hfc_ch_cfg rtw8852c_hfc_chcfg_pcie[] = {
        {13, 1614, grp_0}, /* ACH 0 */