Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

archlinux compile error #1

Closed
devome opened this issue Apr 15, 2022 · 20 comments
Closed

archlinux compile error #1

devome opened this issue Apr 15, 2022 · 20 comments

Comments

@devome
Copy link

devome commented Apr 15, 2022

os: archlinux
kernerl version: Linux laptop 5.17.3-arch1-1 #1 SMP PREEMPT Thu, 14 Apr 2022 01:18:36 +0000 x86_64 GNU/Linux
platform: x86_64
config:

CONFIG_PLATFORM_I386_PC = y
CONFIG_PLATFORM_RTL8198D = n
CONFIG_PLATFORM_ANDROID_X86 = n
CONFIG_PLATFORM_ANDROID_INTEL_X86 = n
CONFIG_PLATFORM_NV_TK1 = n
CONFIG_PLATFORM_NV_TK1_UBUNTU = n
CONFIG_PLATFORM_ARM_SUNxI = n
CONFIG_PLATFORM_RTK1319 = n
CONFIG_PLATFORM_RTK16XXB = n
CONFIG_PLATFORM_AML_S905 = n
CONFIG_PLATFORM_HUANGLONG = n
CONFIG_PLATFORM_ARM_RK3399 = n

When I tried to compile the firmware of rtl8852be for this machine, the following error occurred:

#rm -f .symvers.8852be
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.17.3-arch1-1/build M=/home/evine/scripts/rtl8852be  modules
make[1]: Entering directory '/usr/lib/modules/5.17.3-arch1-1/build'
  CC [M]  /home/evine/scripts/rtl8852be/platform/platform_linux_pc_pci.o
  CC [M]  /home/evine/scripts/rtl8852be/os_dep/osdep_service.o
  CC [M]  /home/evine/scripts/rtl8852be/os_dep/osdep_service_linux.o
  CC [M]  /home/evine/scripts/rtl8852be/os_dep/linux/rtw_cfg.o
  CC [M]  /home/evine/scripts/rtl8852be/os_dep/linux/os_intfs.o
  CC [M]  /home/evine/scripts/rtl8852be/os_dep/linux/ioctl_linux.o
  CC [M]  /home/evine/scripts/rtl8852be/os_dep/linux/xmit_linux.o
  CC [M]  /home/evine/scripts/rtl8852be/os_dep/linux/mlme_linux.o
In file included from /home/evine/scripts/rtl8852be/include/osdep_service.h:42,
                 from /home/evine/scripts/rtl8852be/include/drv_types.h:25,
                 from /home/evine/scripts/rtl8852be/os_dep/osdep_service_linux.c:16:
/home/evine/scripts/rtl8852be/include/osdep_service_linux.h: In function 'rtw_thread_exit':
/home/evine/scripts/rtl8852be/include/osdep_service_linux.h:491:9: error: implicit declaration of function 'complete_and_exit' [-Werror=implicit-function-declaration]
  491 |         complete_and_exit(comp, 0);
      |         ^~~~~~~~~~~~~~~~~
In file included from /home/evine/scripts/rtl8852be/include/osdep_service.h:42,
                 from /home/evine/scripts/rtl8852be/include/drv_types.h:25,
                 from /home/evine/scripts/rtl8852be/os_dep/linux/os_intfs.c:17:
/home/evine/scripts/rtl8852be/include/osdep_service_linux.h: In function 'rtw_thread_exit':
/home/evine/scripts/rtl8852be/include/osdep_service_linux.h:491:9: error: implicit declaration of function 'complete_and_exit' [-Werror=implicit-function-declaration]
  491 |         complete_and_exit(comp, 0);
      |         ^~~~~~~~~~~~~~~~~
In file included from /home/evine/scripts/rtl8852be/include/osdep_service.h:42,
                 from /home/evine/scripts/rtl8852be/include/drv_types.h:25,
                 from /home/evine/scripts/rtl8852be/os_dep/osdep_service.c:17:
/home/evine/scripts/rtl8852be/include/osdep_service_linux.h: In function 'rtw_thread_exit':
In file included from /home/evine/scripts/rtl8852be/include/osdep_service.h:42,
                 from /home/evine/scripts/rtl8852be/include/drv_types.h:25,
                 from /home/evine/scripts/rtl8852be/os_dep/linux/xmit_linux.c:17:
/home/evine/scripts/rtl8852be/include/osdep_service_linux.h: In function 'rtw_thread_exit':
/home/evine/scripts/rtl8852be/include/osdep_service_linux.h:491:9: error: implicit declaration of function 'complete_and_exit' [-Werror=implicit-function-declaration]
  491 |         complete_and_exit(comp, 0);
      |         ^~~~~~~~~~~~~~~~~
/home/evine/scripts/rtl8852be/include/osdep_service_linux.h:491:9: error: implicit declaration of function 'complete_and_exit' [-Werror=implicit-function-declaration]
  491 |         complete_and_exit(comp, 0);
      |         ^~~~~~~~~~~~~~~~~
In file included from /home/evine/scripts/rtl8852be/include/osdep_service.h:42,
                 from /home/evine/scripts/rtl8852be/include/drv_types.h:25,
                 from /home/evine/scripts/rtl8852be/os_dep/linux/mlme_linux.c:19:
/home/evine/scripts/rtl8852be/include/osdep_service_linux.h: In function 'rtw_thread_exit':
/home/evine/scripts/rtl8852be/include/osdep_service_linux.h:491:9: error: implicit declaration of function 'complete_and_exit' [-Werror=implicit-function-declaration]
  491 |         complete_and_exit(comp, 0);
      |         ^~~~~~~~~~~~~~~~~
In file included from /home/evine/scripts/rtl8852be/include/osdep_service.h:42,
                 from /home/evine/scripts/rtl8852be/include/drv_types.h:25,
                 from /home/evine/scripts/rtl8852be/os_dep/linux/ioctl_linux.c:17:
/home/evine/scripts/rtl8852be/include/osdep_service_linux.h: In function 'rtw_thread_exit':
In file included from /home/evine/scripts/rtl8852be/include/osdep_service.h:42,
                 from /home/evine/scripts/rtl8852be/include/drv_types.h:25,
                 from /home/evine/scripts/rtl8852be/platform/platform_linux_pc_pci.c:15:
