lwfinger / rtw89

Driver for Realtek 8852AE, an 802.11ax device
GNU General Public License v2.0
1.28k stars 162 forks source link

PopOS on HP Elietebook - Update Broke Build #339

Open aGuyOverThere opened 6 months ago

aGuyOverThere commented 6 months ago

System:

DISTRIB_ID=Pop
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Pop!_OS 22.04 LTS"

Issue 1 - Broken Build

Before downgrading kernels I could not build the driver:

Error:

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.

Logs

Snippet

540.014689] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[  540.300575] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[  540.697425] wlp2s0: authenticate with 74:ac:b9:47:86:ef
[  540.697452] wlp2s0: 80 MHz not supported, disabling VHT
[  540.996923] wlp2s0: authenticate with 74:ac:b9:47:86:ef
[  540.996938] wlp2s0: 80 MHz not supported, disabling VHT
[  544.418283] wlp2s0: authenticate with 78:8a:20:4c:ea:41
[  544.418302] wlp2s0: 80 MHz not supported, disabling VHT
[  544.712635] wlp2s0: authenticate with 78:8a:20:4c:ea:41
[  544.712682] wlp2s0: 80 MHz not supported, disabling VHT
[  546.014105] wlp2s0: authenticate with 7e:8a:20:4d:ea:41
[  546.300958] wlp2s0: authenticate with 7e:8a:20:4d:ea:41
[  556.252416] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[  556.540600] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[  567.823138] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[  568.128966] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[  578.533553] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[  578.840641] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[  595.842460] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[  596.128598] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[  606.553678] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[  606.860561] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[  623.829146] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[  624.120982] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[  634.517848] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[  634.808797] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[  951.827223] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[  952.125051] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[  962.537945] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[  962.825405] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[  975.807689] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[  976.096668] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[  986.525529] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[  986.832545] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[ 1003.855123] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[ 1004.176927] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[ 1014.601946] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[ 1014.889391] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[ 1031.850456] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[ 1032.144584] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[ 1042.546073] wlp2s0: authenticate with 76:ac:b9:17:86:f0
[ 1042.844603] wlp2s0: authenticate with 76:ac:b9:17:86:f0