Giter Club home page Giter Club logo

88x2bu-20210702's People

Contributors

5kft avatar exzombie avatar gitak2019 avatar leewc avatar michizubi avatar misha4gps avatar morrownr avatar mosoriob avatar sultanqasim avatar zeno-sole avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

88x2bu-20210702's Issues

(cannot duplicate) Manual Install issue on Ubuntu 2022.04 with 5.15 Kernel installed on Raspberry PI + FIX

The manual installation of this driver on ubuntu 2022.04 with the 5.15 kernel on a raspberry pi may have an error

if you run into an issue concerning -mabi options being incorrect then the solution is to specify the architecture during the make step.

So the new steps are as follows

make clean
make ARCH="arm64"
sudo make install
reboot.

The only change is to specify that arm64 is architecture.

Automatic Channel Selection is not working with Hostapd on Raspberry Pi 4 (Event SCAN_STARTED (47) received)

Hi Nick & Team,

first of all, thank you for all the hard work maintaining those drivers and guides! They are very well written!

I had a "TP-Link Archer T4U ver.3" lying around and wanted to try using it on my RPi 4 as an access point. First of all: it worked! (maybe you want to add it to the list of supported devices) It is delivering very decent speeds:

[ ID]   Interval         Transfer      Bitrate          Retr
[  5]   0.00-90.00  sec  2.89 GBytes   276 Mbits/sec    0             sender
[  5]   0.00-90.01  sec  2.89 GBytes   276 Mbits/sec                  receiver

The only issue is, that it works only on channel 36 for me. If I set channel=0 to initiate ACS, unfortunately hostapd exits with the following log:

wlan1: interface state COUNTRY_UPDATE->ACS
wlan1: ACS-STARTED 
Interface initialization will be completed in a callback (ACS)
ctrl_iface not configured!
nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlan1
wlan1: nl80211: Scan trigger
wlan1: Event SCAN_STARTED (47) received
Unknown event 47
nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlan1

Please feel free to close this issue if this is rather a hostapd issue. If anything, I hope this ticket provides some testing results for you.

modprobe config:

options 88x2bu rtw_drv_log_level=0 rtw_led_ctrl=1 rtw_vht_enable=2 rtw_power_mgnt=1 rtw_beamform_cap=10 rtw_dfs_region_domain=3 rtw_sel_p2p_iface=1 rtw_switch_usb_mode=0

hostapd.conf

ssid=[REDACTED]
wpa_passphrase=[REDACTED]

country_code=DE

interface=wlan1
driver=nl80211

wpa=2
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP

macaddr_acl=0

logger_syslog=0
logger_syslog_level=4
logger_stdout=-1
logger_stdout_level=0

hw_mode=a
wmm_enabled=1

# N
ieee80211n=1
require_ht=1
ht_capab=[LDPC][HT40+][HT40-][SHORT-GI-20][SHORT-GI-40][MAX-AMSDU-7935]

# AC
ieee80211ac=1
require_vht=1
ieee80211d=1
ieee80211h=1
vht_capab=[MAX-MPDU-11454][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][HTC-VHT][MAX-A-MPDU-LEN-EXP7]
vht_oper_chwidth=1
channel=36
vht_oper_centr_freq_seg0_idx=42

By the way, thank you for providing the ht_capab and vht_capab lines. They gave me additional 50 mbits.

Here is the output of sudo uname -a; mokutil --sb-state; lsusb; rfkill list all; dkms status; iw dev

Linux raspberrypi 5.10.63-v7l+ #1488 SMP Thu Nov 18 16:15:28 GMT 2021 armv7l GNU/Linux
-bash: mokutil: command not found
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 2357:0115 TP-Link Archer T4U ver.3
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
1: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
rtl88x2bu, 5.13.1, 5.10.63-v7l+, armv7l: installed
phy#0
        Interface wlan1
                ifindex 4
                wdev 0x2
                addr [REDACTED]
                ssid [REDACTED]
                type AP
                txpower 25.00 dBm
        Interface wlan0
                ifindex 3
                wdev 0x1
                addr [REDACTED]
                type managed
                txpower -100.00 dBm

Centos 8. tp-link AC1300 Archer T4U Plus

Hi all,
TP-Link AC1300 Archer t4U Plus up and running using this driver but taking into account this gordboy/rtl8812au-5.9.3.2#11.
If additional info or questions just let me know.
Thanks in advance to everyone.
Info attached.

Linux jason 4.18.0-358.el8.x86_64 #1 SMP Mon Jan 10 13:11:20 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
SecureBoot disabled
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 004: ID 0b05:19af ASUSTek Computer, Inc. 
Bus 001 Device 003: ID 046d:c31d Logitech, Inc. Media Keyboard K200
Bus 001 Device 006: ID 2357:0115 TP-Link Archer T4U ver.3
Bus 001 Device 002: ID 04b3:3107 IBM Corp. ThinkPad 800dpi Optical Travel Mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
8812au/5.6.4.2_35491.20191025, 4.18.0-358.el8.x86_64, x86_64: installed (WARNING! Diff between built and installed module!)
rtl88x2bu/5.13.1, 4.18.0-358.el8.x86_64, x86_64: installed (original_module exists)
phy#0
	Interface wlp0s20f0u10
		ifindex 3
		wdev 0x1
		addr 60:a4:b7:53:a7:7a
		ssid MiFibra-F95E
		type managed
		channel 108 (5540 MHz), width: 80 MHz, center1: 5530 MHz
		txpower 18.00 dBm

(solved) Unable to connect to WiFi

I followed the instructions that you provided for Ubuntu. The driver seemed to install correctly. The wifi adapter LED is now blinking and it is able see available wifi connections. The problem is that I am unable to connect to the wifi. It repeatedly asks for the wifi password and when I enter in the correct password, it asks again.

-I am using Ubuntu 21.10 Impish Indri

INFO FROM REQUESTED COMMAND
Linux nick-Z390-GAMING-X 5.13.0-35-generic #40-Ubuntu SMP Mon Mar 7 08:03:10 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
SecureBoot disabled
Platform is in Setup Mode
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 1058:264d Western Digital Technologies, Inc. easystore 264D
Bus 001 Device 005: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 004: ID 6557:1621 Emtec USB DISK 2.0
Bus 001 Device 008: ID 0bda:b812 Realtek Semiconductor Corp. RTL88x2bu [AC1200 Techkey]
Bus 001 Device 007: ID 1b1c:0c22 Corsair iCUE H150i RGB PRO XT Liquid CPU Cooler
Bus 001 Device 009: ID 046d:c315 Logitech, Inc. Classic Keyboard 200
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
1: phy1: Wireless LAN
Soft blocked: no
Hard blocked: no
rtl88x2bu, 5.13.1, 5.13.0-35-generic, x86_64: installed
phy#1
Interface wlx1cbfce64a99c
ifindex 4
wdev 0x100000001
addr 1c:bf:ce:64:a9:9c
type managed
txpower -100.00 dBm

Can someone with a raspberry pi 4B please test this setup

According to #2, we know this adapter does not run a 5GHz AP well under usb3 mode on a raspberry pi. However, this issue cannot be reproduced on a x86 computer.

It seems the only file changed when installing on a RPi comparing to on a PC is the make file. So maybe we should leave the makefile untouched?

So please do this experiment:

  • Compile and install this driver on a pi WITHOUT running raspi32.sh
  • Setup usb3 mode and 5Ghz AP
  • Do the iperf test for at least 30s to see if the connection drops

(info) After reboot I need to always switch wifi usb adapter from usb 1 to usb 2

Hello,

I have ASUSTek Computer, Inc. ASUS USB-AC58 USB Wireless adapter. I have successfully installed driver on Fedora 36 with kernel 5.18.7-200.fc36.x86_64. Everything works as expected I have internet connection, signal is great but every time when I reboot or turn on my PC I have to switch from usb 1 to usb 2 (after another reboot from usb 2 to usb 1). Because if I dont do this ritual I am connected to my wifi network but I dont have a internet connection. When I switch adapter from one usb port to another one after that I have internet connection. I have tried to install and reinstall driver many times but it wont help.

(solved) Can't check the link speed in Debian

I have this installed on OMV 5 Debian. It connects but the link is slow. I don't have access to the router I connect to (shared) and I can't see the link speed in Debian CLI

Any ideas?

(solved) computer freezes

31 dec 2021 tested with 1. dlink dwa 182 rev d1 - on entering monitor mode computer freezes and even cursor doesnt move. if any audio playing in the background goes into a short audio loop. Cannot shut down as process doesnt terminate at all. have to disconnect power instead.
2. TP LINK Archer t3u plus v1.0- terminal freezes on monitor mode, cursor still works but cannot shut down as process doesnt terminate at all. have to disconnect power instead.
kali 2021.4 kernel 5.14
pavilion p001tx laptop with 8GB ram.
Rincat release seems to work fine. Had to uninstall yours, if you update this repo please let me know.

(Information) Driver works on Ubuntu 18.04, Kernel 5.4 LTS and 5.7, but errors on 5.10 and 5.15

Nick,

I'm a relative Linux newbie, but wanted to mention that your driver and cilynx's won't install/build on my Ubuntu 18.04 system if I am running Kernels 5.10 OR 5.15.

Researched on github and forums for solutions and none worked. Had EXACTLY the same problem as this gentleman:
#11

Was using GCC version 11.2 and also fully updated headers/modules for kernels 5.10 and 5.15.

Since I do not have the required technical skill to troubleshoot further, I cleaned my DKMS, uninstalled any failed driver installs, and rolled back my kernel to 5.4 LTS. Et Voila, reinstallation worked perfectly.

I also wanted to take a moment to thank you for your efforts and for your investment in this driver. It's true that Realtek devices are going to be more and more problematic for Linux users in the future, but your driver has saved me the expense of buying new hardware. Appreciate you!

Installation script creates a wrong link to source

Error:
* dkms: running auto installation service for kernel 5.15.0-41-generic Error! Could not locate dkms.conf file. File: /var/lib/dkms/rtl88x2bu/5.2.4.4/source/dkms.conf does not exist. ...fail! run-parts: /etc/kernel/postinst.d/dkms exited with return code 4

There are two directories in /var/lib/dkms/rtl88x2bu/ 5.2.4.4 with a wrong link to source and 5.13.1, deleting 5.2.4.4 one solved the problem

NO issues, just a question about "new LED control"

Hi, morrownr!

This piece of code. Where did you find it? Is look like the same I wrote a few months ago.
https://github.com/ivanovborislav/rtl88x2bu.git, hal/rtl8822b/usb/rtl8822bu_led.c.
Everything is OK, just point the source. This is right.

(need help) Slower connection speed compared to machine under Windows

Hi Nick (if I may),

first of all, many thanks for this driver. This is the best and most stable driver for my card. I have no problems, but the speed is slower in comparison with the same card under Windows. For my Internet connection the download speed it is 200Mb at best while under Windows is almost maximum at 300Mb. It's not a big deal however I decided to report this.

I've tested different kernels (LTS and latest in Arch) and all the ports in my computer (HP MP9 G2 Retail System). My Windows and Linux machines are close to each other and the router is nearby (about 2m). I'm happy to provide some more details if you need some.

Cheers!