/home/evine/scripts/rtl8852be/include/osdep_service_linux.h: In function 'rtw_thread_exit':
/home/evine/scripts/rtl8852be/include/osdep_service_linux.h:491:9: error: implicit declaration of function 'complete_and_exit' [-Werror=implicit-function-declaration]
  491 |         complete_and_exit(comp, 0);
      |         ^~~~~~~~~~~~~~~~~
/home/evine/scripts/rtl8852be/include/osdep_service_linux.h:491:9: error: implicit declaration of function 'complete_and_exit' [-Werror=implicit-function-declaration]
  491 |         complete_and_exit(comp, 0);
      |         ^~~~~~~~~~~~~~~~~
In file included from /home/evine/scripts/rtl8852be/include/osdep_service.h:42,
                 from /home/evine/scripts/rtl8852be/include/drv_types.h:25,
                 from /home/evine/scripts/rtl8852be/os_dep/linux/rtw_cfg.c:17:
/home/evine/scripts/rtl8852be/include/osdep_service_linux.h: In function 'rtw_thread_exit':
/home/evine/scripts/rtl8852be/include/osdep_service_linux.h:491:9: error: implicit declaration of function 'complete_and_exit' [-Werror=implicit-function-declaration]
  491 |         complete_and_exit(comp, 0);
      |         ^~~~~~~~~~~~~~~~~
/home/evine/scripts/rtl8852be/os_dep/linux/os_intfs.c: In function 'rtw_net_set_mac_address':
/home/evine/scripts/rtl8852be/os_dep/linux/os_intfs.c:79:28: warning: passing argument 1 of '_rtw_memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   79 |         _rtw_memcpy(pnetdev->dev_addr, sa->sa_data, ETH_ALEN); /* set mac addr to net_device */
      |                     ~~~~~~~^~~~~~~~~~
In file included from /home/evine/scripts/rtl8852be/include/drv_types.h:25,
                 from /home/evine/scripts/rtl8852be/os_dep/linux/os_intfs.c:17:
/home/evine/scripts/rtl8852be/include/osdep_service.h:281:24: note: expected 'void *' but argument is of type 'const unsigned char *'
  281 | void _rtw_memcpy(void *dec, const void *sour, u32 sz);
      |                  ~~~~~~^~~
/home/evine/scripts/rtl8852be/os_dep/osdep_service_linux.c: In function 'rtw_change_ifname':
/home/evine/scripts/rtl8852be/os_dep/osdep_service_linux.c:810:28: warning: passing argument 1 of '_rtw_memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  810 |         _rtw_memcpy(pnetdev->dev_addr, adapter_mac_addr(padapter), ETH_ALEN);
      |                     ~~~~~~~^~~~~~~~~~
/home/evine/scripts/rtl8852be/os_dep/osdep_service_linux.c:48:24: note: expected 'void *' but argument is of type 'const unsigned char *'
   48 | void _rtw_memcpy(void *dst, const void *src, u32 sz)
      |                  ~~~~~~^~~
/home/evine/scripts/rtl8852be/os_dep/linux/os_intfs.c: In function 'rtw_os_ndev_register':
/home/evine/scripts/rtl8852be/os_dep/linux/os_intfs.c:623:25: warning: passing argument 1 of '_rtw_memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  623 |         _rtw_memcpy(ndev->dev_addr, adapter_mac_addr(adapter), ETH_ALEN);
      |                     ~~~~^~~~~~~~~~
In file included from /home/evine/scripts/rtl8852be/include/drv_types.h:25,
                 from /home/evine/scripts/rtl8852be/os_dep/linux/os_intfs.c:17:
/home/evine/scripts/rtl8852be/include/osdep_service.h:281:24: note: expected 'void *' but argument is of type 'const unsigned char *'
  281 | void _rtw_memcpy(void *dec, const void *sour, u32 sz);
      |                  ~~~~~~^~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:288: /home/evine/scripts/rtl8852be/platform/platform_linux_pc_pci.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:288: /home/evine/scripts/rtl8852be/os_dep/linux/mlme_linux.o] Error 1
make[2]: *** [scripts/Makefile.build:288: /home/evine/scripts/rtl8852be/os_dep/linux/xmit_linux.o] Error 1
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:288: /home/evine/scripts/rtl8852be/os_dep/osdep_service_linux.o] Error 1
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:288: /home/evine/scripts/rtl8852be/os_dep/linux/rtw_cfg.o] Error 1
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:288: /home/evine/scripts/rtl8852be/os_dep/osdep_service.o] Error 1
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:288: /home/evine/scripts/rtl8852be/os_dep/linux/os_intfs.o] Error 1
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:288: /home/evine/scripts/rtl8852be/os_dep/linux/ioctl_linux.o] Error 1
make[1]: *** [Makefile:1831: /home/evine/scripts/rtl8852be] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.17.3-arch1-1/build'
make: *** [Makefile:637: modules] Error 2
@devome
Copy link
Author

devome commented Apr 15, 2022

According to the following two help, I finally successfully compiled the firmware of RTL8852BE.
lwfinger/rtl8188eu#401
aircrack-ng/rtl8188eus#150

Maybe this is only suitable for my situation, so I won't pr. The modification is as follows:

diff --git a/core/rtw_br_ext.c b/core/rtw_br_ext.c
index 26e17f6..22826e0 100644
--- a/core/rtw_br_ext.c
+++ b/core/rtw_br_ext.c
@@ -17,7 +17,10 @@
 #ifdef __KERNEL__
 	#include <linux/if_arp.h>
 	#include <net/ip.h>
+	#include <linux/version.h>
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)
 	#include <net/ipx.h>
+#endif
 	#include <linux/atalk.h>
 	#include <linux/udp.h>
 	#include <linux/if_pppox.h>
@@ -169,6 +172,7 @@ static __inline__ void __nat25_generate_ipv4_network_addr(unsigned char *network
 }
 
 
