0

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
karel
  • 114,770
nupro
  • 3

1 Answers1

1

There are several items in your wireless info report that are concerning. First, there are two competing and probably needless declarations for module parameters. I suggest that they be removed entirely.

sudo rm /etc/modprobe.d/50-rtl8723be.conf
sudo rm /etc/modprobe.d/rtl8723be.conf

Next, netplan is not set correctly.

sudo nano /etc/netplan/01-network-manager-all.yaml

Add these lines:

# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager

Netplan is very specific about spacing and indentation so proofread carefully twice. Save (Ctrl+o followed by Enter) and exit (Ctrl+x) the text editor. Follow with:

sudo netplan generate
sudo netplan apply

resolv.conf is not set correctly.

sudo rm /etc/resolv.conf
sudo ln -s /run/systemd/resolve/stub-resolv.conf  /etc/resolv.conf

You have no 8192eu device so let’s remove its declaration:

sudo nano /etc/modules

Remove the 8192eu line. Save and exit nano as above.

Reboot, disconnect the USB ethernet and see if Network Manager takes over the wireless. In any event, let us see:

sudo dmesg | grep rtl

EDIT: You may need a driver parameter. Please do:

sudo modprobe -r rtl8723be
sudo modprobe rtl8723be ant_sel=1

Is there any improvement? If not try the sequence again with ant_sel=2. Tell us which improves the signal strength and we'll wite one file to make it persistant.

chili555
  • 60,188