fatal: destination path 'rtw89' already exists and is not an empty directory.
make -C /lib/modules/6.8.0-76060800daily20240311-generic/build M=/home/josh/wifi/rtw89 modules
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-76060800daily20240311-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
CC [M] /home/josh/wifi/rtw89/core.o
/home/josh/wifi/rtw89/core.c: In function ‘rtw89_core_register_hw’:
/home/josh/wifi/rtw89/core.c:4678:37: error: ‘WIPHY_FLAG_DISABLE_WEXT’ undeclared (first use in this function)
4678 | hw->wiphy->flags |= WIPHY_FLAG_DISABLE_WEXT;
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/josh/wifi/rtw89/core.c:4678:37: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [scripts/Makefile.build:243: /home/josh/wifi/rtw89/core.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.8.0-76060800daily20240311-generic/Makefile:1927: /home/josh/wifi/rtw89] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-76060800daily20240311-generic'
make: *** [Makefile:104: all] Error 2
[sudo] password for josh:
make -C /lib/modules/6.8.0-76060800daily20240311-generic/build M=/home/josh/wifi/rtw89 modules
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-76060800daily20240311-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
CC [M] /home/josh/wifi/rtw89/core.o
/home/josh/wifi/rtw89/core.c: In function ‘rtw89_core_register_hw’:
/home/josh/wifi/rtw89/core.c:4678:37: error: ‘WIPHY_FLAG_DISABLE_WEXT’ undeclared (first use in this function)
4678 | hw->wiphy->flags |= WIPHY_FLAG_DISABLE_WEXT;
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/josh/wifi/rtw89/core.c:4678:37: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [scripts/Makefile.build:243: /home/josh/wifi/rtw89/core.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.8.0-76060800daily20240311-generic/Makefile:1927: /home/josh/wifi/rtw89] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-76060800daily20240311-generic'
make: *** [Makefile:104: all] Error 2
Issue 2 - Downgrade, cannot connect
In an attempt to fix the kernel 6.8 issue, I downgraded back to 6.6. I updated the os (apt update && apt upagrade -y) and it broke the wifi. I assumed that it had overwritten or remove something that the driver required. However, after unloading, re-building from main, and re-installing - I can not longer connect to wifi. The driver works in that it can enumerate wireless access points, but cannot connect/authenticate to them for some reason.
System:
Linux pop-os 6.6.10-76060610-generic #202401051437~1709085277~22.04~31d73d8 SMP PREEMPT_DYNAMIC Wed F x86_64 x86_64 x86_64 GNU/Linux
andLinux pop-os 6.8.0-76060800daily20240311-generic #202403110203~1715181801~22.04~aba43ee SMP PREEMPT_DYNAMIC Wed M x86_64 x86_64 x86_64 GNU/Linux
Issue 1 - Broken Build
Before downgrading kernels I could not build the driver:
Linux pop-os 6.8.0-76060800daily20240311-generic #202403110203~1715181801~22.04~aba43ee SMP PREEMPT_DYNAMIC Wed M x86_64 x86_64 x86_64 GNU/Linux
Error:
Issue 2 - Downgrade, cannot connect
In an attempt to fix the kernel 6.8 issue, I downgraded back to 6.6. I updated the os (
apt update && apt upagrade -y
) and it broke the wifi. I assumed that it had overwritten or remove something that the driver required. However, after unloading, re-building from main, and re-installing - I can not longer connect to wifi. The driver works in that it can enumerate wireless access points, but cannot connect/authenticate to them for some reason.Logs
Snippet