]> git.ipfire.org Git - thirdparty/openwrt.git/blob
ad80a275f109600201c6a7ad483096eb1223afff
[thirdparty/openwrt.git] /
1 From d80e7d9b6ba38102f92559dbb647330216ea290b Mon Sep 17 00:00:00 2001
2 From: Bitterblue Smith <rtl8821cerfe2@gmail.com>
3 Date: Tue, 4 Feb 2025 20:38:43 +0200
4 Subject: [PATCH] wifi: rtw88: Extend rf_base_addr and rf_sipi_addr for
5 RTL8814AU
6
7 These members of struct rtw_chip_info each have a size of 2. Increase
8 their size to 4, which is the number of RF paths the RTL8814AU has.
9
10 This is required to read and write the RF registers of the RTL8814AU.
11
12 Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
13 Acked-by: Ping-Ke Shih <pkshih@realtek.com>
14 Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
15 Link: https://patch.msgid.link/7a4d8209-b8af-4943-b5de-f53d6edf591a@gmail.com
16 ---
17 drivers/net/wireless/realtek/rtw88/main.h | 4 ++--
18 1 file changed, 2 insertions(+), 2 deletions(-)
19
20 --- a/drivers/net/wireless/realtek/rtw88/main.h
21 +++ b/drivers/net/wireless/realtek/rtw88/main.h
22 @@ -1239,8 +1239,8 @@ struct rtw_chip_info {
23
24 const struct rtw_hw_reg *dig;
25 const struct rtw_hw_reg *dig_cck;
26 - u32 rf_base_addr[2];
27 - u32 rf_sipi_addr[2];
28 + u32 rf_base_addr[RTW_RF_PATH_MAX];
29 + u32 rf_sipi_addr[RTW_RF_PATH_MAX];
30 const struct rtw_rf_sipi_addr *rf_sipi_read_addr;
31 u8 fix_rf_phy_num;
32 const struct rtw_ltecoex_addr *ltecoex_addr;