My WiFi worked fine with Ubuntu 18.04 on my HP-ab516tx laptop. Then I updated to 20.04 and my WiFi didn't work. My visible network list was empty. I found the now deleted from Github, rtlwifi_new driver for my rtl8723be here. It installed fine and my WiFi worked again. When I upgraded to 22.04, and tried to install it again to get back my WiFi, I got an error. Here is the output of make
. How can I fix this error and what is causing it?
/home/sns/Downloads/rtlwifi_new/rtl8192cu/hw.c: In function ‘_rtl92cu_init_chipN_one_out_ep_priority’:
/home/sns/Downloads/rtlwifi_new/rtl8192cu/hw.c:617:9: warning: parameter names (without types) in function declaration
617 | u16 uninitialized_var(value);
| ^~~
/home/sns/Downloads/rtlwifi_new/rtl8192cu/hw.c:621:17: error: ‘value’ undeclared (first use in this function)
621 | value = QUEUE_HIGH;
| ^~~~~
/home/sns/Downloads/rtlwifi_new/rtl8192cu/hw.c:621:17: note: each undeclared identifier is reported only once for each function it appears in
/home/sns/Downloads/rtlwifi_new/rtl8192cu/hw.c: In function ‘_rtl92cu_init_chipN_two_out_ep_priority’:
/home/sns/Downloads/rtlwifi_new/rtl8192cu/hw.c:643:9: warning: parameter names (without types) in function declaration
643 | u16 uninitialized_var(valueHi);
| ^~~
/home/sns/Downloads/rtlwifi_new/rtl8192cu/hw.c:644:9: warning: parameter names (without types) in function declaration
644 | u16 uninitialized_var(valueLow);
| ^~~
/home/sns/Downloads/rtlwifi_new/rtl8192cu/hw.c:648:17: error: ‘valueHi’ undeclared (first use in this function)
648 | valueHi = QUEUE_HIGH;
| ^~~~~~~
/home/sns/Downloads/rtlwifi_new/rtl8192cu/hw.c:649:17: error: ‘valueLow’ undeclared (first use in this function)
649 | valueLow = QUEUE_LOW;
| ^~~~~~~~
make[3]: *** [scripts/Makefile.build:297: /home/sns/Downloads/rtlwifi_new/rtl8192cu/hw.o] Error 1
make[2]: *** [scripts/Makefile.build:560: /home/sns/Downloads/rtlwifi_new/rtl8192cu] Error 2
make[1]: *** [Makefile:1909: /home/sns/Downloads/rtlwifi_new] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-79-generic'
make: *** [Makefile:85: all] Error 2
This is lspci
output.
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers (rev 08)
00:02.0 VGA compatible controller: Intel Corporation Skylake GT2 [HD Graphics 520] (rev 07)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 08)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 (rev f1)
00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1)
00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 (rev f1)
00:1d.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #9 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 940M] (rev a2)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01)
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller (rev 0a)
Results of lspci -nnk -d ::0280
:
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723]
DeviceName: Realtek RTL8723BE 802.11b/g/n 1x1Wi-Fi + BT4.0 Combo Adapter
Subsystem: Hewlett-Packard Company RTL8723BE PCIe Wireless Network Adapter [103c:804c]
Kernel driver in use: rtl8723be
Kernel modules: rtl8723be
lspci -nnk -d ::0280
– R A Aug 20 '23 at 09:11make
, there ismake install
and thenmodprobe <my driver code>
. It's all in the README file of the repo. – nupro Aug 20 '23 at 15:1010ec:b723
and works OOTB. It printsDeviceName: WLAN
though and a slightly different subsystem – R A Aug 20 '23 at 16:07rtl8192cu
by removing all lines containingrtl8192cu
inMakefile
source file – R A Aug 20 '23 at 16:09sudo dmesg | grep 8723
or:rfkill list all
– chili555 Aug 20 '23 at 18:08