+#ifdef _NET_INET_IPX_H_
 static __inline__ void __nat25_generate_ipx_network_addr_with_node(unsigned char *networkAddr,
 		unsigned int *ipxNetAddr, unsigned char *ipxNodeAddr)
 {
@@ -200,6 +204,7 @@ static __inline__ void __nat25_generate_apple_network_addr(unsigned char *networ
 	_rtw_memcpy(networkAddr + 1, (unsigned char *)network, 2);
 	networkAddr[3] = *node;
 }
+#endif
 
 
 static __inline__ void __nat25_generate_pppoe_network_addr(unsigned char *networkAddr,
@@ -330,6 +335,7 @@ static __inline__ int __nat25_network_hash(unsigned char *networkAddr)
 		x = networkAddr[7] ^ networkAddr[8] ^ networkAddr[9] ^ networkAddr[10];
 
 		return x & (NAT25_HASH_SIZE - 1);
+#ifdef _NET_INET_IPX_H_
 	} else if (networkAddr[0] == NAT25_IPX) {
 		unsigned long x;
 
@@ -343,6 +349,7 @@ static __inline__ int __nat25_network_hash(unsigned char *networkAddr)
 		x = networkAddr[1] ^ networkAddr[2] ^ networkAddr[3];
 
 		return x & (NAT25_HASH_SIZE - 1);
+#endif
 	} else if (networkAddr[0] == NAT25_PPPOE) {
 		unsigned long x;
 
@@ -886,6 +893,7 @@ int nat25_db_handle(_adapter *priv, struct sk_buff *skb, int method)
 		}
 	}
 
+#ifdef _NET_INET_IPX_H_
 	/*---------------------------------------------------*/
 	/*         Handle IPX and Apple Talk frame          */
 	/*---------------------------------------------------*/
@@ -1106,6 +1114,7 @@ int nat25_db_handle(_adapter *priv, struct sk_buff *skb, int method)
 
 		return -1;
 	}
+#endif
 
 	/*---------------------------------------------------*/
 	/*                Handle PPPoE frame                */
diff --git a/include/osdep_service_linux.h b/include/osdep_service_linux.h
index da472c3..73479f1 100644
--- a/include/osdep_service_linux.h
+++ b/include/osdep_service_linux.h
@@ -488,7 +488,7 @@ static inline void rtw_thread_enter(char *name)
 
 static inline void rtw_thread_exit(_completion *comp)
 {
-	complete_and_exit(comp, 0);
+	kthread_complete_and_exit(comp, 0);
 }
 
 static inline _thread_hdl_ rtw_thread_start(int (*threadfn)(void *data),
diff --git a/os_dep/linux/rtw_proc.c b/os_dep/linux/rtw_proc.c
index 43a110e..af5b4d6 100644
--- a/os_dep/linux/rtw_proc.c
+++ b/os_dep/linux/rtw_proc.c
@@ -35,7 +35,7 @@ inline struct proc_dir_entry *get_rtw_drv_proc(void)
 #endif
 
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0))
-#define PDE_DATA(inode) PDE((inode))->data
+#define pde_data(inode) PDE((inode))->data
 #define proc_get_parent_data(inode) PDE((inode))->parent->data
 #endif
 