Linux arch 5.15.49-1-lts #1 SMP Wed, 22 Jun 2022 12:52:35 +0000 x86_64 GNU/Linux
SecureBoot disabled
Bus 002 Device 002: ID 0951:16d5 Kingston Technology DataTraveler Elite G2
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 003: ID 0bda:b812 Realtek Semiconductor Corp. RTL88x2bu [AC1200 Techkey]
Bus 001 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 005: ID 04a9:1912 Canon, Inc. LiDE 400
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
rtl88x2bu/5.13.1, 5.15.49-1-lts, x86_64: installed
phy#0
        Interface wlan0
                ifindex 3
                wdev 0x1
                addr b4:4b:d6:c4:66:5f
                ssid my_ssid
                type managed
                channel 44 (5220 MHz), width: 80 MHz, center1: 5210 MHz
                txpower 15.00 dBm

(info) New compatible device

Thank you for this drivers

Tested on TP-LINK Archer T4U v3 (Realtek RTL8812BU) works perfectly

OS: Manjaro Kernel: 5.10.83-1

  • Aircrack 1.6

OS Kali 5.14

  • Aircrack 1.6
  • Wifite2 2.5.8

dkms issue?

First of all, thank you for maintaining this repo. It is the only driver that works for me. Without it, I would have to bear with a long cable running across the entire house.

Short story, install-driver.sh succeeds but the usb adapter won't work (blinks for a few seconds then off). On the other hand, install-driver-no-dkms.sh works.

Here's the longer story. I have an old Dell precision T1500, it is running Ubuntu 20.04. I've been using the 88x2bu-5.8.7.4 driver for the past year and it worked fine until about two weeks ago when suddenly the system cannot recognize the usb wifi adapter. I removed the driver and tried to install-driver.sh again, but make failed with fatal error: net/ipx.h: No such file or directory (due to changes in kernel 5.15?). Then I found this new repo 88x2bu-20210702. The install-driver.sh script runs successfully, dkms confirms that the driver is installed. The usb adapter blinks for a couple of seconds, giving a list of available wifi networks, then the light turns off. Connecting to the networks failed with the message activation of network connection failed (light on usb adapter never turns on again). After multiple unsuccessful attempts with different combinations of options, I decided to give install-driver-no-dkms.sh a try, and voila, it works! I have no clue where (or which log) to look for potential causes of the issue but thought posting it here may be helpful.

More details:
Desktop: Dell precision T1500, only has usb 2.0. The usb adapter says usb 3.0 on it but it has been working fine with a decent speed (60/10 Mbps comparing to 75/11 Mbps on my tablet which is on the same network).
uname: 5.15.0-41-generic #44~20.04.1-Ubuntu SMP Fri Jun 24 13:27:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
(I don't have mokutil...)
lsusb: Bus 001 Device 003: ID 0bda:b812 Realtek Semiconductor Corp.
rfkill: 0: phy0: Wireless LAN Soft blocked: no Hard blocked: no
(dkms only has driver for nvidia graphics card, when using install-driver.sh, this driver does show up.)

(solved) Extremely slow internet connection on Kernel 5.18

Ever since the kernel 5.18 has been released, I've been in a misery of trying to fix my Wifi adapter. For some specific reason, the internet speed drops to 20mb per second from 300mb per second. Therefore I have reverted back to 5.17 kernel for the meantime.

I personally think this issue exists due to the fact that linux 5.18 introduced new wifi adapters to the kernel, making the latest drivers for 88x2bu to be broken possibly?

Regards

[Compile] Debian arm64 feat Raspberry Pi 4

Anyidea about this error another Drivers have the same problem here... i hope you can help me @morrownr :)

Running install-driver.sh version 20220108

Operating System: Debian GNU/Linux bookworm/sid
Kernel: 5.15.23-v8+ (latest rpi-update / rpi-source Kernel Headers)
arch: aarch64 (arm64)
Device: Raspberry Pi 4

 MODPOST /var/lib/dkms/rtl88x2bu/5.13.1/build/Module.symvers
ERROR: modpost: "__const_udelay" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "__arch_copy_from_user" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "_raw_spin_unlock" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "__rcu_read_lock" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "__rcu_read_unlock" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "cpu_hwcap_keys" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "csum_ipv6_magic" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "__warn_printk" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "arm64_const_caps_ready" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "__udelay" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
WARNING: modpost: suppressed 2 unresolved symbol warnings because there were too many)
make[2]: *** [scripts/Makefile.modpost:134: /var/lib/dkms/rtl88x2bu/5.13.1/build/Module.symvers] Error 1
make[2]: *** Deleting file '/var/lib/dkms/rtl88x2bu/5.13.1/build/Module.symvers'
make[1]: *** [Makefile:1783: modules] Error 2
make[1]: Leaving directory '/root/linux-bd14681a067cd3d91f7ca664c6858bcbac806adb'
make: *** [Makefile:2510: modules] Error 2

Driver installed successfully, but wifi is not connected

Hi

The driver is successfully installed into the Pi 4 with 64bit Pi OS. The onboard wifi is disabled via the /boot/config.txt file. After the reboot, the wlan0 shows a list of available wifi endpoints. Once a home wifi is selected, the ESSID shows up correctly in iwconfig result. However, after a few seconds, it is back to unassociated. I tried so many time on either 2.4G or 5G wifi. It never connects. Anyone knows what is going on there?

PS: The onboard wifi connects without any issue.
Thanks,
Wilson

cannot compile on rPi0w

Hi, I cannot get this driver to compile on rPi Zero W (it compiles correctly on rPi Zero 2 W by the way)
I'm using re4son kernel from Kali - version 5.4.83-20210516 on raspi os buster (ditribution github.com/evilsocket/pwnagotchi 1.5.5)

kernel headers for re4son kernel are installed: can you help me please? I'm lost
Thank you!

ale

pi@foresight:~/88x2bu-20210702 $ ./raspiOS-32.sh 
I386 support was turned off in Makefile as planned.
Raspberry Pi OS (32 bit) support was turned on in Makefile as planned.

sudo ./install-driver.sh

Running install-driver.sh version 20211204
Starting installation...
Copying source files to: /usr/src/rtl88x2bu-5.13.1
Copying 88x2bu.conf to: /etc/modprobe.d

Creating symlink /var/lib/dkms/rtl88x2bu/5.13.1/source ->
                 /usr/src/rtl88x2bu-5.13.1

DKMS: add completed.
Error! echo
Your kernel headers for kernel 5.4.83-Re4son+ cannot be found at
/lib/modules/5.4.83-Re4son+/build or /lib/modules/5.4.83-Re4son+/source.
An error occurred. dkms build error = 1
Please report this error.

disconnect on openwrt

OPENWRT LOG:

[    8.135500] usbcore: registered new interface driver rtl88x2bu
[    8.147232] batman_adv: B.A.T.M.A.N. advanced 2022.0-openwrt-1 (compatibility version 15) loaded
[    8.153265] kmodloader: done loading kernel modules from /etc/modules.d/*
[    8.706479] usb 5-1: new high-speed USB device number 3 using xhci-hcd
[    9.194228] usb 5-1: USB disconnect, device number 3
[    9.491136] EXT4-fs (mmcblk1p1): warning: mounting unchecked fs, running e2fsck is recommended
[    9.492904] EXT4-fs (mmcblk1p1): mounted filesystem without journal. Opts: 
[    9.786283] usb 5-1: new high-speed USB device number 4 using xhci-hcd
[   10.210113] usb 5-1: USB disconnect, device number 4
[   10.786257] usb 5-1: new high-speed USB device number 5 using xhci-hcd
[   11.156244] Generic FE-GE Realtek PHY r8169-0-100:00: attached PHY driver [Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-0-100:00, irq=IGNORE)
[   11.216895] usb 5-1: USB disconnect, device number 5
[   11.446362] r8169 0000:01:00.0 eth1: Link is Down
[   11.446985] br-lan: port 1(eth1) entered blocking state
[   11.447458] br-lan: port 1(eth1) entered disabled state
[   11.448157] device eth1 entered promiscuous mode
[   11.496239] phy_rtl8211e_led_fixup in
[   11.498394] rk_gmac-dwmac fe300000.ethernet eth0: PHY [stmmac-0:01] driver [RTL8211E Gigabit Ethernet] (irq=85)
[   11.501349] cma: cma_alloc: alloc failed, req-size: 2 pages, ret: -12
[   11.501959] cma: cma_alloc: alloc failed, req-size: 2 pages, ret: -12
[   11.816241] usb 5-1: new high-speed USB device number 6 using xhci-hcd
[   12.249945] usb 5-1: USB disconnect, device number 6
[   12.846315] usb 5-1: new high-speed USB device number 7 using xhci-hcd
[   13.046236] rk_gmac-dwmac fe300000.ethernet eth0: No Safety Features support found
[   13.046956] rk_gmac-dwmac fe300000.ethernet eth0: PTP not supported by HW
[   13.048233] rk_gmac-dwmac fe300000.ethernet eth0: configuring for phy/rgmii link mode
[   13.325997] usb 5-1: USB disconnect, device number 7
[   13.906238] usb 5-1: new high-speed USB device number 8 using xhci-hcd
[   14.341398] usb 5-1: USB disconnect, device number 8
[   14.602884] r8169 0000:01:00.0 eth1: Link is Up - 1Gbps/Full - flow control rx/tx
[   14.603596] br-lan: port 1(eth1) entered blocking state
[   14.604060] br-lan: port 1(eth1) entered forwarding state
[   14.604876] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   14.946241] usb 5-1: new high-speed USB device number 9 using xhci-hcd
[   15.390161] usb 5-1: USB disconnect, device number 9
[   15.986263] usb 5-1: new high-speed USB device number 10 using xhci-hcd
[   16.430071] usb 5-1: USB disconnect, device number 10
[   17.016458] usb 5-1: new high-speed USB device number 11 using xhci-hcd
[   17.459799] usb 5-1: USB disconnect, device number 11
[   18.036427] usb 5-1: new high-speed USB device number 12 using xhci-hcd
[   18.469379] usb 5-1: USB disconnect, device number 12
[   19.046448] usb 5-1: new high-speed USB device number 13 using xhci-hcd
[   19.499726] usb 5-1: USB disconnect, device number 13
[   20.076486] usb 5-1: new high-speed USB device number 14 using xhci-hcd

UNAME -A:
Linux OpenWrt 5.10.108 #0 SMP PREEMPT Sat Mar 26 10:20:17 2022 aarch64 GNU/Linux

IF CONNECT: lsusb -t

/sys/bus/usb/devices/5-1/configuration: No such file or directory
/sys/bus/usb/devices/5-1/devnum: No such file or directory
/sys/bus/usb/devices/5-1/idProduct: No such file or directory
/sys/bus/usb/devices/5-1/idVendor: No such file or directory
/sys/bus/usb/devices/5-1/maxchild: No such file or directory
/:  Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
    |__ Port 1: Dev 0, If 0, Class=, Driver=rtl88x2bu, M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M

DISCONNET: lsusb -t

/:  Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M

MY DEVICE:
rockchip friendlyarm nanopi R4S

CADA4C29-D6AE-4F68-B51B-AC82C676D757

MY OPENWRT PACKAGE:
https://github.com/immortalwrt/immortalwrt/tree/master/package/kernel/rtl88x2bu

thanks for your job !

Using wrong 802.11 mode/frequency and bit rate.

Hello, I have a generic Amazon 8812bu dongle and I'm having some issues.

I installed this driver without any issue. I selected Concurrent_Mode during install because I want to have both a 5Ghz and a 2.4Ghz AP.

I'm using Mint 20.3 and I used the GUI to set my two wireless AP as following:

image
image

But as far as I see, the access points are working in 802.11n mode only, not ac. And the bit-rate is way too low, 144.4 Mbps is far from the advertised numbers (5GHz (867Mbps) / 2.4GHz (300Mbps)). I verified this by connecting to the networks with my phone and seeing that the AP is "WiFi 4", not 5.

Rebooting or doing $ sudo systemctl restart NetworkManager doesn't make a difference.

This is the output from iwconfig:

$ iwconfig
wlx1ebfcee632b8  IEEE 802.11bgn  ESSID:"Home"  Nickname:"WIFI@RTL88X2BU"
          Mode:Master  Frequency:2.412 GHz  Access Point: 1E:BF:CE:E6:32:B8
          Bit Rate:144.4 Mb/s   Sensitivity:0/0
          Retry:off   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

wlx1cbfcee632b8  IEEE 802.11bgn  ESSID:"Home_5G"  Nickname:"WIFI@RTL88X2BU"
          Mode:Master  Frequency:2.412 GHz  Access Point: 1C:BF:CE:E6:32:B8
          Bit Rate:144.4 Mb/s   Sensitivity:0/0
          Retry:off   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

See? both AP are using IEEE 802.11bgn, Frequency:2.412 GHz and Bit Rate:144.4 Mb/s. 🤔

$ sudo uname -a; mokutil --sb-state; lsusb; rfkill list all; dkms status; iw dev
Linux RDMServer 5.4.0-122-generic #138-Ubuntu SMP Wed Jun 22 15:00:31 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
SecureBoot disabled
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 0bda:b812 Realtek Semiconductor Corp. USB3.0 802.11ac 1200M Adapter
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 1b1c:0c04 Corsair Link Cooling Node
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
rtl88x2bu, 5.13.1, 5.4.0-122-generic, x86_64: installed
phy#0
        Interface wlx1ebfcee632b8
                ifindex 4
                wdev 0x2
                addr 1e:bf:ce:e6:32:b8
                ssid Home
                type AP
                channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
                txpower 16.00 dBm
        Interface wlx1cbfcee632b8
                ifindex 3
                wdev 0x1
                addr 1c:bf:ce:e6:32:b8
                ssid Home_5G
                type AP
                channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
                txpower 16.00 dBm
$ lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
    |__ Port 4: Dev 2, If 0, Class=Vendor Specific Class, Driver=rtl88x2bu, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/14p, 480M
    |__ Port 11: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M

My dongle is connected to a USB3.0 port in the back on the computer, directly to the motherboard (An Asus MAXIMUS VI HERO).

I also tried to manually edit /etc/modprobe.d/88x2bu.conf to define my country code and the wireless mode, but this didn't fix the issue.

options 88x2bu rtw_drv_log_level=0 rtw_led_ctrl=1 rtw_vht_enable=1 rtw_power_mgnt=1 rtw_switch_usb_mode=1 rtw_country_code=ES rtw_wireless_mode=95

My goal is to have a 2.4ghz and a 5ghz network to extend Wi-Fi coverage to my garage where I have some smartplugs that need 2.4ghz Wi-Fi but depending on the day they don't have a good enough connection. The 5ghz network would be used so phones and other mobile devices don't drop connection when they are brought to the garage.

The computer I'm using for this task is an old Intel i5 4670K based computer that I'm using as a "small" server and it's connected to the network using ethernet and it's getting a stable Gigabit connection from a nearby switch.

(Info) Problem Reporting Guidelines - Please Read.

When reporting problems, remember that the people that will attempt to help you do not know what Linux distro you have. Painting a picture that includes the distro you are using and a brief description of the problem is important.

Checklist regarding what to include:

  • A brief description of the problem.
  • Paste the screen output provided by the install-driver.sh script.
  • The name and version of the Linux distro you are using.
  • The information obtained with the below command.
sudo lsusb; rfkill list all; dkms status; iw dev; iw reg get

Thank you

88x2bu & slackware64

Hi Nick,
Slackware's main site is slackware.com, and there are many mirrors. Slackware.uk is a fast one, and Alien Bob hangs his stuff on slackware.nl. Slackware packages are everything installed by 'make install' - programs, libs, shares, docs & includes. There's no dependency tracking, but there is ldd:). You can upgrade, downgrade, install non_standard, etc. I have a /tmp/pack directory always. The packages are made by 'make DESTDIR=/tmp/pack install; cd /tmp/pack; makepkg ../my_package.txz; rm -rf /tmp/pack/*
Slackware has no systemd, uses /lib for 32bit and /lib64 for 64bit libs, prefers old stuff over new and expects you to know a little. Scripts are usually bash scripts. There is also significant external repositories, arm ports even a risc-V with slarm64. Alien Bob (A slackware dev) supplies useful stuff: 64+32 bit versions of wine, glibc & gcc(the latter 2 needed for multilib); his 32bit compatibility libs(or multilib); an ungoogled version of Chromium; piles of stuff you wanted but couldn't get - like restricted codecs in vlc for the Excited States and unrestricted for the rest of the world. Multilib is needed for running 32bit windows applications (which is most of them) on a 64bit OS.

My 88x2bu is not going. The module appears sensitive to multithreaded builds. I have two git clones here(well organised, amn't I?) and two modules, and diff shows them as differing :-o. The infuriating thing for me was that I had the dongle working in my shiny new pc, but updated the kernel trying to get kernel support for the RTL8811CU, and lost my module. I could never get it going again. This thread refers https://www.linuxquestions.org/questions/linux-hardware-18/hardware-problem-with-wifi-dongle-4175714726/ and saves a lot of typing. I installed my OS on this new pc by installing the basics, then restoring a backup from my recently retired laptop. I still have the laptop. The same dongle works in that! It has the same crash in dmesg when I insert the dongle, 'ifconfig wlan2 up' only takes 2-3 seconds, I get good upload & download, but that has it's own highly sensitive built-in Atheros wifi hardware as well, which I have to disable to test the dongle.

I can't get debug type feedback from ifconfig or iw while they are sitting quietly for 10 seconds - I'd love a suggestion on that score. I know strace & gdb are included with slackware, but I've never used them. Ditto the insertion crash, which happens every time.

So as you see, I've kinda fingered my shiny new pc as the problem, although it worked there before. And the dongle is obviously a POS. (usb id: 0bda:b812). Any ideas welcome

(solved) an error when installing

error:

Running install-driver.sh version 20220705
5.18.12-3-MANJARO
x86_64
Starting installation...
Copying source files to: /usr/src/rtl88x2bu-5.13.1
Copying 88x2bu.conf to: /etc/modprobe.d
Creating symlink /var/lib/dkms/rtl88x2bu/5.13.1/source -> /usr/src/rtl88x2bu-5.13.1
Sign command: /usr/lib/modules/5.18.12-3-MANJARO/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Binary sign-file not found, module won't be signed
Error! Your kernel headers for kernel 5.18.12-3-MANJARO cannot be found at /usr/lib/modules/5.18.12-3-MANJARO/build or /usr/lib/modules/5.18.12-3-MANJARO/source.
Please install the linux-headers-5.18.12-3-MANJARO package or use the --kernelsourcedir option to tell DKMS where it's located.
An error occurred. dkms build error = 1
Please report this error.
You will need to run the following before reattempting installation.
$ sudo ./remove-driver.sh
Result for: sudo uname -a; mokutil --sb-state; lsusb; rfkill list all; dkms status; iw dev

Linux eg017-ab350mds3h 5.18.12-3-MANJARO #1 SMP PREEMPT_DYNAMIC Sun Jul 17 14:33:15 UTC 2022 x86_64

GNU/Linux
zsh: command not found: mokutil
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 1038:150a SteelSeries ApS SteelSeries QCK Prism Cloth
Bus 003 Device 003: ID 1532:0098 Razer USA, Ltd Razer DeathAdder Essential
Bus 003 Device 002: ID 2357:0115 TP-Link Archer T4U ver.3
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 3233:6301 Ducky Ducky One2 Mini RGB
Bus 001 Device 003: ID 04e8:6863 Samsung Electronics Co., Ltd Galaxy series, misc. (tethering mode)
Bus 001 Device 006: ID 0951:16df Kingston Technology HyperX QuadCast
Bus 001 Device 002: ID 1058:2626 Western Digital Technologies, Inc. My Passport (WDBPKJ)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
rtl88x2bu/5.13.1: added

(not practical to fix) CentOS 7 unable to install RTL8812BU

Hello, I am quite new to linux, so may have some dumb errors. I am running CentOS 7 and was trying to install the driver but when I used automated script it gave me dkms error =10, I tried to run it manually through make but also without success. please find the output of the terminal in the file attached. \I would appreciate if you can advice where I should move from here. Thank you for your help and detailed instructions
file.txt

NetGear A6150 does not work on Ubuntu kernel 5.11

The driver does not work on ubuntu kernel: 5.11.0-38-generic(Realtek) with NetGear A6150.
I have successful used 88x2bu driver on ubuntu kernel: 5.8(Realtek) but it does not work after I upgrade ubuntu to 5.11(Realtek).
So I reinstalled 88x2bu-20210702, it still does not work.
No wireless interface show in 'lshw -C network'.
Could you have a check? Thank you.

Build fails

Build fails on Fedora 35 kernel 5.14.16.
Any idea ?

Full error log:

DKMS make.log for rtl88x2bu-5.13.1 for kernel 5.14.16-301.fc35.x86_64 (x86_64)
Sun Nov  7 05:31:22 PM CET 2021
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.14.16-301.fc35.x86_64/build M=/var/lib/dkms/rtl88x2bu/5.13.1/build  modules
make[1]: Entering directory '/usr/src/kernels/5.14.16-301.fc35.x86_64'
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_cmd.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_security.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_debug.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_io.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_ioctl_query.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_ioctl_set.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_ieee80211.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_mlme.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_mlme_ext.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_mi.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_wlan_util.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_vht.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_pwrctrl.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_rf.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_chplan.o
/var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_mlme_ext.c: In function ‘rtw_txpwr_init_regd’:
/var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_mlme_ext.c:299:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
  299 |                 if (rfctl->regd_name)
      |                    ^
/var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_mlme_ext.c:302:9: note: here
  302 |         default:
      |         ^~~~~~~
/var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_mlme_ext.c: In function ‘mgt_dispatcher’:
/var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_mlme_ext.c:1670:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1670 |                         ptable->func = &OnAuthClient;
      |                         ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_mlme_ext.c:1672:9: note: here
 1672 |         case WIFI_ASSOCREQ:
      |         ^~~~
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/monitor/rtw_radiotap.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_recv.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_sta_mgt.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_ap.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/wds/rtw_wds.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/mesh/rtw_mesh.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/mesh/rtw_mesh_pathtbl.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/mesh/rtw_mesh_hwmp.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_xmit.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_p2p.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_rson.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_tdls.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_br_ext.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_iol.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_sreset.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_btcoex_wifionly.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_btcoex.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_beamforming.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_odm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_rm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_rm_fsm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_ft.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_wnm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_mbo.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_rm_util.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/efuse/rtw_efuse.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_roch.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/aes-internal.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/aes-internal-enc.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/aes-gcm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/aes-ccm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/aes-omac1.o
/var/lib/dkms/rtl88x2bu/5.13.1/build/core/efuse/rtw_efuse.c: In function ‘rtw_efuse_analyze’:
/var/lib/dkms/rtl88x2bu/5.13.1/build/core/efuse/rtw_efuse.c:971:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  971 |                 if (i % 16 == 0)
      |                 ^~
In file included from /var/lib/dkms/rtl88x2bu/5.13.1/build/include/drv_types.h:60,
                 from /var/lib/dkms/rtl88x2bu/5.13.1/build/core/efuse/rtw_efuse.c:17:
/var/lib/dkms/rtl88x2bu/5.13.1/build/include/rtw_debug.h:261:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  261 |         do {\
      |         ^~
/var/lib/dkms/rtl88x2bu/5.13.1/build/core/efuse/rtw_efuse.c:973:25: note: in expansion of macro ‘_RTW_PRINT_SEL’
  973 |                         _RTW_PRINT_SEL(RTW_DBGDUMP, "%02X%s"
      |                         ^~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/ccmp.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/gcmp.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/aes-siv.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/aes-ctr.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/sha256-internal.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/sha256.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/sha256-prf.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/rtw_crypto_wrap.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_swcrypto.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/osdep_service.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/os_intfs.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/usb_intf.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/usb_ops_linux.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/ioctl_linux.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/xmit_linux.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/mlme_linux.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/recv_linux.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/ioctl_cfg80211.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/rtw_cfgvendor.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/wifi_regd.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/rtw_android.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/rtw_proc.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/nlrtw.o
/var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/recv_linux.c: In function ‘napi_recv’:
/var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/recv_linux.c:408:76: error: ‘GRO_DROP’ undeclared (first use in this function)
  408 |                         if (rtw_napi_gro_receive(&padapter->napi, pskb) != GRO_DROP)
      |                                                                            ^~~~~~~~
/var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/recv_linux.c:408:76: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [scripts/Makefile.build:271: /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/recv_linux.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_get_chbwoff_from_cfg80211_chan_def’:
/var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/ioctl_cfg80211.c:6796:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
 6796 |                 *ht = 0;
      |                 ~~~~^~~
/var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/ioctl_cfg80211.c:6798:9: note: here
 6798 |         case NL80211_CHAN_WIDTH_20:
      |         ^~~~
make[1]: *** [Makefile:1858: /var/lib/dkms/rtl88x2bu/5.13.1/build] Error 2
make[1]: Leaving directory '/usr/src/kernels/5.14.16-301.fc35.x86_64'
make: *** [Makefile:2498: modules] Error 2

(info) Make errors on rPi 3B+ 64 bit OS

My system is a raspberry pi 3b+ equipped with piCorePlayer v8.2 64 bit and a Tp-Link Archer T3U Plus wifi dongle.
The wifi dongle is not recognized out of the box, thus I ran the procedure for generating a dedicated driver for RTL8812BU chipset.
The selected kernel was 5.15.35-pcpCore-v8. Therefore I launched the following command:
make KVER=5.15.35-pcpCore-v8 -j 1

The processs ended with errors, as follows:
CC [M] /mnt/mmcblk0p2/tce/realtek-driversrc/platform/platform_ops.o
LD [M] /mnt/mmcblk0p2/tce/realtek-driversrc/88x2bu.o
MODPOST /mnt/mmcblk0p2/tce/realtek-driversrc/Module.symvers
ERROR: modpost: "__const_udelay" [/mnt/mmcblk0p2/tce/realtek-driversrc/88x2bu.ko] undefined!
ERROR: modpost: "__arch_copy_from_user" [/mnt/mmcblk0p2/tce/realtek-driversrc/88x2bu.ko] undefined!
ERROR: modpost: "gic_nonsecure_priorities" [/mnt/mmcblk0p2/tce/realtek-driversrc/88x2bu.ko] undefined!
ERROR: modpost: "cpu_hwcap_keys" [/mnt/mmcblk0p2/tce/realtek-driversrc/88x2bu.ko] undefined!
ERROR: modpost: "csum_ipv6_magic" [/mnt/mmcblk0p2/tce/realtek-driversrc/88x2bu.ko] undefined!
ERROR: modpost: "__warn_printk" [/mnt/mmcblk0p2/tce/realtek-driversrc/88x2bu.ko] undefined!
ERROR: modpost: "queued_spin_lock_slowpath" [/mnt/mmcblk0p2/tce/realtek-driversrc/88x2bu.ko] undefined!
ERROR: modpost: "arm64_const_caps_ready" [/mnt/mmcblk0p2/tce/realtek-driversrc/88x2bu.ko] undefined!
ERROR: modpost: "vabits_actual" [/mnt/mmcblk0p2/tce/realtek-driversrc/88x2bu.ko] undefined!
ERROR: modpost: "__udelay" [/mnt/mmcblk0p2/tce/realtek-driversrc/88x2bu.ko] undefined!
WARNING: modpost: suppressed 1 unresolved symbol warnings because there were too many)
make[2]: *** [scripts/Makefile.modpost:134: /mnt/mmcblk0p2/tce/realtek-driversrc/Module.symvers] Error 1
make[2]: *** Deleting file '/mnt/mmcblk0p2/tce/realtek-driversrc/Module.symvers'
make[1]: *** [Makefile:1783: modules] Error 2
make[1]: Leaving directory '/mnt/mmcblk0p2/tce/kernelsrc'
make: *** [Makefile:2499: modules] Error 2

Additional info:
sudo uname -a; mokutil --sb-state; lsusb; rfkill list all; dkms status; iw dev
Linux pCP-ES9018 5.15.35-pcpCore-v8 #1 SMP PREEMPT Tue Apr 26 23:22:33 EDT 2022 aarch64 GNU/Linux
-sh: mokutil: not found
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 005: ID 1997:2433
Bus 001 Device 003: ID 0424:2514
Bus 001 Device 002: ID 0424:2514
Bus 001 Device 004: ID 2357:0138
Bus 001 Device 006: ID 0424:7800
-sh: rfkill: not found
-sh: dkms: not found
-sh: iw: not found

The wifi dongle is Device 004.

Despite the errors, I ran the script to recompile the kernel (adding the driver for RTL8812BU). Predictably that script ended with errors as follows:
tc@pCP-ES9018:/mnt/mmcblk0p2/tce/realtek-driversrc$ pcp_make_module_extension -k 5.15.35-pcpCore-v8 -e rtl8812bu
[ INFO ] Building kernel modules extension: rtl8812bu-5.15.35-pcpCore-v8
[ INFO ] Building module for kernel version: 5.15.35-pcpCore-v8
[ INFO ] Loading Build dependancies
[ INFO ] Timestamp for driver detection: Jul 26 15:10
[ INFO ] Installing driver from /mnt/mmcblk0p2/tce/realtek-driversrc
install -p -m 644 88x2bu.ko /lib/modules/5.15.35-pcpCore-v8/kernel/drivers/net/wireless/
install: can't stat '88x2bu.ko': No such file or directory
make: *** [Makefile:2505: install] Error 1
tar: empty archive
tar: can't open '/tmp/mod.tar': No such file or directory
[ INFO ] If you see depmod warnings above, they can be ignored
[ INFO ] The contents of extension are:
Parallel unsquashfs: Using 4 processors
0 inodes (0 blocks) to write

drwxr-xr-x tc/staff 3 2022-07-26 16:02 squashfs-root
[ INFO ] The extension can be found at /tmp/rtl8812bu-5.15.35-pcpCore-v8.tcz
[ INFO ] move rtl8812bu-5.15.35-pcpCore-v8.tcz and rtl8812bu-5.15.35-pcpCore-v8.tcz.md5.txt to /mnt/mmcblk0p2/tce/optional
[ INFO ] Then edit /mnt/mmcblk0p2/tce/onboot.lst and add rtl8812bu-KERNEL.tcz to the list.

I need some help to fix errors. Thank you.

(solved) Monitor interface doesn't see any APs (see `Monitor_Mode.md` in the `/docs` folder)

Tried doing "iw phy0 interface add mon0 type monitor" then "ifconfig mon0 up".

pi@shiro:~ $ sudo aireplay-ng --test mon0
20:55:42 Trying broadcast probe requests...
20:55:44 No Answer...
20:55:44 Found 0 APs
pi@shiro:~ $ uname -a; mokutil --sb-state; lsusb; rfkill list all; dkms status; iw dev
Linux shiro 5.10.63-v7+ #1496 SMP Wed Dec 1 15:58:11 GMT 2021 armv7l GNU/Linux
EFI variables are not supported on this system
Bus 001 Device 004: ID 2357:0138 TP-Link
Bus 001 Device 005: ID 0424:7800 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
rtl88x2bu, 5.13.1: added
phy#0
Interface mon0
ifindex 7
wdev 0x4
addr 00:00:00:00:00:00
type monitor
txpower 42949572.96 dBm
Interface wlan0
ifindex 4
wdev 0x1
addr 10:27:f5:1b:5b:81
type managed
txpower 42949572.96 dBm

Device is quite sensitive to orientation

Hi, testing a BrosTrend AC1200 adapter that should have an RTL8812BU chipset.

The item appears to work with this driver, both as a USB2 and as a USB3 device. My issue is that it seems extremely sensitive to the antenna orientation. You get the orientation wrong (even by a few degrees) and immediately you get extremely erratic ping times while for another orientation the ping times are very repeatable. By erratic I mean that pinging a remote site periodically goes from the expected 100ms up to 1-2s. for 3-4 packets every 20-40 packets and then back to normal, which basically makes the connection unusable. When this happens, at times the connection breaks completely (network unreachable).

There are two weird things about this:

  • when this happens there is no actual connection drop from the access point (i.e., you get network unreachable but the adapter stays connected to the router);
  • when you get the erratic ping times, there is no sign of connection degradation in terms of "Signal strenght" reported by the adapter.

In the past I had a router doing something similar. It was meant to have a super-smart "adaptive" beamforming and noise filtering technology but the adaptive algorithm was periodically running into some crisis. Eventually, I found that it was possible to disable the adaptive behavior and with that the router behaved regularly.

Has anything like that been experienced by others with this chipset?
Are there any params controlling the beamforming or the adaptive behavior of the device?

Compile pukes on 5.18.x kernel

To deal with a graphics issue, I upgraded to kernel (& headers) 5.18.14. The '-mharden-sls=all' option has gone in as a security measure by default for 5.18.x. The compile bales out thusly: bash-5.1$ make -j6 make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.18.14/build M=/home/dec/Downloads/88x2bu-20210702 modules make[1]: Entering directory '/usr/src/linux-5.18.14' warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc (GCC) 12.1.0 You are using: gcc (GCC) 11.2.0 CC [M] /home/dec/Downloads/88x2bu-20210702/core/rtw_cmd.o CC [M] /home/dec/Downloads/88x2bu-20210702/core/rtw_security.o CC [M] /home/dec/Downloads/88x2bu-20210702/core/rtw_debug.o CC [M] /home/dec/Downloads/88x2bu-20210702/core/rtw_io.o CC [M] /home/dec/Downloads/88x2bu-20210702/core/rtw_ioctl_query.o CC [M] /home/dec/Downloads/88x2bu-20210702/core/rtw_ioctl_set.o gcc: error: unrecognized command-line option ‘-mharden-sls=all’ gcc: error: unrecognized command-line option ‘-mharden-sls=all’ make[2]: *** [scripts/Makefile.build:289: /home/dec/Downloads/88x2bu-20210702/core/rtw_io.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [scripts/Makefile.build:289: /home/dec/Downloads/88x2bu-20210702/core/rtw_ioctl_query.o] Error 1 gcc: error: unrecognized command-line option ‘-mharden-sls=all’ gcc: error: unrecognized command-line option ‘-mharden-sls=all’ make[2]: *** [scripts/Makefile.build:289: /home/dec/Downloads/88x2bu-20210702/core/rtw_cmd.o] Error 1 make[2]: *** [scripts/Makefile.build:289: /home/dec/Downloads/88x2bu-20210702/core/rtw_ioctl_set.o] Error 1 gcc: error: unrecognized command-line option ‘-mharden-sls=all’ make[2]: *** [scripts/Makefile.build:289: /home/dec/Downloads/88x2bu-20210702/core/rtw_security.o] Error 1 gcc: error: unrecognized command-line option ‘-mharden-sls=all’ make[2]: *** [scripts/Makefile.build:289: /home/dec/Downloads/88x2bu-20210702/core/rtw_debug.o] Error 1 make[1]: *** [Makefile:1838: /home/dec/Downloads/88x2bu-20210702] Error 2 make[1]: Leaving directory '/usr/src/linux-5.18.14' make: *** [Makefile:2499: modules] Error 2 bash-5.1$

I still have your module compiled for the 5.15.27 kernel, so this isn't a disasater, just a heads up.

(will not fix) ERROR (dkms apport): binary package for rtl8821au: 5.12.5.2 not found (Build fail with dkms or no_dkms)

I try so to install the driver on WSL2 Ubuntu 20.04 and get fail with auto dkms or no_dksm.sh and also install by manual but still got no luck.
$lsusb I got :

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0bda:b82c Realtek Semiconductor Corp. 802.11ac+Bluetooth 5.0 Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

then I do
$sudo modprobe btusb
and I got
$dmesg | egrep -i 'blue|btusb'

[ 2821.834001] usb 1-1: Product: 802.11ac+Bluetooth 5.0 Adapter
[ 2822.005394] Bluetooth: hci0: RTL: examining hci_ver=07 hci_rev=000b lmp_ver=07 lmp_subver=8822
[ 2822.111394] Bluetooth: hci0: RTL: rom_version status=0 version=2
[ 2822.112016] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822b_fw.bin
[ 2822.112029] bluetooth hci0: Direct firmware load for rtl_bt/rtl8822b_fw.bin failed with error -2
[ 2822.112655] Bluetooth: hci0: RTL: firmware file rtl_bt/rtl8822b_fw.bin not found

after some internet check some solution I try to manage get some driver and found there is many firmware in my folder but have no idea still got error cannot found [ 2822.112655] Bluetooth: hci0: RTL: firmware file rtl_bt/rtl8822b_fw.bin not found

$ ls /usr/lib/firmware/rtl_bt/

rtl8192ee_fw.bin rtl8723b_fw.bin rtl8723d_config.bin rtl8812ae_fw.bin rtl8821c_config.bin rtl8822b_fw.bin rtl8822cu_config.bin rtl8852au_fw.bin
rtl8192eu_fw.bin rtl8723bs_config-OBDA8723.bin rtl8723d_fw.bin rtl8821a_config.bin rtl8821c_fw.bin rtl8822cs_config.bin rtl8822cu_fw.bin
rtl8723a_fw.bin rtl8723bs_fw.bin rtl8761a_fw.bin rtl8821a_fw.bin rtl8822b_config.bin rtl8822cs_fw.bin rtl8852au_config.bin

but the bluetoothctl and hcitool dev cannot work because cannot found the bluetooth adapter.
try to remove driver and install again still cannot solve the problem.

Please check a log file below and help me fix that build error
Thanks in advance.
this is my log file:

DKMS make.log for rtl88x2bu-5.13.1 for kernel 5.10.102.1-microsoft-standard-WSL2 (x86_64)
Thu May 5 06:22:38 +07 2022
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.10.102.1-microsoft-standard-WSL2/build M=/var/lib/dkms/rtl88x2bu/5.13.1/build modules
make[1]: Entering directory '/home/johnnietien/WSL2-Linux-Kernel'
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_cmd.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_security.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_debug.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_io.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_ioctl_query.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_ioctl_set.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_ieee80211.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_mlme.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_mlme_ext.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_mi.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_wlan_util.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_vht.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_pwrctrl.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_rf.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_chplan.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/monitor/rtw_radiotap.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_recv.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_sta_mgt.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_ap.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/wds/rtw_wds.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/mesh/rtw_mesh.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/mesh/rtw_mesh_pathtbl.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/mesh/rtw_mesh_hwmp.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_xmit.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_p2p.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_rson.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_tdls.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_br_ext.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_iol.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_sreset.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_btcoex_wifionly.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_btcoex.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_beamforming.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_odm.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_rm.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_rm_fsm.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_ft.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_wnm.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_mbo.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_rm_util.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/efuse/rtw_efuse.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_roch.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/aes-internal.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/aes-internal-enc.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/aes-gcm.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/aes-ccm.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/aes-omac1.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/ccmp.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/gcmp.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/aes-siv.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/aes-ctr.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/sha256-internal.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/sha256.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/sha256-prf.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/crypto/rtw_crypto_wrap.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/core/rtw_swcrypto.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/osdep_service.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/os_intfs.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/usb_intf.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/usb_ops_linux.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/ioctl_linux.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/xmit_linux.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/mlme_linux.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/recv_linux.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/ioctl_cfg80211.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/rtw_cfgvendor.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/wifi_regd.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/rtw_android.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/rtw_proc.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/nlrtw.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/rtw_rhashtable.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/hal_intf.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/hal_com.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/hal_com_phycfg.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/hal_phy.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/hal_dm.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/hal_dm_acs.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/hal_btcoex_wifionly.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/hal_btcoex.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/hal_mp.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/hal_mcc.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/hal_hci/hal_usb.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/led/hal_led.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/led/hal_usb_led.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/rtl8822b/rtl8822b_halinit.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/rtl8822b/rtl8822b_mac.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/rtl8822b/rtl8822b_cmd.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/rtl8822b/rtl8822b_phy.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/rtl8822b/rtl8822b_ops.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/rtl8822b/hal8822b_fw.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/rtl8822b/usb/rtl8822bu_halinit.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/rtl8822b/usb/rtl8822bu_halmac.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/rtl8822b/usb/rtl8822bu_io.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/rtl8822b/usb/rtl8822bu_xmit.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/rtl8822b/usb/rtl8822bu_recv.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/rtl8822b/usb/rtl8822bu_led.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/rtl8822b/usb/rtl8822bu_ops.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/efuse/rtl8822b/HalEfuseMask8822B_USB.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/hal_halmac.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/halmac/halmac_api.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/halmac/halmac_dbg.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/halmac/halmac_88xx/halmac_bb_rf_88xx.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/halmac/halmac_88xx/halmac_cfg_wmac_88xx.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/halmac/halmac_88xx/halmac_common_88xx.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/halmac/halmac_88xx/halmac_efuse_88xx.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/halmac/halmac_88xx/halmac_flash_88xx.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/halmac/halmac_88xx/halmac_fw_88xx.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/halmac/halmac_88xx/halmac_gpio_88xx.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/halmac/halmac_88xx/halmac_init_88xx.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/halmac/halmac_88xx/halmac_mimo_88xx.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/halmac/halmac_88xx/halmac_usb_88xx.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/halmac/halmac_88xx/halmac_8822b/halmac_cfg_wmac_8822b.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/halmac/halmac_88xx/halmac_8822b/halmac_common_8822b.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/halmac/halmac_88xx/halmac_8822b/halmac_gpio_8822b.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/halmac/halmac_88xx/halmac_8822b/halmac_init_8822b.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/halmac/halmac_88xx/halmac_8822b/halmac_phy_8822b.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/halmac/halmac_88xx/halmac_8822b/halmac_pwr_seq_8822b.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/halmac/halmac_88xx/halmac_8822b/halmac_usb_8822b.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_debug.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_antdiv.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_soml.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_smt_ant.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_antdect.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_interface.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_phystatus.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_hwconfig.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_dig.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_pathdiv.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_rainfo.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_dynamictxpower.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_adaptivity.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_cfotracking.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_noisemonitor.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_beamforming.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_direct_bf.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_dfs.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/txbf/halcomtxbf.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/txbf/haltxbfinterface.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/txbf/phydm_hal_txbf_api.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_adc_sampling.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_ccx.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_psd.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_primary_cca.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_cck_pd.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_rssi_monitor.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_auto_dbg.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_math_lib.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_api.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_pow_train.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_lna_sat.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_pmac_tx_setting.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_mp.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/phydm_cck_rx_pathdiv.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/halrf/halrf.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/halrf/halrf_debug.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/halrf/halphyrf_ce.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/halrf/halrf_powertracking_ce.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/halrf/halrf_powertracking.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/halrf/halrf_kfree.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/halrf/halrf_psd.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/rtl8822b/halhwimg8822b_bb.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/rtl8822b/halhwimg8822b_mac.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/halrf/rtl8822b/halrf_8822b.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/rtl8822b/phydm_hal_api8822b.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/halrf/rtl8822b/halhwimg8822b_rf.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/halrf/rtl8822b/halrf_iqk_8822b.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/halrf/rtl8822b/halrf_rfk_init_8822b.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/rtl8822b/phydm_regconfig8822b.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/rtl8822b/phydm_rtl8822b.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/phydm/txbf/haltxbf8822b.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/btc/halbtc8822bwifionly.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/btc/halbtc8822b1ant.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/btc/halbtc8822b2ant.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/platform/platform_ops.o
LD [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.o
MODPOST /var/lib/dkms/rtl88x2bu/5.13.1/build/Module.symvers
ERROR: modpost: "cfg80211_external_auth_request" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "cfg80211_rx_mgmt_khz" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "cfg80211_mgmt_tx_status" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "__cfg80211_alloc_reply_skb" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "cfg80211_new_sta" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "cfg80211_inform_bss_frame_data" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "cfg80211_unlink_bss" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "cfg80211_connect_done" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "cfg80211_put_bss" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "cfg80211_roamed" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "cfg80211_scan_done" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "cfg80211_ibss_joined" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "cfg80211_michael_mic_failure" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "cfg80211_disconnected" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "__cfg80211_send_event_skb" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "ieee80211_freq_khz_to_channel" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "cfg80211_get_bss" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "wiphy_new_nm" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "wiphy_free" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "cfg80211_ready_on_channel" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "ieee80211_get_channel_khz" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "cfg80211_ch_switch_started_notify" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "cfg80211_ch_switch_notify" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "wiphy_unregister" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "cfg80211_del_sta_sinfo" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "cfg80211_vendor_cmd_reply" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "cfg80211_remain_on_channel_expired" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "wiphy_register" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
ERROR: modpost: "__cfg80211_alloc_event_skb" [/var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:124: /var/lib/dkms/rtl88x2bu/5.13.1/build/Module.symvers] Error 1
make[2]: *** Deleting file '/var/lib/dkms/rtl88x2bu/5.13.1/build/Module.symvers'
make[1]: *** [Makefile:1726: modules] Error 2
make[1]: Leaving directory '/home/johnnietien/WSL2-Linux-Kernel'
make: *** [Makefile:2497: modules] Error 2

(Info) Clients are dropped under heavy load in 5 GHz AP mode while USB3 is active

I am posting this issue as a place for everyone to add the information they have in an effort to fix the issue.

Bug: This appears to only happen when the driver is under heavy load in 5 GHz AP mode while USB3 is active on a RasPi4B. The AP will simply drop the client and the only way to get things going again is to reboot the AP. Testing has shown that if USB2 is active, there is no problem so this is a very specific issue.

Note: This issue is specific to Raspberry Pi 4B hardware as far as we can tell.

Is it possible to install this driver in nethunter?

Is it possible to install the driver on a phone?

I have an S20 FE 5G but whenever I plug in the wifi adapter to my phone the wrong driver shows up, 88XXau instead of 88XXBu

I tested this driver on my computer and it worked perfectly, but I don't know how to get it working on my phone

loosing AP access on distance

Hi!

I've got a very strange case here.
My setup first.
I'm using a raspberry as a wifi to wifi router. The raspberry pi 4B is connected to a wifi modem/router that doesn't support DNS settings nor DynDNS etc. As I can't access it directly, I'm using my raspberry pi and connect it to it. A USB WiFi in ap mode is connected to the raspberry pi and other devices connect to this AP. On the raspberry pi I run a pi-hole with a custom DNS setting. A iptables rule forwards the requests from the wifi ap ip address to the wifi module that is connected to the modem/router.

Now the problem:
If I'm near the hotspot, I can connect and access to the internet without any trouble. But if I'm about 10m away (WiFi strength is still good with about 80%), then I can't connect to the hotspot. It always stops at obtaining the IP address and fails there.

OS is Ubuntu Server 22.04.
My USB WiFi is EDUP EP-AC1686. It uses the RTL8812BU driver.
Driver settings:

options 88x2bu rtw_drv_log_level=0 rtw_led_ctrl=0 rtw_vht_enable=1 rtw_power_mgnt=0 rtw_switch_usb_mode=2

Hostapd settings:

interface=wlxe84e069cc6e0
driver=nl80211
ssid=myaccesspoint
hw_mode=g
channel=7
wmm_enabled=0
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=mypassword
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

Any ideas what could be the cause?

(solved) An error occurred. dkms build error = 10

Hi Nick,

I encounter this issue when trying to install the driver at step sudo ./install-driver.sh, any help please?

Here is the output error log:

Running install-driver.sh version 20211204
Starting installation...
Copying source files to: /usr/src/rtl88x2bu-5.13.1
Copying 88x2bu.conf to: /etc/modprobe.d
Creating symlink /var/lib/dkms/rtl88x2bu/5.13.1/source -> /usr/src/rtl88x2bu-5.13.1

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...(bad exit status: 2)
'make' -j2 KVER=5.14.0-kali4-amd64 KSRC=/lib/modules/5.14.0-kali4-amd64/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.14.0-kali4-amd64 (x86_64)
Consult /var/lib/dkms/rtl88x2bu/5.13.1/build/make.log for more information.
An error occurred. dkms build error = 10
Please report this error.

Here is my system information:

┌──(guest㉿KOS)-[~/Downloads/88x2bu-20210702]
└─$ sudo uname -a && lsusb && rfkill list all && dkms status && iw dev                        10 ⨯
Linux KOS 5.14.0-kali4-amd64 #1 SMP Debian 5.14.16-1kali1 (2021-11-05) x86_64 GNU/Linux
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 003 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 003 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0e0f:000b VMware, Inc. VMware Virtual USB Video Device
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 002: ID 0e0f:0008 VMware, Inc. Virtual Bluetooth Adapter
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
0: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
rtl88x2bu/5.13.1: added

and the gcc version I'm using: gcc version 11.2.0 (Debian 11.2.0-10).

make.log shows some folder that are non-exist:

┌──(guest㉿KOS)-[~/Downloads/88x2bu-20210702]
└─$ cat /var/lib/dkms/rtl88x2bu/5.13.1/build/make.log                                        130 ⨯
DKMS make.log for rtl88x2bu-5.13.1 for kernel 5.14.0-kali4-amd64 (x86_64)
Wed Dec  8 08:07:34 AM EST 2021
/bin/sh: 1: bc: not found
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.14.0-kali4-amd64/build M=/var/lib/dkms/rtl88x2bu/5.13.1/build  modules
make[1]: Entering directory '/usr/src/linux-headers-5.14.0-kali4-amd64'
Makefile:1: /usr/src/linux-headers-5.14.0-kali4-common/Makefile: No such file or directory
make[1]: *** No rule to make target '/usr/src/linux-headers-5.14.0-kali4-common/Makefile'.  Stop.
make[1]: Leaving directory '/usr/src/linux-headers-5.14.0-kali4-amd64'
make: *** [Makefile:2508: modules] Error 2

txpower and range

I have noticed some concerns regarding txpower and range. Maybe this is a topic we should explore during testing to see if we can determine if there is a problem and if so, how bad is the problem.

Let me start by saying that I have expressed concerns in other locations about the quality of many adapters that are based on the rtl8812bu and rtl8811cu chipsets. The rock bottom prices some of the adapters based on these chipsets sell for should be an indication that corners will be cut and performance can suffer. I have 4 adapters based on the 8812bu chipset. Even among this small subset of adapters, there is a large variation in quality and capability.

The best indication that we will have that there is a problem with this driver is if we see a large difference in the range with a specific adapter that is tested with this driver and then with a Windows or OSX driver. I have no systems running Windows or OSX nor do I have access to them so hopefully some of the rest of you do and can take on looking at this issue from a comparison standpoint.

The command to change txpower in this driver is:

sudo iw dev wlxb44bd623a7XX set txpower fixed 2200

The default txpower for the adapter I am testing was set to 22 dBm. I ran the power down to 15 dBm and then up to 30 dBm and watched the results on 2 separate apps that show signal strength. I saw movements that indicated the changes worked. Not all adapters will allow changes to be made as the setting may be locked or limited in firmware so it will depend on the adapter you have.

Keep in mind that our mission here is to test and get things ready for a public release, not get lost in long philosophical discussions. Can we improve the user experience with better documentation, better settings or even code changes? Let's find out.

Nick

New 88x2bu driver v5.13.1-20-gbd7c7eb9d.20210702

Request that you test and report any problems. Specific bugs should be reported by opening a new issue. Discussion can go here.

Of note: I am requesting that you follow the documentation so as to check and provide correction to the documentation. It could be easy to miss issues in the documentation if you used the prior version of this driver.

Of particular interest is AP mode operation. Hopefully AP mode is MUCH better now.

Nick

(solved) Kali Linux ARM64 Raspberry pi 4 2021.4 Re4son kernel - Addition Request

Hi,

I am trying to use this driver suite with Kali Linux ARM64 Raspberry pi 4 2021.4 which unfortunately for me and any users in similar situation - has changed to the Re4son Kernel.

What would need to be done to assist with the modification of this driver suite build / install scripts to support the Re4son kernel as part of kali-linux-2021.4-rpi-arm64.img?

For more information I am trying to setup Archer T4U Plus which may be suitable for this driver suite if the new addition can be made / assisted.

Thanks

(solved) RTW: ERROR [HALMAC][ERR]Dump efuse in suspend

I built a new kernel for the Raspberry pi 4 then built and installed the 88x2bu-20210702 driver, for a TP-Link USB Wi-Fi adapter I have never used before. It seems to work fine as a wifi interface (no AP mode, no 867 MHz, no concurrent mode, USB2). But I’m getting kernel error messages in /var/log/messages and dmesg when the driver is loaded at boot.

The adapter is a TP-Link Archer 3U Plus, connected to a USB2 hub. I know USB2 is not ideal, but it would be difficult to replace it with a USB3 hub in my existing project. I am connected to a 2.4 GHz AP so throughput should not be an issue.

Thanks in advance for any help you can offer.

——- Config & Requested Info ——-
Pi 4, 4GB Ram, Pi OS 10 ‘Buster’ with upgraded kernel 5.10.89.
System was updated before kernel & driver build with
sudo apt update && sudo apt full-upgrade
Then kernel 5.10.89 was installed from the rpi-5.10.y branch at https://github.com/raspberrypi/linux
No errors in kernel or driver build. No other non-standard drivers have been installed.

Config: contents of /etc/modprobe.d/88x2bu.conf:
options 88x2bu rtw_drv_log_level=2 rtw_led_ctrl=2 rtw_vht_enable=0 rtw_power_mgnt=0 rtw_beamform_cap=0 rtw_dfs_region_domain=1 rtw_sel_p2p_iface=1 rtw_switch_usb_mode=2

Internal wifi disabled in /boot/config.txt with:
dtoverlay=disable-wifi

gcc version:
gcc version 7.3.0 (Raspbian 7.3.0-19)

Here is the information requested in the README:

$ uname -a
Linux magic-mirror 5.10.89-v7l+ #1 SMP Mon Jan 3 20:47:31 EST 2022 armv7l GNU/Linux

$ mokutil --sb-state
EFI variables are not supported on this system

$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 005: ID 0556:0001 Asahi Kasei Microsystems Co., Ltd AK5370 I/F A/D Converter Bus 001 Device 007: ID 2357:0138 TP-Link Bus 001 Device 006: ID 046d:c52b Logitech, Inc. Unifying Receiver Bus 001 Device 004: ID 1a40:0101 Terminus Technology Inc. Hub Bus 001 Device 003: ID 041e:324d Creative Technology, Ltd Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

$ rfkill list all
0: phy0: Wireless LAN Soft blocked: no Hard blocked: no

$ dkms status
rtl88x2bu, 5.13.1, 5.10.89-v7l+, armv7l: installed

$ iw dev
phy#0 Interface wlx984827ea0ed6 ifindex 3 wdev 0x1 addr 98:48:27:ea:0e:d6 ssid xxxxxxxx type managed channel 11 (2462 MHz), width: 20 MHz, center1: 2462 MHz txpower 23.00 dBm

——— ERROR Messages ———
There are numerous instances of
[HALMAC][ERR]Dump efuse in suspend
and
[HALMAC][ALWAYS]shall R reg twice!!
in /var/log/messages at startup. This is all of the output related to RTW:
Jan 4 11:03:42 magic-mirror kernel: [ 50.211837] RTW: module init start
Jan 4 11:03:42 magic-mirror kernel: [ 50.211858] RTW: rtl88x2bu v5.13.1-20-gbd7c7eb9d.20210702_COEX20210316-18317b7b
Jan 4 11:03:42 magic-mirror kernel: [ 50.211874] RTW: rtl88x2bu BT-Coex version = COEX20210316-18317b7b
Jan 4 11:03:42 magic-mirror kernel: [ 50.212337] RTW: [HALMAC]55772M
Jan 4 11:03:42 magic-mirror kernel: [ 50.212337] HALMAC_MAJOR_VER = 1
Jan 4 11:03:42 magic-mirror kernel: [ 50.212337] HALMAC_PROTOTYPE_VER = 6
Jan 4 11:03:42 magic-mirror kernel: [ 50.212337] HALMAC_MINOR_VER = 6
Jan 4 11:03:42 magic-mirror kernel: [ 50.212337] HALMAC_PATCH_VER = 23
Jan 4 11:03:42 magic-mirror kernel: [ 50.227151] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
Jan 4 11:03:43 magic-mirror kernel: [ 50.863847] RTW: HW EFUSE
Jan 4 11:03:43 magic-mirror kernel: [ 50.863900] RTW: 0x000: 29 81 00 3C 09 00 A1 00 B6 04 64 10 00 00 A3 00
Jan 4 11:03:43 magic-mirror kernel: [ 50.864160] RTW: 0x010: 2B 2B 2C 2C 2C 2C 2A 2B 2B 2B 2B 14 00 00 FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.864415] RTW: 0x020: FF FF 26 25 24 23 20 20 21 21 23 24 26 24 24 24
Jan 4 11:03:43 magic-mirror kernel: [ 50.864669] RTW: 0x030: 13 00 FF FF 00 FF 1C 00 FF FF 2A 2B 2B 2C 2C 2C
Jan 4 11:03:43 magic-mirror kernel: [ 50.864951] RTW: 0x040: 2B 2B 2B 2B 2B 14 00 00 FF FF FF FF 25 25 25 24
Jan 4 11:03:43 magic-mirror kernel: [ 50.865254] RTW: 0x050: 21 21 21 21 22 24 26 26 26 26 13 00 FF FF 00 FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.865527] RTW: 0x060: 1C 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.865966] RTW: 0x070: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.866221] RTW: 0x080: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.866473] RTW: 0x090: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.866723] RTW: 0x0A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.866974] RTW: 0x0B0: FF FF FF FF FF FF FF FF A5 27 1D 00 FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.867224] RTW: 0x0C0: FF 01 00 11 00 00 00 00 00 FF 03 FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.867475] RTW: 0x0D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.867725] RTW: 0x0E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.867976] RTW: 0x0F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.868227] RTW: 0x100: 57 23 38 01 E1 67 02 98 48 27 EA 0E D6 09 03 52
Jan 4 11:03:43 magic-mirror kernel: [ 50.868480] RTW: 0x110: 65 61 6C 74 65 6B 0E 03 38 30 32 2E 31 31 61 63
Jan 4 11:03:43 magic-mirror kernel: [ 50.868734] RTW: 0x120: 20 4E 49 43 08 03 31 32 33 34 35 36 FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.868986] RTW: 0x130: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.869238] RTW: 0x140: 33 0A 1F 01 00 00 21 0F FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.869492] RTW: 0x150: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.869744] RTW: 0x160: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.869996] RTW: 0x170: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.870251] RTW: 0x180: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.870504] RTW: 0x190: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.870758] RTW: 0x1A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.871012] RTW: 0x1B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.871267] RTW: 0x1C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.871519] RTW: 0x1D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.871771] RTW: 0x1E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.872023] RTW: 0x1F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.872275] RTW: 0x200: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.872528] RTW: 0x210: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.872783] RTW: 0x220: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.873034] RTW: 0x230: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.873286] RTW: 0x240: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.873541] RTW: 0x250: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.873793] RTW: 0x260: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.874046] RTW: 0x270: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.874299] RTW: 0x280: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.874553] RTW: 0x290: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.874804] RTW: 0x2A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.875055] RTW: 0x2B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.875307] RTW: 0x2C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.875560] RTW: 0x2D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.875871] RTW: 0x2E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.876195] RTW: 0x2F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.876538] RTW: hal_com_config_channel_plan chplan:0x25
Jan 4 11:03:43 magic-mirror kernel: [ 50.892863] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
Jan 4 11:03:43 magic-mirror kernel: [ 50.915602] RTW: [HALMAC][ALWAYS]shall R reg twice!!
Jan 4 11:03:43 magic-mirror udisksd[387]: Acquired the name org.freedesktop.UDisks2 on the system message bus
Jan 4 11:03:43 magic-mirror kernel: [ 51.045469] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
Jan 4 11:03:43 magic-mirror kernel: [ 51.045727] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
Jan 4 11:03:43 magic-mirror kernel: [ 51.046061] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
Jan 4 11:03:43 magic-mirror kernel: [ 51.046334] RTW: [RF_PATH] ver_id.RF_TYPE:RF_2T2R
Jan 4 11:03:43 magic-mirror kernel: [ 51.046353] RTW: [RF_PATH] HALSPEC's rf_reg_trx_path_bmp:0x33, rf_reg_path_avail_num:2, max_tx_cnt:2
Jan 4 11:03:43 magic-mirror kernel: [ 51.046371] RTW: [RF_PATH] PG's trx_path_bmp:0x00, max_tx_cnt:0
Jan 4 11:03:43 magic-mirror kernel: [ 51.046388] RTW: [RF_PATH] Registry's trx_path_bmp:0x00, tx_path_lmt:0, rx_path_lmt:0
Jan 4 11:03:43 magic-mirror kernel: [ 51.046405] RTW: [RF_PATH] HALDATA's trx_path_bmp:0x33, max_tx_cnt:2
Jan 4 11:03:43 magic-mirror kernel: [ 51.046421] RTW: [RF_PATH] HALDATA's rf_type:RF_2T2R, NumTotalRFPath:2
Jan 4 11:03:43 magic-mirror kernel: [ 51.046438] RTW: [TRX_Nss] HALSPEC - tx_nss:2, rx_nss:2
Jan 4 11:03:43 magic-mirror kernel: [ 51.046454] RTW: [TRX_Nss] Registry - tx_nss:0, rx_nss:0
Jan 4 11:03:43 magic-mirror kernel: [ 51.046469] RTW: [TRX_Nss] HALDATA - tx_nss:2, rx_nss:2
Jan 4 11:03:43 magic-mirror kernel: [ 51.046488] RTW: txpath=0x3, rxpath=0x3
Jan 4 11:03:43 magic-mirror kernel: [ 51.046506] RTW: txpath_1ss:0x1, num:1
Jan 4 11:03:43 magic-mirror kernel: [ 51.046522] RTW: txpath_2ss:0x3, num:2
Jan 4 11:03:43 magic-mirror kernel: [ 51.048164] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
Jan 4 11:03:43 magic-mirror kernel: [ 51.050290] RTW: rtw_ndev_init(wlan0) if1 mac_addr=98:48:27:ea:0e:d6
Jan 4 11:03:43 magic-mirror kernel: [ 51.052850] usbcore: registered new interface driver rtl88x2bu
Jan 4 11:03:43 magic-mirror kernel: [ 51.052873] RTW: module init ret=0
Jan 4 11:03:43 magic-mirror mtp-probe: checking bus 1, device 7: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2/1-1.2.3"
Jan 4 11:03:43 magic-mirror mtp-probe: bus: 1, device: 7 was not an MTP device
Jan 4 11:03:43 magic-mirror kernel: [ 51.119655] rtl88x2bu 1-1.2.3:1.0 wlx984827ea0ed6: renamed from wlan0
Jan 4 11:03:43 magic-mirror kernel: [ 51.454094] RTW: [HALMAC][ALWAYS]shall R reg twice!!
Jan 4 11:03:44 magic-mirror kernel: [ 52.510207] start_addr=(0x20000), end_addr=(0x40000), buffer_size=(0x20000), smp_number_max=(16384)
Jan 4 11:03:44 magic-mirror kernel: [ 52.541755] IPv6: ADDRCONF(NETDEV_CHANGE): wlx984827ea0ed6: link becomes ready
Jan 4 11:03:49 magic-mirror kernel: [ 57.042693] RTW: rtw_set_802_11_connect(wlx984827ea0ed6) fw_state=0x00000008
Jan 4 11:03:49 magic-mirror kernel: [ 57.204203] RTW: start auth
Jan 4 11:03:49 magic-mirror kernel: [ 57.209342] RTW: auth success, start assoc
Jan 4 11:03:49 magic-mirror kernel: [ 57.220243] RTW: assoc success
Jan 4 11:03:49 magic-mirror kernel: [ 57.222835] RTW: ============ STA [98:da:c4:7c:df:e0] ===================
Jan 4 11:03:49 magic-mirror kernel: [ 57.222855] RTW: mac_id : 0
Jan 4 11:03:49 magic-mirror kernel: [ 57.222870] RTW: wireless_mode : 0x0b
Jan 4 11:03:49 magic-mirror kernel: [ 57.222886] RTW: mimo_type : 2
Jan 4 11:03:49 magic-mirror kernel: [ 57.222901] RTW: static smps : N
Jan 4 11:03:49 magic-mirror kernel: [ 57.222919] RTW: bw_mode : 20MHz, ra_bw_mode : 20MHz
Jan 4 11:03:49 magic-mirror kernel: [ 57.222936] RTW: rate_id : 2
Jan 4 11:03:49 magic-mirror kernel: [ 57.222952] RTW: rssi : -1 (%), rssi_level : 0
Jan 4 11:03:49 magic-mirror kernel: [ 57.222968] RTW: is_support_sgi : Y, is_vht_enable : N
Jan 4 11:03:49 magic-mirror kernel: [ 57.222985] RTW: disable_ra : N, disable_pt : N
Jan 4 11:03:49 magic-mirror kernel: [ 57.223000] RTW: is_noisy : N
Jan 4 11:03:49 magic-mirror kernel: [ 57.223015] RTW: txrx_state : 0
Jan 4 11:03:49 magic-mirror kernel: [ 57.223032] RTW: curr_tx_rate : CCK_1M (L)
Jan 4 11:03:49 magic-mirror kernel: [ 57.223047] RTW: curr_tx_bw : 20MHz
Jan 4 11:03:49 magic-mirror kernel: [ 57.223062] RTW: curr_retry_ratio : 0
Jan 4 11:03:49 magic-mirror kernel: [ 57.223078] RTW: ra_mask : 0x000000000fffffff
Jan 4 11:03:49 magic-mirror kernel: [ 57.223078]
Jan 4 11:03:49 magic-mirror kernel: [ 57.223270] RTW: recv eapol packet 1/4
Jan 4 11:03:49 magic-mirror kernel: [ 57.225426] RTW: send eapol packet 2/4
Jan 4 11:03:49 magic-mirror kernel: [ 57.233492] RTW: recv eapol packet 3/4
Jan 4 11:03:49 magic-mirror kernel: [ 57.234239] RTW: send eapol packet 4/4
Jan 4 11:03:49 magic-mirror kernel: [ 57.234619] RTW: set pairwise key camid:0, addr:98:da:c4:7c:df:e0, kid:0, type:AES
Jan 4 11:03:49 magic-mirror kernel: [ 57.237709] RTW: set group key camid:1, addr:98:da:c4:7c:df:e0, kid:1, type:AES

——— dmesg ERROR Output ———
[ 49.951868] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[ 49.952929] bcmgenet fd580000.ethernet eth0: Link is Down
[ 50.017841] 88x2bu: loading out-of-tree module taints kernel.
[ 50.208297] 88x2bu: unknown parameter 'rtw_sel_p2p_iface' ignored
[ 50.211837] RTW: module init start
[ 50.211858] RTW: rtl88x2bu v5.13.1-20-gbd7c7eb9d.20210702_COEX20210316-18317b7b
[ 50.211874] RTW: rtl88x2bu BT-Coex version = COEX20210316-18317b7b
[ 50.212337] RTW: [HALMAC]55772M
HALMAC_MAJOR_VER = 1
HALMAC_PROTOTYPE_VER = 6
HALMAC_MINOR_VER = 6
HALMAC_PATCH_VER = 23
[ 50.227151] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 50.863847] RTW: HW EFUSE
[ 50.863900] RTW: 0x000: 29 81 00 3C 09 00 A1 00 B6 04 64 10 00 00 A3 00
[ 50.864160] RTW: 0x010: 2B 2B 2C 2C 2C 2C 2A 2B 2B 2B 2B 14 00 00 FF FF
[ 50.864415] RTW: 0x020: FF FF 26 25 24 23 20 20 21 21 23 24 26 24 24 24
[ 50.864669] RTW: 0x030: 13 00 FF FF 00 FF 1C 00 FF FF 2A 2B 2B 2C 2C 2C
[ 50.864951] RTW: 0x040: 2B 2B 2B 2B 2B 14 00 00 FF FF FF FF 25 25 25 24
[ 50.865254] RTW: 0x050: 21 21 21 21 22 24 26 26 26 26 13 00 FF FF 00 FF
[ 50.865527] RTW: 0x060: 1C 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.865966] RTW: 0x070: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.866221] RTW: 0x080: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.866473] RTW: 0x090: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.866723] RTW: 0x0A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.866974] RTW: 0x0B0: FF FF FF FF FF FF FF FF A5 27 1D 00 FF FF FF FF
[ 50.867224] RTW: 0x0C0: FF 01 00 11 00 00 00 00 00 FF 03 FF FF FF FF FF
[ 50.867475] RTW: 0x0D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.867725] RTW: 0x0E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.867976] RTW: 0x0F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.868227] RTW: 0x100: 57 23 38 01 E1 67 02 98 48 27 EA 0E D6 09 03 52
[ 50.868480] RTW: 0x110: 65 61 6C 74 65 6B 0E 03 38 30 32 2E 31 31 61 63
[ 50.868734] RTW: 0x120: 20 4E 49 43 08 03 31 32 33 34 35 36 FF FF FF FF
[ 50.868986] RTW: 0x130: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.869238] RTW: 0x140: 33 0A 1F 01 00 00 21 0F FF FF FF FF FF FF FF FF
[ 50.869492] RTW: 0x150: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.869744] RTW: 0x160: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.869996] RTW: 0x170: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.870251] RTW: 0x180: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.870504] RTW: 0x190: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.870758] RTW: 0x1A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.871012] RTW: 0x1B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.871267] RTW: 0x1C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.871519] RTW: 0x1D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.871771] RTW: 0x1E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.872023] RTW: 0x1F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.872275] RTW: 0x200: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.872528] RTW: 0x210: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.872783] RTW: 0x220: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.873034] RTW: 0x230: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.873286] RTW: 0x240: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.873541] RTW: 0x250: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.873793] RTW: 0x260: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.874046] RTW: 0x270: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.874299] RTW: 0x280: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.874553] RTW: 0x290: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.874804] RTW: 0x2A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.875055] RTW: 0x2B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.875307] RTW: 0x2C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.875560] RTW: 0x2D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.875871] RTW: 0x2E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.876195] RTW: 0x2F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.876538] RTW: hal_com_config_channel_plan chplan:0x25
[ 50.892863] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 50.915602] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[ 51.045469] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 51.045727] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 51.046061] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 51.046334] RTW: [RF_PATH] ver_id.RF_TYPE:RF_2T2R
[ 51.046353] RTW: [RF_PATH] HALSPEC's rf_reg_trx_path_bmp:0x33, rf_reg_path_avail_num:2, max_tx_cnt:2
[ 51.046371] RTW: [RF_PATH] PG's trx_path_bmp:0x00, max_tx_cnt:0
[ 51.046388] RTW: [RF_PATH] Registry's trx_path_bmp:0x00, tx_path_lmt:0, rx_path_lmt:0
[ 51.046405] RTW: [RF_PATH] HALDATA's trx_path_bmp:0x33, max_tx_cnt:2
[ 51.046421] RTW: [RF_PATH] HALDATA's rf_type:RF_2T2R, NumTotalRFPath:2
[ 51.046438] RTW: [TRX_Nss] HALSPEC - tx_nss:2, rx_nss:2
[ 51.046454] RTW: [TRX_Nss] Registry - tx_nss:0, rx_nss:0
[ 51.046469] RTW: [TRX_Nss] HALDATA - tx_nss:2, rx_nss:2
[ 51.046488] RTW: txpath=0x3, rxpath=0x3
[ 51.046506] RTW: txpath_1ss:0x1, num:1
[ 51.046522] RTW: txpath_2ss:0x3, num:2
[ 51.048164] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[ 51.050290] RTW: rtw_ndev_init(wlan0) if1 mac_addr=98:48:27:ea:0e:d6
[ 51.052850] usbcore: registered new interface driver rtl88x2bu
[ 51.052873] RTW: module init ret=0
[ 51.119655] rtl88x2bu 1-1.2.3:1.0 wlx984827ea0ed6: renamed from wlan0
[ 51.454094] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[ 52.510207] start_addr=(0x20000), end_addr=(0x40000), buffer_size=(0x20000), smp_number_max=(16384)
[ 52.541755] IPv6: ADDRCONF(NETDEV_CHANGE): wlx984827ea0ed6: link becomes ready
[ 57.042693] RTW: rtw_set_802_11_connect(wlx984827ea0ed6) fw_state=0x00000008
[ 57.204203] RTW: start auth
[ 57.209342] RTW: auth success, start assoc
[ 57.220243] RTW: assoc success
[ 57.222835] RTW: ============ STA [98:da:c4:7c:df:e0] ===================
[ 57.222855] RTW: mac_id : 0
[ 57.222870] RTW: wireless_mode : 0x0b
[ 57.222886] RTW: mimo_type : 2
[ 57.222901] RTW: static smps : N
[ 57.222919] RTW: bw_mode : 20MHz, ra_bw_mode : 20MHz
[ 57.222936] RTW: rate_id : 2
[ 57.222952] RTW: rssi : -1 (%), rssi_level : 0
[ 57.222968] RTW: is_support_sgi : Y, is_vht_enable : N
[ 57.222985] RTW: disable_ra : N, disable_pt : N
[ 57.223000] RTW: is_noisy : N
[ 57.223015] RTW: txrx_state : 0
[ 57.223032] RTW: curr_tx_rate : CCK_1M (L)
[ 57.223047] RTW: curr_tx_bw : 20MHz
[ 57.223062] RTW: curr_retry_ratio : 0
[ 57.223078] RTW: ra_mask : 0x000000000fffffff

[ 57.223270] RTW: recv eapol packet 1/4
[ 57.225426] RTW: send eapol packet 2/4
[ 57.233492] RTW: recv eapol packet 3/4
[ 57.234239] RTW: send eapol packet 4/4
[ 57.234619] RTW: set pairwise key camid:0, addr:98:da:c4:7c:df:e0, kid:0, type:AES
[ 57.237709] RTW: set group key camid:1, addr:98:da:c4:7c:df:e0, kid:1, type:AES
[ 67.024755] broken atomic modeset userspace detected, disabling atomic
[ 70.699163] fuse: init (API version 7.32)

(solved) recent changes set default regd source from OS | bricked Hostapd

Your default reg Stuff in Autoconf blocked Hostapd to come up ....

LOG

/usr/local/bin/hostapd /etc/hostapd/config.conf
wlan1: interface state UNINITIALIZED->COUNTRY_UPDATE
Frequency 5180 (primary) not allowed for AP mode, flags: 0x853 NO-IR
Primary frequency not allowed
wlan1: IEEE 802.11 Configured channel (36) or frequency (5180) (secondary_channel=1) not found from the channel list of the current mode (2) IEEE 802.11a
wlan1: IEEE 802.11 Hardware does not support configured channel
Could not select hw_mode and channel. (-3)
wlan1: interface state COUNTRY_UPDATE->DISABLED
wlan1: AP-DISABLED
wlan1: interface state DISABLED->DISABLED
wlan1: AP-DISABLED
wlan1: CTRL-EVENT-TERMINATING
hostapd_free_hapd_data: Interface wlan1 wasn't started
nl80211: deinit ifname=wlan1 disabled_11b_rates=0

Hostapd Conf

interface=wlan1
bridge=br0
driver=nl80211
ctrl_interface=/var/run/hostapd_5GHz
ssid=*******
utf8_ssid=1
ignore_broadcast_ssid=0
beacon_int=100
ap_isolate=1
country_code=DE

# N
ieee80211n=1
require_ht=1
ht_capab=[LDPC][HT40+][HT40-][SHORT-GI-20][SHORT-GI-40][MAX-AMSDU-7935]

# 5.0 GHz settings
hw_mode=a
channel=36

require_vht=0
vht_oper_chwidth=1
vht_capab=[MAX-AMSDU-3839][SHORT-GI-80]
vht_oper_centr_freq_seg0_idx=42
#he_su_beamformer=1
#he_su_beamformee=1
#he_mu_beamformer=1

wme_enabled=1
wmm_enabled=1

##### IEEE 802.11n related configuration #####
ieee80211ac=1
ieee80211ax=1
ieee80211d=0
ieee80211h=0
ieee8021x=0

Workaround

Removed Line 18 from autoconf and recompile -> fixed my Issue

Info

  • Device: Raspberry Pi 4
  • OS: Raspbian SID aka Bookworm under x86
  • Kernel: 5.15.40-v7l
  • Hostapd: Branch master selfcompiled

(solved) How to build with Clang / LLVM?

Hello,

I am using a kernel built with Clang / LLVM.

Wi-Fi driver installation failed because of compiler option for Clang
so I would like to build the driver with Clang / LLVM.
However I couldn't find how to.

Could I use Clang / LLVM?

Thank you in advance.

error when install

Error:

Running install-driver.sh version 20220705
5.18.0-kali5-amd64
x86_64
Starting installation...
Copying source files to: /usr/src/rtl88x2bu-5.13.1
Copying 88x2bu.conf to: /etc/modprobe.d
Creating symlink /var/lib/dkms/rtl88x2bu/5.13.1/source -> /usr/src/rtl88x2bu-5.13.1

Building module:
cleaning build area...
'make' -j4 KVER=5.18.0-kali5-amd64 KSRC=/lib/modules/5.18.0-kali5-amd64/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.18.0-kali5-amd64 (x86_64)
Consult /var/lib/dkms/rtl88x2bu/5.13.1/build/make.log for more information.
An error occurred. dkms build error = 10
Please report this error.
You will need to run the following before reattempting installation.
$ sudo ./remove-driver.sh

Result for: sudo uname -a; mokutil --sb-state; lsusb; rfkill list all; dkms status; iw dev

┌──(kali㉿kali)-[~/src/88x2bu-20210702]
└─$ sudo uname -a; mokutil --sb-state; lsusb; rfkill list all; dkms status; iw dev
Linux kali 5.18.0-kali5-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.5-1kali5 (2022-07-04) x86_64 GNU/Linux
EFI variables are not supported on this system
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 004: ID 0e0f:0008 VMware, Inc. Virtual Bluetooth Adapter
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
0: hci0: Bluetooth
        Soft blocked: yes
        Hard blocked: no
rtl88x2bu/5.13.1: added

I have to enter the password again on every system startup, otherwise it won't connect

I use Gembird WNP-UA1300-02, it's a RTL8812BU chipset USB 3.0 wifi adapter. On every startup the connection to wifi network takes up to 10 minutes and fails at the end, so I have to forget the network, enter the password again and then it connects in a few seconds.

Here is my 88x2bu.conf:
options 88x2bu rtw_drv_log_level=0 rtw_led_ctrl=1 rtw_vht_enable=1 rtw_power_mgnt=0 rtw_switch_usb_mode=0

I set rtw_power_mgn to 0, that improved connection stability and now I am able to just unplug the adapter and plug it to another usb port, with power saving adapter was not starting up after replug to different port.

Info about my system Linux 5.13.0-40-generic #45~20.04.1-Ubuntu SMP Mon Apr 4 09:38:31 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.