@@ -290,7 +290,7 @@ const int drv_proc_hdls_num = sizeof(drv_proc_hdls) / sizeof(struct rtw_proc_hdl
 static int rtw_drv_proc_open(struct inode *inode, struct file *file)
 {
 	/* struct net_device *dev = proc_get_parent_data(inode); */
-	ssize_t index = (ssize_t)PDE_DATA(inode);
+	ssize_t index = (ssize_t)pde_data(inode);
 	const struct rtw_proc_hdl *hdl = drv_proc_hdls + index;
 	void *private = NULL;
 
@@ -319,7 +319,7 @@ static int rtw_drv_proc_open(struct inode *inode, struct file *file)
 
 static ssize_t rtw_drv_proc_write(struct file *file, const char __user *buffer, size_t count, loff_t *pos)
 {
-	ssize_t index = (ssize_t)PDE_DATA(file_inode(file));
+	ssize_t index = (ssize_t)pde_data(file_inode(file));
 	const struct rtw_proc_hdl *hdl = drv_proc_hdls + index;
 	ssize_t (*write)(struct file *, const char __user *, size_t, loff_t *, void *) = hdl->write;
 
@@ -5330,7 +5330,7 @@ const int adapter_proc_hdls_num = sizeof(adapter_proc_hdls) / sizeof(struct rtw_
 
 static int rtw_adapter_proc_open(struct inode *inode, struct file *file)
 {
-	ssize_t index = (ssize_t)PDE_DATA(inode);
+	ssize_t index = (ssize_t)pde_data(inode);
 	const struct rtw_proc_hdl *hdl = adapter_proc_hdls + index;
 	void *private = proc_get_parent_data(inode);
 
@@ -5360,7 +5360,7 @@ static int rtw_adapter_proc_open(struct inode *inode, struct file *file)
 
 static ssize_t rtw_adapter_proc_write(struct file *file, const char __user *buffer, size_t count, loff_t *pos)
 {
-	ssize_t index = (ssize_t)PDE_DATA(file_inode(file));
+	ssize_t index = (ssize_t)pde_data(file_inode(file));
 	const struct rtw_proc_hdl *hdl = adapter_proc_hdls + index;
 	ssize_t (*write)(struct file *, const char __user *, size_t, loff_t *, void *) = hdl->write;
 
@@ -5592,7 +5592,7 @@ const int odm_proc_hdls_num = sizeof(odm_proc_hdls) / sizeof(struct rtw_proc_hdl
 
 static int rtw_odm_proc_open(struct inode *inode, struct file *file)
 {
-	ssize_t index = (ssize_t)PDE_DATA(inode);
+	ssize_t index = (ssize_t)pde_data(inode);
 	const struct rtw_proc_hdl *hdl = odm_proc_hdls + index;
 	void *private = proc_get_parent_data(inode);
 
@@ -5622,7 +5622,7 @@ static int rtw_odm_proc_open(struct inode *inode, struct file *file)
 
 static ssize_t rtw_odm_proc_write(struct file *file, const char __user *buffer, size_t count, loff_t *pos)
 {
-	ssize_t index = (ssize_t)PDE_DATA(file_inode(file));
+	ssize_t index = (ssize_t)pde_data(file_inode(file));
 	const struct rtw_proc_hdl *hdl = odm_proc_hdls + index;
 	ssize_t (*write)(struct file *, const char __user *, size_t, loff_t *, void *) = hdl->write;

@HRex39
Copy link
Owner

HRex39 commented Apr 15, 2022

To be honest, bro, I didn't try to compile it in the kernel > 5.15. It seems that there are several situations similar to your problem in the issue of other libraries. Thank you for your feedback.

@devome
Copy link
Author

devome commented Apr 15, 2022

To be honest, bro, I didn't try to compile it in the kernel > 5.15. It seems that there are several situations similar to your problem in the issue of other libraries. Thank you for your feedback.

啊?中国人啊?搞半天,敲英语好累的。

@HRex39
Copy link
Owner

HRex39 commented Apr 15, 2022

To be honest, bro, I didn't try to compile it in the kernel > 5.15. It seems that there are several situations similar to your problem in the issue of other libraries. Thank you for your feedback.

啊?中国人啊?搞半天,敲英语好累的。

好像有问题的不止您一个,似乎在内核大于5.15的都有这个问题,如果大家都有这个问题的话您可以考虑加一个分支或者pr😄

@devome
Copy link
Author

devome commented Apr 15, 2022

好像有问题的不止您一个,似乎在内核大于5.15的都有这个问题,如果大家都有这个问题的话您可以考虑加一个分支或者prsmile

其实我也只是测试我所用的内核而已,不敢说对其他版本的内核就一定有用啊。

@HRex39
Copy link
Owner

HRex39 commented Apr 15, 2022

好像有问题的不止您一个,似乎在内核大于5.15的都有这个问题,如果大家都有这个问题的话您可以考虑加一个分支或者prsmile

其实我也只是测试我所用的内核而已,不敢说对其他版本的内核就一定有用啊。

如果方便的话,也想请问一下您的笔记本型号。似乎rtl8852be的笔记本都是近期发售的搭载12代CPU的本子,Intel的AX201网卡好像产能不足,故都采用Realtek的网卡代替了。
我的笔记本型号是Thinkbook16+ 2022

@devome
Copy link
Author

devome commented Apr 15, 2022

我是红米 RedmiBook Pro 14 2021锐龙款,CPU是AMD R5-5500U。

@HRex39 HRex39 closed this as completed Apr 15, 2022
@lexiaoyao12138
Copy link

我是红米RedmiBook Pro 14 2021锐龙款,CPU是AMD R5-5500U。

您好,我与你的情况类似,系统和内核一样,但是打完您的补丁仍然无法解决问题,redmibookpro15锐龙5800H

@devome
Copy link
Author

devome commented Apr 15, 2022

我是红米RedmiBook Pro 14 2021锐龙款,CPU是AMD R5-5500U。

您好,我与你的情况类似,系统和内核一样,但是打完您的补丁仍然无法解决问题,redmibookpro15锐龙5800H

所以我说我也不敢保证适用于所有情况啊。你可以google下你的问题。

@HRex39
Copy link
Owner

HRex39 commented Apr 15, 2022

我是红米RedmiBook Pro 14 2021锐龙款,CPU是AMD R5-5500U。

您好,我与你的情况类似,系统和内核一样,但是打完您的补丁仍然无法解决问题,redmibookpro15锐龙5800H

您可以把具体的问题提供一下,这么说似乎无法定位任何问题。
You can provide specific questions, because it seems that you can't locate any problems.

@lexiaoyao12138
Copy link

我是红米RedmiBook Pro 14 2021锐龙款,CPU是AMD R5-5500U。

您好,我与你的情况类似,系统和内核一样,但是打完您的补丁仍然无法解决问题,redmibookpro15锐龙5800H

您可以把具体的问题提供一下,这么说似乎无法定位任何问题。 You can provide specific questions, because it seems that you can't locate any problems.

问题已经解决,没装 bc

@HRex39
Copy link
Owner

HRex39 commented Apr 15, 2022

我是红米RedmiBook Pro 14 2021锐龙款,CPU是AMD R5-5500U。

您好,我与你的情况类似,系统和内核一样,但是打完您的补丁仍然无法解决问题,redmibookpro15锐龙5800H

您可以把具体的问题提供一下,这么说似乎无法定位任何问题。 You can provide specific questions, because it seems that you can't locate any problems.

问题已经解决,没装 bc

感谢您的反馈!一个类似的解决方案

@HRex39
Copy link
Owner

HRex39 commented Apr 15, 2022

@devome

您确定只更改了pde_data而没有更改_rtw_memcpy么?因为看到您的报错信息里面有相关的信息。
在您的更改信息里面,关于pde_data()

#define  标识符  常量   
#define pde_data(inode) PDE((inode))->data

您的改动和原来的代码区别在哪里呢?pde_data(inode) 指代的不还是 PDE((inode))->data么?
期待您的解答,也许可以进行一个新的pr或测试。

同时,您可否留下一个联系方式以便进行进一步探讨?

@HRex39 HRex39 reopened this Apr 15, 2022
@devome
Copy link
Author

devome commented Apr 15, 2022

@devome

您确定只更改了pde_data而没有更改_rtw_memcpy么?因为看到您的报错信息里面有相关的信息。
在您的更改信息里面,关于pde_data()

#define  标识符  常量   
#define pde_data(inode) PDE((inode))->data

您的改动和原来的代码区别在哪里呢?pde_data(inode) 指代的不还是 PDE((inode))->data么?
期待您的解答,也许可以进行一个新的pr或测试。

同时,您可否留下一个联系方式以便进行进一步探讨?

参考2楼的两个链接

@fogobogo
Copy link

fogobogo commented Apr 29, 2022

just want to note that compilation as is within the repo indeed fails for me too, however the patch from devome #1 (comment) indeed did the trick.

can't say the driver is in stellar shape (it doesn't seem to like lspci) but wifi finally shows up and works with affomentioned patch.

edit: same kernel version (5.17) and platform (x86_64). requires bc to be installed for the gcc version detection. (theres an #ifdef)

@HRex39
Copy link
Owner

HRex39 commented Apr 29, 2022

just want to note that compilation as is within the repo indeed fails for me too, however the patch from devome #1 (comment) indeed did the trick.

can't say the driver is in stellar shape (it doesn't seem to like lspci) but wifi finally shows up and works with affomentioned patch.

edit: same kernel version (5.17) and platform (x86_64). requires bc to be installed for the gcc version detection. (theres an #ifdef)

Hello, I'd like to ask if you have changed _ rtw_ memcpy function, or just added #ifdef instead? #1 (comment)
I created a new batch for 5.17 kernel, I wonder if you can compile it successfully?

@fogobogo
Copy link

fogobogo commented Apr 29, 2022

I literally took the patch from devome and did nothing else. There are a bunch of #ifdefs if you mean that.

otherwise, compiling the dev-linux5.17 branch does indeed work with a fair amount of compiler warnings
dmesg reports a potential issue

[  297.342288] rtl8852be 0000:03:00.0 wlan0: Expected addr: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[  297.342290] ------------[ cut here ]------------
[  297.342291] netdevice: wlan0: Incorrect netdev->dev_addr
[  297.342300] WARNING: CPU: 0 PID: 708 at net/core/dev_addr_lists.c:517 dev_addr_check.cold+0x43/0x7d
[  297.342309] Modules linked in: snd_seq_dummy snd_hrtimer snd_seq snd_seq_device intel_rapl_msr intel_rapl_common joydev mousedev edac_mce_amd snd_sof_amd_renoir snd_ctl_led snd_acp_config btusb kvm_amd snd_sof_amd_acp btrtl snd_sof_pci snd_hda_codec_realtek btbcm kvm snd_sof snd_hda_codec_generic btintel snd_hda_codec_hdmi btmtk snd_soc_acpi snd_hda_intel bluetooth irqbypass snd_soc_core vfat think_lmi snd_intel_dspcfg crct10dif_pclmul snd_intel_sdw_acpi ecdh_generic wmi_bmof firmware_attributes_class fat snd_compress crc32_pclmul snd_hda_codec ghash_clmulni_intel amdgpu ac97_bus aesni_intel snd_hda_core snd_pcm_dmaengine crypto_simd snd_pci_acp6x tpm_crb cryptd r8169 snd_hwdep rapl psmouse snd_pci_acp5x snd_pcm thinkpad_acpi realtek gpu_sched tpm_tis pcspkr ucsi_acpi mdio_devres sp5100_tco ledtrig_audio snd_rn_pci_acp3x drm_ttm_helper snd_timer tpm_tis_core typec_ucsi platform_profile ccp i2c_piix4 k10temp libphy snd_pci_acp3x ttm tpm typec snd roles rng_core wmi soundcore video
[  297.342366]  i2c_scmi mac_hid pinctrl_amd 8852be(OE) cfg80211 rfkill pkcs8_key_parser crypto_user amd_pstate fuse acpi_call(OE) bpf_preload ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 serio_raw atkbd libps2 xhci_pci nvme i8042 crc32c_intel nvme_core xhci_pci_renesas serio
[  297.342387] CPU: 0 PID: 708 Comm: wpa_supplicant Tainted: G           OE     5.17.4-arch1-1 #1 bba05afeab01638bf5119bbe9f3f1f1452c88ff1
[  297.342390] Hardware name: LENOVO 21EES00100/21EES00100, BIOS R20ET26W (1.06 ) 02/18/2022
[  297.342391] RIP: 0010:dev_addr_check.cold+0x43/0x7d
[  297.342394] Code: 01 e8 03 0c fb ff 0f 0b 49 c7 c4 8b f2 8c ad 80 3b 00 75 30 48 c7 c6 96 f2 8c ad 4c 89 e2 48 c7 c7 00 dd 95 ad e8 df 0b fb ff <0f> 0b e9 ee 08 dc ff 49 c7 c4 8b f2 8c ad eb d5 4c 8b 24 d5 80 c4
[  297.342395] RSP: 0018:ffffb84ac0eefaf0 EFLAGS: 00010286
[  297.342398] RAX: 0000000000000000 RBX: ffff973701072000 RCX: 0000000000000027
[  297.342399] RDX: ffff9739dee216e8 RSI: 0000000000000001 RDI: ffff9739dee216e0
[  297.342400] RBP: ffffffffc0642bc0 R08: 0000000000000000 R09: ffffb84ac0eef920
[  297.342401] R10: ffffb84ac0eef918 R11: ffffffffae0cab48 R12: ffffffffad8931a1
[  297.342401] R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000
[  297.342402] FS:  00007ff43b2e37c0(0000) GS:ffff9739dee00000(0000) knlGS:0000000000000000
[  297.342404] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  297.342405] CR2: 000055e2c87a7648 CR3: 000000010d808000 CR4: 0000000000750ef0
[  297.342406] PKRU: 55555554
[  297.342407] Call Trace:
[  297.342408]  <TASK>
[  297.342410]  __dev_open+0x50/0x1c0
[  297.342415]  __dev_change_flags+0x1d7/0x240
[  297.342417]  dev_change_flags+0x21/0x60
[  297.342419]  devinet_ioctl+0x608/0x820
[  297.342422]  ? move_addr_to_user+0x4b/0xe0
[  297.342426]  ? _copy_from_user+0x28/0x60
[  297.342431]  inet_ioctl+0x1b1/0x1e0
[  297.342434]  sock_do_ioctl+0x82/0x130
[  297.342436]  sock_ioctl+0x12a/0x340
[  297.342438]  ? netdev_name_node_lookup_rcu+0x67/0x80
[  297.342442]  __x64_sys_ioctl+0x82/0xb0
[  297.342447]  do_syscall_64+0x5c/0x80
[  297.342450]  ? sock_ioctl+0x12a/0x340
[  297.342451]  ? do_syscall_64+0x69/0x80
[  297.342453]  ? __x64_sys_ioctl+0x82/0xb0
[  297.342455]  ? syscall_exit_to_user_mode+0x23/0x40
[  297.342458]  ? do_syscall_64+0x69/0x80
[  297.342459]  ? syscall_exit_to_user_mode+0x23/0x40
[  297.342460]  ? do_syscall_64+0x69/0x80
[  297.342461]  ? do_syscall_64+0x69/0x80
[  297.342462]  entry_SYSCALL_64_after_hwframe+0x44/0xae
[  297.342465] RIP: 0033:0x7ff43b760e6f
[  297.342468] Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <41> 89 c0 3d 00 f0 ff ff 77 1f 48 8b 44 24 18 64 48 2b 04 25 28 00
[  297.342469] RSP: 002b:00007ffc142010e0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[  297.342470] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007ff43b760e6f
[  297.342471] RDX: 00007ffc14201140 RSI: 0000000000008914 RDI: 0000000000000006
[  297.342472] RBP: 0000000000000006 R08: 0000000000000000 R09: 0000000000000000
[  297.342473] R10: 00007ff43b853aa0 R11: 0000000000000246 R12: 000055e2c87a4750
[  297.342473] R13: 0000000000000000 R14: 00007ffc14201140 R15: 000055e2c87a4170
[  297.342476]  </TASK>
[  297.342477] ---[ end trace 0000000000000000 ]---
[  297.343236] PHL: PHY_REG.txt:: Error reading file.
[  297.343759] PHL: RadioA.txt:: Error reading file.
[  297.344251] PHL: RadioB.txt:: Error reading file.
[  297.344258] PHL: hal_cfg_fw_8852b : fw_en 1.
[  297.347077] PHL: [MAC] Clear all bd index done.
[  297.347342] PHL: [MAC] Clear all bd index done.
[  297.414216] PHL: hal_mac_print_fw_version: FW version V0.5.23.0, Ready
[  297.533174] PHL: ERROR rtw_phl_btc_send_cmd: Unknown msg !
[  297.533291] PHL: [HALPS], rtw_hal_ps_pwr_req(): fail (pwr_req 0).
[  297.533293] PHL: ERROR [BTC], hal_btc_notify_ps_tdma, TDMA (0) request pwr fail, status: 1 
[  297.551555] PHL: [HALPS], rtw_hal_ps_pwr_req(): fail (pwr_req 0).
[  297.551557] PHL: ERROR [BTC], hal_btc_notify_ps_tdma, TDMA (0) request pwr fail, status: 1 
[  297.555697] PHL: [HALPS], rtw_hal_ps_pwr_req(): fail (pwr_req 0).
[  297.555698] PHL: ERROR [BTC], hal_btc_notify_ps_tdma, TDMA (0) request pwr fail, status: 1 
[  297.555737] PHL: [HALPS], rtw_hal_ps_pwr_req(): fail (pwr_req 0).
[  297.555737] PHL: ERROR [BTC], hal_btc_notify_ps_tdma, TDMA (0) request pwr fail, status: 1 
[  297.559692] PHL: [HALPS], rtw_hal_ps_pwr_req(): fail (pwr_req 0).
[  297.559693] PHL: ERROR [BTC], hal_btc_notify_ps_tdma, TDMA (0) request pwr fail, status: 1 
[  297.602431] PHL: rtw_hal_mac_fw_log_cfg: level 4, output 0x00000000, comp 0x00000000, comp ext 0x00000000.
[  297.602439] PHL: rtw_hal_mac_fw_log_cfg: level 4, output 0x00000002, comp 0x00000000, comp ext 0x00000000.
[  297.602445] PHL: rtw_hal_mac_fw_log_cfg: level 4, output 0x00000002, comp 0x00000004, comp ext 0x00000000.
[  297.603427] PHL: ERROR rtw_phl_get_stainfo_self sta == NULL
[  297.618031] RTW: [PHL STA]- role-idx: 0
[  297.618036] RTW: [PHL STA]- mac_addr:e0:0a:f6:7f:62:8d
[  297.618039] RTW: [PHL STA]- aid: 0
[  297.618040] RTW: [PHL STA]- macid: 0
[  297.618041] RTW: [PHL STA]- wifi_band: 1
[  297.618042] RTW: [PHL STA]- bw: 0
[  297.618042] RTW: [PHL STA]- chan: 36
[  297.618043] RTW: [PHL STA]- offset: 0
[  301.795689] RTW: rtw_set_802_11_connect(wlan0)  fw_state=0x00000008
[  301.795777] RTW: [PHL STA]- role-idx: 0
[  301.795781] RTW: [PHL STA]- mac_addr:ac:6f:bb:94:fd:e7
[  301.795784] RTW: [PHL STA]- aid: 0
[  301.795785] RTW: [PHL STA]- macid: 0
[  301.795786] RTW: [PHL STA]- wifi_band: 1
[  301.795787] RTW: [PHL STA]- bw: 0
[  301.795787] RTW: [PHL STA]- chan: 36
[  301.795789] RTW: [PHL STA]- offset: 0
[  301.886887] RTW: start auth
[  301.890739] RTW: auth success, start assoc
[  301.895143] RTW: assoc success
[  301.895402] PHL: macid 0, probersp 255, pspoll 255, nulldata 255, qosnull 255, cts2self 255.
[  301.895418] RTW: [PHL STA]- role-idx: 0
[  301.895422] RTW: [PHL STA]- mac_addr:ac:6f:bb:94:fd:e7
[  301.895424] RTW: [PHL STA]- aid: 89
[  301.895425] RTW: [PHL STA]- macid: 0
[  301.895426] RTW: [PHL STA]- wifi_band: 1
[  301.895426] RTW: [PHL STA]- bw: 2
[  301.895427] RTW: [PHL STA]- chan: 36
[  301.895428] RTW: [PHL STA]- offset: 1
[  301.964580] RTW: recv eapol packet 1/4
[  301.964906] RTW: send eapol packet 2/4
[  302.001558] RTW: recv eapol packet 3/4
[  302.001827] RTW: send eapol packet 4/4
[  302.002010] PHL: ERROR rtw_hal_mac_delete_key : mac status 58.
[  302.002095] RTW: setkey_hdl: set group key for ac:6f:bb:94:fd:e7, kid:2 type:1 algo:AES
[  302.002165] PHL: ERROR rtw_hal_mac_delete_key : mac status 58.
[  302.002168] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  308.627760] 8021q: 802.1Q VLAN Support v1.8

However, hardware seems to work just fine. I didn't do a lot of testing with it as I'm just glad it works as all but so far haven't encountered any issues.

I'm not sure how similar the chipset is but the rtw89 module should cover the Realtek 8852AE, might be worth having a look there and maybe even get it upstream.

edit: format

@fogobogo
Copy link

I'll attach my build log here just in case.
compiler gcc (GCC) 11.2.0
kernel Linux 5.17.4-arch1-1 #1 SMP PREEMPT Wed, 20 Apr 2022 18:29:28 +0000 x86_64 GNU/Linux

build.log

@HRex39
Copy link
Owner

HRex39 commented Apr 29, 2022

I literally took the patch from devome and did nothing else. There are a bunch of #ifdefs if you mean that.

otherwise, compiling the dev-linux5.17 branch does indeed work with a fair amount of compiler warnings dmesg reports a potential issue

[  297.342288] rtl8852be 0000:03:00.0 wlan0: Expected addr: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[  297.342290] ------------[ cut here ]------------
[  297.342291] netdevice: wlan0: Incorrect netdev->dev_addr
[  297.342300] WARNING: CPU: 0 PID: 708 at net/core/dev_addr_lists.c:517 dev_addr_check.cold+0x43/0x7d
[  297.342309] Modules linked in: snd_seq_dummy snd_hrtimer snd_seq snd_seq_device intel_rapl_msr intel_rapl_common joydev mousedev edac_mce_amd snd_sof_amd_renoir snd_ctl_led snd_acp_config btusb kvm_amd snd_sof_amd_acp btrtl snd_sof_pci snd_hda_codec_realtek btbcm kvm snd_sof snd_hda_codec_generic btintel snd_hda_codec_hdmi btmtk snd_soc_acpi snd_hda_intel bluetooth irqbypass snd_soc_core vfat think_lmi snd_intel_dspcfg crct10dif_pclmul snd_intel_sdw_acpi ecdh_generic wmi_bmof firmware_attributes_class fat snd_compress crc32_pclmul snd_hda_codec ghash_clmulni_intel amdgpu ac97_bus aesni_intel snd_hda_core snd_pcm_dmaengine crypto_simd snd_pci_acp6x tpm_crb cryptd r8169 snd_hwdep rapl psmouse snd_pci_acp5x snd_pcm thinkpad_acpi realtek gpu_sched tpm_tis pcspkr ucsi_acpi mdio_devres sp5100_tco ledtrig_audio snd_rn_pci_acp3x drm_ttm_helper snd_timer tpm_tis_core typec_ucsi platform_profile ccp i2c_piix4 k10temp libphy snd_pci_acp3x ttm tpm typec snd roles rng_core wmi soundcore video
[  297.342366]  i2c_scmi mac_hid pinctrl_amd 8852be(OE) cfg80211 rfkill pkcs8_key_parser crypto_user amd_pstate fuse acpi_call(OE) bpf_preload ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 serio_raw atkbd libps2 xhci_pci nvme i8042 crc32c_intel nvme_core xhci_pci_renesas serio
[  297.342387] CPU: 0 PID: 708 Comm: wpa_supplicant Tainted: G           OE     5.17.4-arch1-1 #1 bba05afeab01638bf5119bbe9f3f1f1452c88ff1
[  297.342390] Hardware name: LENOVO 21EES00100/21EES00100, BIOS R20ET26W (1.06 ) 02/18/2022
[  297.342391] RIP: 0010:dev_addr_check.cold+0x43/0x7d
[  297.342394] Code: 01 e8 03 0c fb ff 0f 0b 49 c7 c4 8b f2 8c ad 80 3b 00 75 30 48 c7 c6 96 f2 8c ad 4c 89 e2 48 c7 c7 00 dd 95 ad e8 df 0b fb ff <0f> 0b e9 ee 08 dc ff 49 c7 c4 8b f2 8c ad eb d5 4c 8b 24 d5 80 c4
[  297.342395] RSP: 0018:ffffb84ac0eefaf0 EFLAGS: 00010286
[  297.342398] RAX: 0000000000000000 RBX: ffff973701072000 RCX: 0000000000000027
[  297.342399] RDX: ffff9739dee216e8 RSI: 0000000000000001 RDI: ffff9739dee216e0
[  297.342400] RBP: ffffffffc0642bc0 R08: 0000000000000000 R09: ffffb84ac0eef920
[  297.342401] R10: ffffb84ac0eef918 R11: ffffffffae0cab48 R12: ffffffffad8931a1
[  297.342401] R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000
[  297.342402] FS:  00007ff43b2e37c0(0000) GS:ffff9739dee00000(0000) knlGS:0000000000000000
[  297.342404] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  297.342405] CR2: 000055e2c87a7648 CR3: 000000010d808000 CR4: 0000000000750ef0
[  297.342406] PKRU: 55555554
[  297.342407] Call Trace:
[  297.342408]  <TASK>
[  297.342410]  __dev_open+0x50/0x1c0
[  297.342415]  __dev_change_flags+0x1d7/0x240
[  297.342417]  dev_change_flags+0x21/0x60
[  297.342419]  devinet_ioctl+0x608/0x820
[  297.342422]  ? move_addr_to_user+0x4b/0xe0
[  297.342426]  ? _copy_from_user+0x28/0x60
[  297.342431]  inet_ioctl+0x1b1/0x1e0
[  297.342434]  sock_do_ioctl+0x82/0x130
[  297.342436]  sock_ioctl+0x12a/0x340
[  297.342438]  ? netdev_name_node_lookup_rcu+0x67/0x80
[  297.342442]  __x64_sys_ioctl+0x82/0xb0
[  297.342447]  do_syscall_64+0x5c/0x80
[  297.342450]  ? sock_ioctl+0x12a/0x340
[  297.342451]  ? do_syscall_64+0x69/0x80
[  297.342453]  ? __x64_sys_ioctl+0x82/0xb0
[  297.342455]  ? syscall_exit_to_user_mode+0x23/0x40
[  297.342458]  ? do_syscall_64+0x69/0x80
[  297.342459]  ? syscall_exit_to_user_mode+0x23/0x40
[  297.342460]  ? do_syscall_64+0x69/0x80
[  297.342461]  ? do_syscall_64+0x69/0x80
[  297.342462]  entry_SYSCALL_64_after_hwframe+0x44/0xae
[  297.342465] RIP: 0033:0x7ff43b760e6f
[  297.342468] Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <41> 89 c0 3d 00 f0 ff ff 77 1f 48 8b 44 24 18 64 48 2b 04 25 28 00
[  297.342469] RSP: 002b:00007ffc142010e0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[  297.342470] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007ff43b760e6f
[  297.342471] RDX: 00007ffc14201140 RSI: 0000000000008914 RDI: 0000000000000006
[  297.342472] RBP: 0000000000000006 R08: 0000000000000000 R09: 0000000000000000
[  297.342473] R10: 00007ff43b853aa0 R11: 0000000000000246 R12: 000055e2c87a4750
[  297.342473] R13: 0000000000000000 R14: 00007ffc14201140 R15: 000055e2c87a4170
[  297.342476]  </TASK>
[  297.342477] ---[ end trace 0000000000000000 ]---
[  297.343236] PHL: PHY_REG.txt:: Error reading file.
[  297.343759] PHL: RadioA.txt:: Error reading file.
[  297.344251] PHL: RadioB.txt:: Error reading file.
[  297.344258] PHL: hal_cfg_fw_8852b : fw_en 1.
[  297.347077] PHL: [MAC] Clear all bd index done.
[  297.347342] PHL: [MAC] Clear all bd index done.
[  297.414216] PHL: hal_mac_print_fw_version: FW version V0.5.23.0, Ready
[  297.533174] PHL: ERROR rtw_phl_btc_send_cmd: Unknown msg !
[  297.533291] PHL: [HALPS], rtw_hal_ps_pwr_req(): fail (pwr_req 0).
[  297.533293] PHL: ERROR [BTC], hal_btc_notify_ps_tdma, TDMA (0) request pwr fail, status: 1 
[  297.551555] PHL: [HALPS], rtw_hal_ps_pwr_req(): fail (pwr_req 0).
[  297.551557] PHL: ERROR [BTC], hal_btc_notify_ps_tdma, TDMA (0) request pwr fail, status: 1 
[  297.555697] PHL: [HALPS], rtw_hal_ps_pwr_req(): fail (pwr_req 0).
[  297.555698] PHL: ERROR [BTC], hal_btc_notify_ps_tdma, TDMA (0) request pwr fail, status: 1 
[  297.555737] PHL: [HALPS], rtw_hal_ps_pwr_req(): fail (pwr_req 0).
[  297.555737] PHL: ERROR [BTC], hal_btc_notify_ps_tdma, TDMA (0) request pwr fail, status: 1 
[  297.559692] PHL: [HALPS], rtw_hal_ps_pwr_req(): fail (pwr_req 0).
[  297.559693] PHL: ERROR [BTC], hal_btc_notify_ps_tdma, TDMA (0) request pwr fail, status: 1 
[  297.602431] PHL: rtw_hal_mac_fw_log_cfg: level 4, output 0x00000000, comp 0x00000000, comp ext 0x00000000.
[  297.602439] PHL: rtw_hal_mac_fw_log_cfg: level 4, output 0x00000002, comp 0x00000000, comp ext 0x00000000.
[  297.602445] PHL: rtw_hal_mac_fw_log_cfg: level 4, output 0x00000002, comp 0x00000004, comp ext 0x00000000.
[  297.603427] PHL: ERROR rtw_phl_get_stainfo_self sta == NULL
[  297.618031] RTW: [PHL STA]- role-idx: 0
[  297.618036] RTW: [PHL STA]- mac_addr:e0:0a:f6:7f:62:8d
[  297.618039] RTW: [PHL STA]- aid: 0
[  297.618040] RTW: [PHL STA]- macid: 0
[  297.618041] RTW: [PHL STA]- wifi_band: 1
[  297.618042] RTW: [PHL STA]- bw: 0
[  297.618042] RTW: [PHL STA]- chan: 36
[  297.618043] RTW: [PHL STA]- offset: 0
[  301.795689] RTW: rtw_set_802_11_connect(wlan0)  fw_state=0x00000008
[  301.795777] RTW: [PHL STA]- role-idx: 0
[  301.795781] RTW: [PHL STA]- mac_addr:ac:6f:bb:94:fd:e7
[  301.795784] RTW: [PHL STA]- aid: 0
[  301.795785] RTW: [PHL STA]- macid: 0
[  301.795786] RTW: [PHL STA]- wifi_band: 1
[  301.795787] RTW: [PHL STA]- bw: 0
[  301.795787] RTW: [PHL STA]- chan: 36
[  301.795789] RTW: [PHL STA]- offset: 0
[  301.886887] RTW: start auth
[  301.890739] RTW: auth success, start assoc
[  301.895143] RTW: assoc success
[  301.895402] PHL: macid 0, probersp 255, pspoll 255, nulldata 255, qosnull 255, cts2self 255.
[  301.895418] RTW: [PHL STA]- role-idx: 0
[  301.895422] RTW: [PHL STA]- mac_addr:ac:6f:bb:94:fd:e7
[  301.895424] RTW: [PHL STA]- aid: 89
[  301.895425] RTW: [PHL STA]- macid: 0
[  301.895426] RTW: [PHL STA]- wifi_band: 1
[  301.895426] RTW: [PHL STA]- bw: 2
[  301.895427] RTW: [PHL STA]- chan: 36
[  301.895428] RTW: [PHL STA]- offset: 1
[  301.964580] RTW: recv eapol packet 1/4
[  301.964906] RTW: send eapol packet 2/4
[  302.001558] RTW: recv eapol packet 3/4
[  302.001827] RTW: send eapol packet 4/4
[  302.002010] PHL: ERROR rtw_hal_mac_delete_key : mac status 58.
[  302.002095] RTW: setkey_hdl: set group key for ac:6f:bb:94:fd:e7, kid:2 type:1 algo:AES
[  302.002165] PHL: ERROR rtw_hal_mac_delete_key : mac status 58.
[  302.002168] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  308.627760] 8021q: 802.1Q VLAN Support v1.8

However, hardware seems to work just fine. I didn't do a lot of testing with it as I'm just glad it works as all but so far haven't encountered any issues.

I'm not sure how similar the chipset is but the rtw89 module should cover the Realtek 8852AE, might be worth having a look there and maybe even get it upstream.

edit: format

Thank you for your reminder. It is precisely because rtw89 does not contain the driver of rtl8852be that I tried to change the driver version of a chipset.
However, the code of this chipset may need to adapt to a variety of platforms, and the code is relatively complex, so it may not be appropriate to push it directly upstream.

I created this repo based on the principle of "just use it". If there are too many warnings but it doesn't seem to affect the operation of the hardware, let it warn (snicker🤦‍♂️).

@fogobogo
Copy link

That is alright, the way it is, it certainly saved me a lot of trouble and the effort is much appreciated. I might file a kernel bug for the rtw89 module some time and see how it goes from there. For now I'm just glad it works at all.

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants