Linux Driver for USB WiFi Adapters that are based on the RTL8812BU and RTL8822BU Chipsets

Overview
Click for USB WiFi Adapter Information for Linux

88x2bu ( 88x2bu.ko ) πŸš€

Linux Driver for USB WiFi Adapters that are based on the RTL8812BU and RTL8822BU Chipsets

  • v5.13.1 (Realtek) (20210702)
  • Plus updates from the Linux community

Features

  • IEEE 802.11 b/g/n/ac WiFi compliant
  • 802.1x, WEP, WPA TKIP and WPA2 AES/Mixed mode for PSK and TLS (Radius)
  • WPA3 (see note in FAQ)
  • IEEE 802.11b/g/n/ac Client mode
    • Supports wireless security for WEP, WPA TKIP and WPA2 AES PSK
    • Supports site survey scan and manual connect
  • Power saving modes
  • hostapd compatible
  • AP mode DFS support
  • Supported interface modes
    • IBSS
    • Managed
    • AP (see Bridged_Wireless_Access_Point.md)
    • P2P-client
    • P2P-GO
  • Log level control
  • LED control
  • Power saving control
  • VHT control (allows 80 MHz channel width in AP mode)
  • SU Beamformee and MU Beamformee control
  • SU Beamformer control
  • AP mode DFS Channel control
  • USB mode control

A FAQ is available at the end of this document.

Problem Reporting

Problem reports go in Issues.

Problem reports should include the information obtained with the following command:

$ sudo uname -a && mokutil --sb-state && lsusb && rfkill list all && dkms status && iw dev

Compatible CPUs

  • x86, amd64
  • ARM, ARM64

Compatible Kernels

  • Kernels: 3.8 - 5.11 (Realtek)
  • Kernels: 5.12 - 5.15 (community support)

Tested Linux Distributions

  • Arch Linux (kernels 5.4 and 5.11)

  • Fedora (kernel 5.11)

  • Debian 11 (kernels 5.10 and 5.15)

  • Linux Mint 20.2 (Linux Mint based on Ubuntu) (kernels 5.4 and 5.11)

  • LMDE 4 (Linux Mint based on Debian) (kernel 4.19)

  • Manjaro 20.1 (kernel 5.9) and 21.1 (kernel 5.13)

  • Raspberry Pi OS (2021-05-07) (ARM 32 bit) (kernel 5.10)

  • Raspberry Pi Desktop (x86 32 bit) (kernel 4.19)

  • RHEL 8.4 (kernel 4.18.0)

  • Ubuntu 20.xx (kernels 5.4 and 5.8) and 21.xx (kernels 5.11 and 5.14)

Download Locations for Tested Linux Distributions

Tested Hardware

Compatible Devices

  • ASUS AC1300 USB-AC55 B1
  • ASUS AC53 Nano
  • ASUS U2
  • Cudy WU1400
  • Edimax EW-7822ULC
  • Edimax EW-7822UTC
  • EDUP EP-AC1605GS
  • FIDECO 6B21-AC1200M
  • Linksys WUSB6300 V2
  • NetGear A6150
  • TRENDnet TEW-808UBM
  • Numerous additional products that are based on the supported chipsets

Note: Please read "supported-device-IDs" for information about how to confirm the correct driver for your adapter.

Installation Information

The installation instructions are for the novice user. Experienced users are welcome to alter the installation to meet their needs.

Temporary internet access is required for installation. There are numerous ways to enable temporary internet access depending on your hardware and situation. One method is to use tethering from a phone. Another method to enable temporary internet access is to keep a WiFi adapter that uses an in-kernel driver in your toolkit.

You will need to use the terminal interface. The quick way to open a terminal: Ctrl+Alt+T (hold down on the Ctrl and Alt keys then press the T key).

An alternative terminal is to use SSH (Secure Shell) from the same or from another computer, in which case you will be in a suitable terminal after logging in, but this step requires that an SSH daemon/server has already been configured. (There are lots of SSH guides available, e.g., for the Raspberry Pi and for Ubuntu. Do not forget to secure the SSH server.)

You will need to have sufficient access rights to use sudo, so that arbitrary commands can be executed as the root user. (If the command sudo echo Yes returns "Yes", with or without having to enter your password, you do have sufficient access rights.)

DKMS is used for the installation. DKMS is a system utility which will automatically recompile and install this driver when a new kernel is installed. DKMS is provided by and maintained by Dell.

It is recommended that you do not delete the driver directory after installation as the directory contains information and scripts that you may need in the future.

There is no need to disable Secure Mode to install this driver. If Secure Mode is properly setup on your system, this installation will support it.

Installation Steps

Step 1: Open a terminal (e.g. Ctrl+Alt+T)

Step 2: Update the system package information (select the option for the OS you are using)

  • Option for Debian based distributions such as Ubuntu, Linux Mint, and Raspberry Pi OS
sudo apt update
  • Option for Arch based distributions such as Manjaro
sudo pacman -Syu
  • Option for Fedora based distributions
sudo dnf -y update

Note: If you do not regularly maintain your system by installing updated packages, it is a good idea to not only update system package information but also to install the updated packages followed by a system reboot. The installation can then be continued with step 3.

Step 3: Install the required packages (select the option for the OS you are using)

  • Option for Raspberry Pi OS
sudo apt install -y raspberrypi-kernel-headers bc build-essential dkms git
  • Option for Debian and Linux Mint Debian Edition (LMDE)
sudo apt install -y linux-headers-$(uname -r) build-essential dkms git libelf-dev
  • Option for Ubuntu (all flavors) and Linux Mint
sudo apt install -y dkms git build-essential
  • Option for Fedora
sudo dnf -y install git dkms kernel-devel kernel-debug-devel
  • Options for Arch and Manjaro

if using pacman

sudo pacman -S --noconfirm linux-headers dkms git

Note: If you are asked to choose a provider, make sure to choose the one that corresponds to your version of the linux kernel (for example, "linux510-headers" for Linux kernel version 5.10). If you install the incorrect version, you'll have to uninstall it and reinstall the correct version.

If using other methods, please follow the instructions provided by those methods.

Step 4: Create a directory to hold the downloaded driver

mkdir -p ~/src

Step 5: Move to the newly created directory

cd ~/src

Step 6: Download the driver

git clone https://github.com/morrownr/88x2bu-20210702.git

Step 7: Move to the newly created driver directory

cd ~/src/88x2bu-20210702

Step 8: This step is only for Raspberry Pi systems

Warning: This step only applies if you are installing to Raspberry Pi hardware. You should skip this step if installing to x86 or amd64 based systems.

Run a preparation script

  • Option for 32 bit operating systems to be installed to Raspberry Pi hardware
./raspi32.sh
  • Option for 64 bit operating systems to be installed to Raspberry Pi hardware
./raspi64.sh

Note: Other ARM or ARM64 based systems will require modifications similar to those provided in the above scripts for Raspberry Pi hardware but the number and variety of different ARM and ARM64 based systems makes supporting each system unpractical so you will need to research the needs of your system and make the appropriate modifications.

Step 9: Run the installation script (For automated builds, use NoPrompt as an option)

sudo ./install-driver.sh

Note: If you elect to skip the reboot at the end of the installation script, the driver may not be loaded immediately and the driver options will not be applied. Rebooting is strongly recommended.

Driver Options

A file called 88x2bu.conf will be installed in /etc/modprobe.d by default.

Note: Step 9 of the installation instructions will prompt you to edit the options before rebooting.

Location: /etc/modprobe.d/88x2bu.conf

This file will be read and applied to the driver on each system boot.

To edit the driver options file, run the edit-options.sh script

sudo ./edit-options.sh

Note: Documentation for Driver Options is included in the file 88x2bu.conf.

Removal of the Driver

Note: This script should be used in the following situations:

  • the driver is no longer needed
  • a fresh start with default settings is needed
  • a new version of the driver needs to be installed
  • a major operating system upgrade is going to be applied

Note: This script removes everything that has been installed, with the exception of the packages installed in Step 3 and the driver directory. The driver directory can and probably should be deleted in most cases after running the script.

Step 1: Open a terminal (e.g. Ctrl+Alt+T)

Step 2: Move to the driver directory

cd ~/src/88x2bu-20210702

Step 3: Run the removal script

sudo ./remove-driver.sh

Recommended WiFi Router/ Access Point Settings

Note: These are general recommendations, some of which may not apply to your specific situation.

  • Security: Set WPA2-AES. Do not set WPA2 mixed mode or WPA or TKIP.

  • Channel width for 2.4 GHz: Set 20 MHz fixed width. Do not use 40 MHz or 20/40 automatic.

  • Channels for 2.4 GHz: Set channel 1 or 6 or 11 depending on the congestion at your location. Do not set automatic channel selection. As time passes, if you notice poor performance, recheck congestion and set channel appropriately. The environment around you can and does change over time.

  • Mode for 2.4 GHz: For best performance, set "N only" if you no longer use B or G capable devices.

  • Network names: Do not set the 2.4 GHz Network and the 5 GHz Network to the same name. Note: Unfortunately many routers come with both networks set to the same name. You need to be able to control which network that is in use.

  • Channels for 5 GHz: Not all devices are capable of using DFS channels (I'm looking at you Roku.) It may be necessary to set a fixed channel in the range of 36 to 48 or 149 to 161 in order for all of your devices to work on 5 GHz. (For US, other countries may vary.)

  • Best location for the WiFi router/access point: Near center of apartment or house, at least a couple of feet away from walls, in an elevated location. You may have to test to see what the best location is in your environment.

  • Check congestion: There are apps available for smart phones that allow you to check the congestion levels on WiFi channels. The apps generally go by the name of WiFi Analyzer or something similar.

After making and saving changes, reboot the router.

Set regulatory domain to correct setting in OS

Check the current setting

sudo iw reg get

If you get 00, that is the default and may not provide optimal performance.

Find the correct setting here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

Set it temporarily

sudo iw reg set US

Note: Substitute your country code if you are not in the United States.

Set it permanently

sudo nano /etc/default/crda

Change the last line to read:

REGDOMAIN=US

Recommendations regarding USB

  • Moving your USB WiFi adapter to a different USB port has been known to fix a variety of problems.

  • If connecting your USB WiFi adapter to a desktop computer, use the USB ports on the rear of the computer. Why? The ports on the rear are directly connected to the motherboard which will reduce problems with interference and disconnection.

  • If your USB WiFi adapter is USB 3 capable and you want it to operate in USB3 mode, plug it into a USB 3 port.

  • Avoid USB 3.1 Gen 2 ports if possible as almost all currently available adapters have been tested with USB 3.1 Gen 1 (aka USB 3) and not with USB 3.1 Gen 2.

  • If you use an extension cable and your adapter is USB 3 capable, the cable needs to be USB 3 capable (if not, you will at best be limited to USB 2 speeds).

  • Some USB WiFi adapters require considerable electrical current and push the capabilities of the power available via USB port. One example is adapters that use the Realtek 8814au chipset. Using a powered multiport USB extension can be a good idea in cases like this.

How to disable onboard WiFi on Raspberry Pi 3B, 3B+, 3A+, 4B and Zero W

Add the following line to /boot/config.txt

dtoverlay=disable-wifi

How to disable WiFi on most systems

The rfkill utility can disable WiFi and Bluetooth (internal or external) on several systems, including but not limited to the Raspberry Pi.

How to forget a saved WiFi network on a Raspberry Pi

Step 1: Edit wpa_supplicant.conf

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

Step 2: Delete the relevant WiFi network block (including the 'network=' and opening/closing braces.

Step 3: Press ctrl-x followed by 'y' and enter to save the file.

Step 4: Reboot


FAQ:

Question: Is WPA3 supported?

Answer: WPA3-SAE support is in this driver, however, for it to work with current Linux distros, you will need to download, compile and install the current master of wpa_supplicant at the following site:

https://w1.fi/cgit/

If there is interest, I will consider making and posting a guide. I am very busy so if anyone is interested in making a guide/checklist.

Question: What interface combinations does this driver support?

Answer: None. Realtek out-of-kernel drivers, including this driver, do not support interface combinations. If you need support for interface combinations, I suggest adapters based on the Mediatek chipsets.

Question: What extended features does this driver support?

Answer: None. For extended features, you need an adapter that uses Mediatek or Atheros drivers.

Question: I bought two rtl8812bu based adapters and am planning to run one of them as an AP and another as a WiFi client. How do I set that up?

Answer: You can't without considerable technical skills. Realtek drivers do not support more than one adapter with the same chipset in the same computer. However, testing has shown that the Mediatek drivers do support more than one adapter with the same chipset in the same computer.

Question: Why do you recommend Mediatek based adapters when you maintain this repo for a Realtek driver?

Answer: Many new Linux users already have adapters based on Realtek chipsets. This repo is for Linux users to support their existing adapters but my STRONG recommendation is for Linux users to seek out WiFi solutions based on Mediatek, Intel or Atheros chipsets and drivers. If users are looking at a USB solution, Mediatek and Atheros based adapters are the best solution. Realtek based USB adapters are not a good solution because Realtek does not follow Linux Wireless standards (mac80211) for USB WiFi adapters and the drivers are not maintained in the Linux kernel. These issues make Realtek drivers problematic in many ways. You have been WARNED. For more information about USB WiFi adapters:

https://github.com/morrownr/USB-WiFi


Comments
  • (on hold) Limited Connectivity on 5Ghz

    (on hold) Limited Connectivity on 5Ghz

    I am using the driver with an EDUP 1300AC dongle and OpenSuse Tumbleweed. 2.4Ghz works great, but 5Ghz has issues. The most common symptom is that NetworkManager says 'limited connectivity.' Sometimes it says 'full connectivity,' but then it takes forever to render a web page - rendering the web page may fail and it will go back to limited connectivity. Once, after resetting the router, 5Ghz worked great for a couple of days, getting the kind of speed I expect, but then it went back to limited connectivity. I reset the router again, thinking it would bring the 5Ghz back, but but after running one successful speed test, it went back to limited connectivity. This is a dual boot system and 5Ghz seems to have no issues on Windows 10.

    I am happy to do more diagnosis myself if I can get some tips on things I should try.

    opened by rmjantz 26
  • disconnect on openwrt

    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 !

    opened by Boos4721 25
  • wlan0: CTRL-EVENT-SCAN-FAILED ret=-1

    wlan0: CTRL-EVENT-SCAN-FAILED ret=-1

    Greetings. I have been facing odd issues as of late with my TP-LINK Archer T3U; WiFi would randomly cut off, stutter throughout the day, and behave weird as a whole. While looking in confusion into the systemd logs, i found that wpa_supplicant spams the error message mentioned in the title. NetworkManager says the following:

    platform-linux: do-change-link[3]: failure changing link: failure 1 (Operation not permitted) device (wlan0): set-hw-addr: failed to set MAC address to ((blank)) (scanning) (NME_UNSPEC) device (wlan0): supplicant ninterface state: disconnected - inactive

    I installed the driver without modifying any settings later on or while having installed said driver. Is there a fix for this issue? Thank you.

    PS: disabling random MAC address configurations did not help.

    opened by MephresGH 16
  • New 88x2bu driver v5.13.1-20-gbd7c7eb9d.20210702

    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

    opened by morrownr 16
  • (solved) 2 new devices after install (this is normal if you run cmode-on.sh during installation)

    (solved) 2 new devices after install (this is normal if you run cmode-on.sh during installation)

    Hi,

    i am using a RaspberryPi 4B and a USB-Wifi Adapter with RTL8822bu chipset. After installing the driver, there are two new devices showing up (wlan1 and wlan2).

    How can I remove that wifi adapter?

    image

    opened by JanB97 14
  • a user need support CSL-Computer wireless adapter

    a user need support CSL-Computer wireless adapter

    $ dmesg [34001.333866] usb 1-8: new high-speed USB device number 14 using xhci_hcd [34001.562475] usb 1-8: New USB device found, idVendor=0bda, idProduct=b812, bcdDevice= 2.10 [34001.562483] usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [34001.562485] usb 1-8: Product: 802.11ac NIC [34001.562487] usb 1-8: Manufacturer: Realtek [34001.562489] usb 1-8: SerialNumber: 123456

    have anyone here a other device with idProduct: b812 and idVendor 0bda (Realtek) ? just a win10 Driver is published on the csl-computer support side

    opened by ohquait 13
  • building drivers on ubuntu 22.10 beta issue

    building drivers on ubuntu 22.10 beta issue

    I am using beta version of ubuntu 22.10 and I have this issue while compiling module for kernel 5.19.0-18-generic : Skipping BTF generation for /data/tools/drivers/rtl88x2bu/88x2bu.ko due to unavailability of vmlinux while force to load the module : sudo modprobe -v 88x2bu insmod /lib/modules/5.19.0-18-generic/kernel/drivers/net/wireless/88x2bu.ko modprobe: ERROR: could not insert '88x2bu': Unknown symbol in module, or unknown parameter (see dmesg)

    I do not have any issue with the previous kernel version 5.19.0-15-generic

    opened by dreambo 10
  • (solved) RTW: ERROR [HALMAC][ERR]Dump efuse in suspend

    (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)

    opened by mlewus 10
  • dkms issue?

    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.)

    opened by kanatos92 9
  • NetGear A6150 does not work on Ubuntu kernel 5.11

    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.

    opened by loocy3 9
  • (solved) Device not appearing (this driver is not for the 8192EU chipset)

    (solved) Device not appearing (this driver is not for the 8192EU chipset)

    I need to make this work with an older 4.4 kernel, and I'm up for patching this rtl88x2bu driver if necessary, but I could do with a few clues on where to start.

    I've compiled the module and successfully used insmod (& rmmod) on it, but no (new) devices are presented on ip link or iw dev, even though it shows up correctly in dmesg and lsusb. (Until I can get that far, it seems pointless trying to configure

    I've even tried insmod, insert device, rmmod, remove device, insert device, insmod, but no change.

    Are there any command line parameters I could add to insmod to help find out what's going wrong?

    This is a Dell d630 Latitude with a T-7100 2-core CPU and 8 GiB RAM; it has built-in ethernet (which I use most of the time), and WiFi (which is turned off by a hardware kill switch, but is still the only thing that shows up in the iw commands below). It's effectively running Ubuntu 16-LTS, despite reporting 14.04.

    $ uname -mr
    4.4.0-140-generic x86_64
    $ mokutil --sb-state
    bash: mokutil: command not found
    $ rfkill list all
    0: phy0: Wireless LAN
            Soft blocked: no
            Hard blocked: yes
    1: dell-wifi: Wireless LAN
            Soft blocked: no
            Hard blocked: yes
    $ dkms status
    bash: dkms: command not found
    $ iw dev
    phy#0
            Interface wlan0
                    ifindex 3
                    wdev 0x1
                    addr 00:1b:RE:DA:CT:ED
                    type managed
    $ iw reg get
    country 00: DFS-UNSET
            (2402 - 2472 @ 40), (N/A, 20), (N/A)
            (2457 - 2482 @ 20), (N/A, 20), (N/A), NO-IR
            (2474 - 2494 @ 20), (N/A, 20), (N/A), NO-OFDM, NO-IR
            (5170 - 5250 @ 80), (N/A, 20), (N/A), NO-IR
            (5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, NO-IR
            (5490 - 5730 @ 160), (N/A, 20), (0 ms), DFS, NO-IR
            (5735 - 5835 @ 80), (N/A, 20), (N/A), NO-IR
            (57240 - 63720 @ 2160), (N/A, 0), (N/A)
    $ lsmod | grep 88x
    88x2bu               3047424  0
    cfg80211              565248  4 iwl3945,iwlegacy,mac80211,88x2bu
    $ grep -B1 -A4 idVendor=2357 /var/log/messages | cut -d' ' -f5-
    usb 2-1: new high-speed USB device number 5 using ehci-pci
    usb 2-1: New USB device found, idVendor=2357, idProduct=0126
    usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    usb 2-1: Product: 802.11n NIC
    usb 2-1: Manufacturer: Realtek
    usb 2-1: SerialNumber: 60A4REDACTED
    $ lsusb | grep 2357:0126
    Bus 003 Device 003: ID 2357:0126 TL-WN8200ND ver.2 [Realtek RTL8812BU]
    $ lspci | grep Net
    09:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5755M Gigabit Ethernet PCI Express (rev 02)
    0c:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
    $ free
                  total        used        free      shared  buff/cache   available
    Mem:        8165488     2886024      765580      289700     4513884     4618236
    Swap:       5001212      530124     4471088
    $ grep ^model /proc/cpuinfo 
    model           : 15
    model name      : Intel(R) Core(TM)2 Duo CPU     T7100  @ 1.80GHz
    model           : 15
    model name      : Intel(R) Core(TM)2 Duo CPU     T7100  @ 1.80GHz
    

    ("Upgrade your kernel" isn't as easy as it sounds on this 14-year-old device; many times the graphics and/or network devices are unsupported in newer kernels. I do have dual root partitions, but sometimes even Grub gets messed up, so I'm not going to undertake an upgrade until I know I can take a week off work if necessary. In the meantime, new neighbours have moved in next to our WiFi AP at the other end of the house, so it can't reliably "hear" this device; and I'd really like to stop relying on an Ethernet cable running along the hallway.)

    opened by kurahaupo 8
  • Seg fault when installing

    Seg fault when installing

    System and Environment

    aayush@dev-pc:~$ sudo uname -mr; mokutil --sb-state; lsusb; rfkill list all; dkms status; iw dev; iw reg get
    5.15.0-57-generic x86_64
    SecureBoot disabled
    Platform is in Setup Mode
    Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 005 Device 002: ID 29ea:0102 Kinesis Advantage2 Keyboard
    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 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 004: ID 048d:5702 Integrated Technology Express, Inc. ITE Device
    Bus 001 Device 006: ID 2357:0138 TP-Link 
    Bus 001 Device 005: ID 046d:c52b Logitech, Inc. Unifying Receiver
    Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. Hub
    Bus 001 Device 002: ID 174c:2364 ASMedia Technology Inc. ICY BOX
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    nvidia, 525.60.11, 5.15.0-56-generic, x86_64: installed
    nvidia, 525.60.11, 5.15.0-57-generic, x86_64: installed
    rtl88x2bu, 5.13.1: added
    global
    country 00: DFS-UNSET
            (755 - 928 @ 2), (N/A, 20), (N/A), PASSIVE-SCAN
            (2402 - 2472 @ 40), (N/A, 20), (N/A)
            (2457 - 2482 @ 20), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN
            (2474 - 2494 @ 20), (N/A, 20), (N/A), NO-OFDM, PASSIVE-SCAN
            (5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN
            (5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN
            (5490 - 5730 @ 160), (N/A, 20), (0 ms), DFS, PASSIVE-SCAN
            (5735 - 5835 @ 80), (N/A, 20), (N/A), PASSIVE-SCAN
            (57240 - 63720 @ 2160), (N/A, 0), (N/A)
    

    When executing the script:

    aayush@dev-pc:~/88x2bu-20210702$ sudo ./install-driver.sh 
    Script:  install-driver.sh version 20221228
    Kernel:  5.15.0-57-generic
    Arch:  x86_64
    gcc:  gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
    Country:  country 00: DFS-UNSET
    The Country Code may not be properly set.
    File alpha-2_Country_Codes is located in the driver directory.
    Please read and follow the directions in the file after installation.
    SecureBoot disabled
    Platform is in Setup Mode
    Installing 88x2bu.conf to /etc/modprobe.d
    The dkms installation routines are in use.
    Copying source files to /usr/src/rtl88x2bu-5.13.1
    
    Creating symlink /var/lib/dkms/rtl88x2bu/5.13.1/source ->
                     /usr/src/rtl88x2bu-5.13.1
    
    DKMS: add completed.
    The driver was added to dkms successfully.
    
    Kernel preparation unnecessary for this kernel.  Skipping...
    
    Building module:
    cleaning build area...
    'make' -j16 KVER=5.15.0-57-generic KSRC=/lib/modules/5.15.0-57-generic/build.......(bad exit status: 2)
    Error! Bad return status for module build on kernel: 5.15.0-57-generic (x86_64)
    Consult /var/lib/dkms/rtl88x2bu/5.13.1/build/make.log for more information.
    Command exited with non-zero status 10
    Compile time: 167.19 seconds
    An error occurred. dkms build error:  10
    Please report this error.
    Please copy all screen output and paste it into the problem report.
    Run the following before reattempting installation.
    $ sudo ./remove-driver.sh
    

    Logs:

    DKMS make.log for rtl88x2bu-5.13.1 for kernel 5.15.0-57-generic (x86_64)
    Mo 9. Jan 11:44:12 CET 2023
    make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.15.0-57-generic/build M=/var/lib/dkms/rtl88x2bu/5.13.1/build  modules
    make[1]: Entering directory '/usr/src/linux-headers-5.15.0-57-generic'
    arch/x86/Makefile:142: CONFIG_X86_X32 enabled but no binutils support
    ...
    ...
    ...
      CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/btc/halbtc8822b2ant.o
    In file included from /var/lib/dkms/rtl88x2bu/5.13.1/build/include/drv_conf.h:17,
                     from /var/lib/dkms/rtl88x2bu/5.13.1/build/include/drv_types.h:25,
                     from /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/btc/mp_precomp.h:18,
                     from /var/lib/dkms/rtl88x2bu/5.13.1/build/hal/btc/halbtc8822b2ant.c:16:
    /var/lib/dkms/rtl88x2bu/5.13.1/build/include/autoconf.h:181: warning: "CONFIG_RTW_SW_LED" redefined
      181 |  #define CONFIG_RTW_SW_LED
          | 
    <command-line>: note: this is the location of the previous definition
      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
    Segmentation fault (core dumped)
    make[2]: *** [scripts/Makefile.build:494: /var/lib/dkms/rtl88x2bu/5.13.1/build/88x2bu.o] Error 139
    make[1]: *** [Makefile:1902: /var/lib/dkms/rtl88x2bu/5.13.1/build] Error 2
    make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-57-generic'
    make: *** [Makefile:2506: modules] Error 2
    
    
    opened by iyush 0
  • DKMS build fails during custom kernel

    DKMS build fails during custom kernel "make install", but not on "dkms autoinstall". Ubuntu 20.04LTS

    First off, thanks for maintaining this driver, it's been a life saver for me. Also, I tried searching the issues for this problem, but couldn't find anything. Sorry if it has come up before.

    Environment

    Ubuntu Server 20.04LTS 
    5.4.228-custom x86_64 (built off of the localmodconfig of standard Ubuntu Server)
    

    Issue

    After building a custom kernel and running sudo make install, one of the first automatic steps is the DKMS installation:

    sh ./arch/x86/boot/install.sh 5.4.0-viagrafalls arch/x86/boot/bzImage \
    	System.map "/boot"
    run-parts: executing /etc/kernel/postinst.d/dkms 5.4.0-viagrafalls /boot/vmlinuz-5.4.0-viagrafalls
     * dkms: running auto installation service for kernel 5.4.0-viagrafalls                                                                           
    Kernel preparation unnecessary for this kernel.  Skipping...
    
    Building module:
    cleaning build area...(bad exit status: 2)
    'make' -j2 KVER=5.4.0-viagrafalls KSRC=/lib/modules/5.4.0-viagrafalls/build...(bad exit status: 2)
    ERROR (dkms apport): binary package for rtl88x2bu: 5.13.1 not found
    Error! Bad return status for module build on kernel: 5.4.0-viagrafalls (x86_64)
    Consult /var/lib/dkms/rtl88x2bu/5.13.1/build/make.log for more information.
    

    Please don't mind the EXTRAVERSION name. It's my "D"ebug kernel ;)

    The output of /var/lib/dkms/rtl88x2bu/5.13.1/build/make.log is as follows:

    DKMS make.log for rtl88x2bu-5.13.1 for kernel 5.4.0-viagrafalls (x86_64)
    Sat 07 Jan 2023 08:42:13 PM UTC
    /bin/sh: 1: -dumpversion: not found
    (standard_in) 1: syntax error
    Makefile:2393: /rtl8822b.mk: No such file or directory
    make[2]: *** No rule to make target '/rtl8822b.mk'.  Stop.
    

    Here, the relevant source code from the Makefile:

    ########### HAL_RTL8822B #################################
    ifeq ($(CONFIG_RTL8822B), y)
    include $(src)/rtl8822b.mk
    endif
    

    Which leads me to believe that the $(src) variable isn't being properly set (or is being overriden to / from the kernel build)? Unfortunately, I haven't figured out how to test it properly.

    Simply running sudo dkms autoinstall -k 5.4.0-viagrafalls (right after the kernel installation) builds and installs the module without error. Output:

    Kernel preparation unnecessary for this kernel.  Skipping...
    
    Building module:
    cleaning build area...
    'make' -j2 KVER=5.4.0-viagrafalls KSRC=/lib/modules/5.4.0-viagrafalls/build..............................................................................................
    cleaning build area...
    
    DKMS: build completed.
    
    88x2bu.ko:
    Running module version sanity check.
     - Original module
       - No original module exists within this kernel
     - Installation
       - Installing to /lib/modules/5.4.0-viagrafalls/updates/dkms/
    
    depmod...
    
    DKMS: install completed.
    

    Again, sorry if I'm missing something obvious here, but I really appreciate any help. Let me know if you need any other information/logs/etc.

    Have a nice day!

    opened by NateSeymour 1
  • Allow to build for custom kernerl version & arch

    Allow to build for custom kernerl version & arch

    Hey,

    first I want to say thanks to you for maintaining this driver, otherwise my newly bought WiFi dongle would be useless... I am using openSUSE Tumbleweed and therefore new kernel versions are released frequently. This means that I have to rebuild the driver every week which means rebooting into the new kernel, building it and restarting my NetworkManager.

    I looked into the dkms routine and saw that you can supply the version and architecture to build for and was able to rebuild the driver for the new kernel after installing it's sources while still running the old one via supplying it to the dkms commands.

    Do you think that it would be useful to have this upstreamed? With my patch the script works normally without doing anything but a custom version or arch can be supplied like this:

    sudo KVER=6.1.1-1-default ./install-driver.sh
    

    To satisfy my shellcheck I also surrounded some variables, both scripts still work fine for me.

    opened by jlkDE 3
  • A required package appears to not be installed. Please install the following package: mokutil

    A required package appears to not be installed. Please install the following package: mokutil

    Hi there,

    just a heads up for people with Rasbian lite they need to manually install mokutil. Probably worth adding a "sudo apt-get install mokutil" to the instructions. https://github.com/morrownr/88x2bu-20210702

    Thanks for the great work!

    opened by GenerallyClumsy 2
  • Installation issue with dietpi-OS ARMv7 32bit

    Installation issue with dietpi-OS ARMv7 32bit

    Hello i try hard to install driver for my wu1400 usb-wlan antenne, but i get this error message, i canΒ΄t handle. Can you please help me? depmod.......

    DKMS: install completed. . run-parts: executing /etc/kernel/header_postinst.d/dkms 5.15.76-v8+ dkms: running auto installation service for kernel 5.15.76-v8+:Error! Your kernel headers for kernel 5.15.76-v8+ cannot be found. Please install the linux-headers-5.15.76-v8+ package, or use the --kernelsourcedir option to tell DKMS where it's located . dietpi@elia:~$

    opened by Lippsson 1
  • TP-Link Archer T4U ver.3 does not initialize?

    TP-Link Archer T4U ver.3 does not initialize?

    I have a TP-Link Archer T4U ver.3 that was recently purchased. It works 100% under Windows, and I am trying to get it working on Linux.

    I've tried VMs on amd64 (Linux kernel 5.15) and arm64 (Debian; Linux kernel 5.10), and a bare metal armv6l (kernel 5.15; Raspberry Pi B+): they all give the same result shown below.

    Just in case, I tried it with a rtl8812au driver, and the device didn't register with the driver when plugged in; so it almost surely appears to be the BU chipset?

    A full driver debug log is here. Perhaps the reason for the failure are the following two lines:
    [  +0.000607] RTW: ERROR [HALMAC][ERR]test mode!!
    [  +0.000002] RTW: ERROR rtl8822b_power_on: Power ON Fail!!
    
    [  +4.363461] RTW: module init start
    [  +0.000002] RTW: rtl88x2bu v5.13.1-20-gbd7c7eb9d.20210702_COEX20210316-18317b7b
    [  +0.000001] RTW: rtl88x2bu BT-Coex version = COEX20210316-18317b7b
    [  +0.000010] RTW: rtw_inetaddr_notifier_register
    [  +0.000018] RTW: 
                  usb_endpoint_descriptor(0):
    [  +0.000001] RTW: bLength=7
    [  +0.000000] RTW: bDescriptorType=5
    [  +0.000000] RTW: bEndpointAddress=84
    [  +0.000001] RTW: wMaxPacketSize=512
    [  +0.000000] RTW: bInterval=0
    [  +0.000001] RTW: RT_usb_endpoint_is_bulk_in = 4
    [  +0.000000] RTW: 
                  usb_endpoint_descriptor(1):
    [  +0.000000] RTW: bLength=7
    [  +0.000001] RTW: bDescriptorType=5
    [  +0.000000] RTW: bEndpointAddress=5
    [  +0.000000] RTW: wMaxPacketSize=512
    [  +0.000001] RTW: bInterval=0
    [  +0.000000] RTW: RT_usb_endpoint_is_bulk_out = 5
    [  +0.000000] RTW: 
                  usb_endpoint_descriptor(2):
    [  +0.000001] RTW: bLength=7
    [  +0.000000] RTW: bDescriptorType=5
    [  +0.000000] RTW: bEndpointAddress=6
    [  +0.000001] RTW: wMaxPacketSize=512
    [  +0.000000] RTW: bInterval=0
    [  +0.000000] RTW: RT_usb_endpoint_is_bulk_out = 6
    [  +0.000001] RTW: 
                  usb_endpoint_descriptor(3):
    [  +0.000000] RTW: bLength=7
    [  +0.000000] RTW: bDescriptorType=5
    [  +0.000001] RTW: bEndpointAddress=87
    [  +0.000000] RTW: wMaxPacketSize=64
    [  +0.000000] RTW: bInterval=3
    [  +0.000001] RTW: RT_usb_endpoint_is_int_in = 7, Interval = 3
    [  +0.000000] RTW: 
                  usb_endpoint_descriptor(4):
    [  +0.000000] RTW: bLength=7
    [  +0.000001] RTW: bDescriptorType=5
    [  +0.000000] RTW: bEndpointAddress=8
    [  +0.000000] RTW: wMaxPacketSize=512
    [  +0.000001] RTW: bInterval=0
    [  +0.000000] RTW: RT_usb_endpoint_is_bulk_out = 8
    [  +0.000000] RTW: nr_endpoint=5, in_num=2, out_num=3
    

    [ +0.000001] RTW: USB_SPEED_HIGH [ +0.000001] RTW: CHIP TYPE: RTL8822B [ +0.000018] RTW: [HALMAC]55772M HALMAC_MAJOR_VER = 1 HALMAC_PROTOTYPE_VER = 6 HALMAC_MINOR_VER = 6 HALMAC_PATCH_VER = 23 [ +0.001397] RTW: [HALMAC][TRACE]halmac_init_adapter <=== [ +0.000001] RTW: [HALMAC][TRACE]phy_cfg_usb_8822b ===> [ +0.000736] RTW: [HALMAC][TRACE]phy_cfg_usb_8822b <=== [ +0.000002] RTW: [HALMAC][TRACE]cfg_max_dl_size_88xx ===> [ +0.000001] RTW: [HALMAC][TRACE]Cfg max size:1000 [ +0.000001] RTW: [HALMAC][TRACE]cfg_max_dl_size_88xx <=== [ +0.000002] RTW: [HALMAC][TRACE]get_hw_value_8822b ===> [ +0.000001] RTW: [HALMAC][TRACE]get_hw_value_88xx ===> [ +0.000001] RTW: [HALMAC][TRACE]get_hw_value_88xx <=== [ +0.001338] RTW: Chip Version Info: CHIP_8822B_U4_2T2R_RomVer(3) [ +0.000004] RTW: [HALMAC][TRACE]get_hw_value_8822b ===> [ +0.000003] RTW: [HALMAC][TRACE]get_hw_value_88xx ===> [ +0.000000] RTW: [HALMAC][TRACE]get_hw_value_88xx <=== [ +0.000002] RTW: config_chip_out_EP OutEpQueueSel(0x07), OutEpNumber(3) [ +0.000462] RTW: [HALMAC][TRACE]get_log_efuse_size_88xx ===> [ +0.000001] RTW: [HALMAC][TRACE]get_log_efuse_size_88xx <=== [ +0.000002] RTW: [HALMAC][TRACE]dump_log_efuse_map_88xx ===> [ +0.000001] RTW: [HALMAC][TRACE]cfg = 1 [ +0.000001] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend [ +0.001557] RTW: [HALMAC][TRACE]set_hw_value_8822b ===> [ +0.000002] RTW: [HALMAC][TRACE]set_hw_value_88xx ===> [ +0.000936] RTW: [HALMAC][TRACE]set_hw_value_8822b <=== [ +0.595016] RTW: is_valid_id_status: HALMAC_FEATURE_DUMP_LOGICAL_EFUSE [ +0.000003] RTW: [HALMAC][TRACE]dump_log_efuse_map_88xx <=== [ +0.000002] RTW: data[0] = 29 [ +0.000001] RTW: data[1] = 81 [ +0.000000] RTW: data[2] = 0 [ +0.000000] RTW: data[3] = 3c [ +0.000001] RTW: data[4] = 9 [ +0.000000] RTW: data[5] = 0 [ +0.000001] RTW: data[6] = a1 [ +0.000000] RTW: data[7] = 0 [ +0.000000] RTW: data[8] = b6 [ +0.000001] RTW: data[9] = 4 [ +0.000000] RTW: data[a] = 64 [ +0.000000] RTW: data[b] = 10 [ +0.000001] RTW: data[c] = 0 [ +0.000000] RTW: data[d] = 0 [ +0.000000] RTW: data[e] = a3 [ +0.000001] RTW: data[f] = 0 [ +0.000000] RTW: data[10] = 31 [ +0.000001] RTW: data[11] = 32 [ +0.000000] RTW: data[12] = 33 [ +0.000000] RTW: data[13] = 34 [ +0.000001] RTW: data[14] = 34 [ +0.000000] RTW: data[15] = 34 [ +0.000000] RTW: data[16] = 2e [ +0.000001] RTW: data[17] = 2e [ +0.000000] RTW: data[18] = 2e [ +0.000000] RTW: data[19] = 2e [ +0.000001] RTW: data[1a] = 2e [ +0.000000] RTW: data[1b] = 2 [ +0.000001] RTW: data[1c] = ee [ +0.000000] RTW: data[1d] = ee [ +0.000000] RTW: data[22] = 20 [ +0.000001] RTW: data[23] = 1e [ +0.000000] RTW: data[24] = 1b [ +0.000000] RTW: data[25] = 1a [ +0.000001] RTW: data[26] = 18 [ +0.000000] RTW: data[27] = 17 [ +0.000001] RTW: data[28] = 16 [ +0.000000] RTW: data[29] = 15 [ +0.000000] RTW: data[2a] = 13 [ +0.000001] RTW: data[2b] = 13 [ +0.000000] RTW: data[2c] = 18 [ +0.000000] RTW: data[2d] = 16 [ +0.000001] RTW: data[2e] = 16 [ +0.000000] RTW: data[2f] = 16 [ +0.000000] RTW: data[30] = 15 [ +0.000001] RTW: data[31] = ee [ +0.000000] RTW: data[34] = 0 [ +0.000001] RTW: data[35] = ff [ +0.000000] RTW: data[36] = 20 [ +0.000000] RTW: data[37] = e0 [ +0.000001] RTW: data[3a] = 32 [ +0.000000] RTW: data[3b] = 32 [ +0.000000] RTW: data[3c] = 33 [ +0.000001] RTW: data[3d] = 33 [ +0.000000] RTW: data[3e] = 33 [ +0.000000] RTW: data[3f] = 33 [ +0.000001] RTW: data[40] = 2f [ +0.000000] RTW: data[41] = 2e [ +0.000001] RTW: data[42] = 2e [ +0.000000] RTW: data[43] = 2e [ +0.000000] RTW: data[44] = 2e [ +0.000001] RTW: data[45] = 2 [ +0.000000] RTW: data[46] = ee [ +0.000000] RTW: data[47] = 0 [ +0.000001] RTW: data[4c] = 21 [ +0.000000] RTW: data[4d] = 1f [ +0.000001] RTW: data[4e] = 1d [ +0.000000] RTW: data[4f] = 1c [ +0.000000] RTW: data[50] = 19 [ +0.000001] RTW: data[51] = 19 [ +0.000000] RTW: data[52] = 18 [ +0.000000] RTW: data[53] = 18 [ +0.000001] RTW: data[54] = 17 [ +0.000000] RTW: data[55] = 17 [ +0.000000] RTW: data[56] = 1c [ +0.000001] RTW: data[57] = 1b [ +0.000000] RTW: data[58] = 1b [ +0.000000] RTW: data[59] = 1b [ +0.000001] RTW: data[5a] = 15 [ +0.000000] RTW: data[5b] = ee [ +0.000001] RTW: data[5e] = 0 [ +0.000000] RTW: data[5f] = ff [ +0.000000] RTW: data[60] = 20 [ +0.000001] RTW: data[61] = e0 [ +0.000000] RTW: data[b8] = a5 [ +0.000001] RTW: data[b9] = 3f [ +0.000000] RTW: data[ba] = 1e [ +0.000001] RTW: data[bb] = 0 [ +0.000000] RTW: data[c0] = ff [ +0.000000] RTW: data[c1] = 9 [ +0.000001] RTW: data[c2] = 0 [ +0.000000] RTW: data[c3] = 11 [ +0.000000] RTW: data[c4] = 0 [ +0.000001] RTW: data[c5] = 0 [ +0.000000] RTW: data[c6] = 0 [ +0.000001] RTW: data[c7] = 0 [ +0.000000] RTW: data[c8] = 0 [ +0.000000] RTW: data[c9] = ff [ +0.000001] RTW: data[ca] = 2 [ +0.000000] RTW: data[cb] = ff [ +0.000000] RTW: data[cc] = ff [ +0.000001] RTW: data[cd] = ff [ +0.000000] RTW: data[100] = 57 [ +0.000001] RTW: data[101] = 23 [ +0.000000] RTW: data[102] = 15 [ +0.000000] RTW: data[103] = 1 [ +0.000001] RTW: data[104] = c1 [ +0.000000] RTW: data[105] = 67 [ +0.000001] RTW: data[106] = 2 [ +0.000000] RTW: data[107] = 98 [ +0.000000] RTW: data[108] = 48 [ +0.000001] RTW: data[109] = 27 [ +0.000000] RTW: data[10a] = eb [ +0.000000] RTW: data[10b] = c5 [ +0.000001] RTW: data[10c] = e9 [ +0.000000] RTW: data[10d] = 9 [ +0.000000] RTW: data[10e] = 3 [ +0.000001] RTW: data[10f] = 52 [ +0.000000] RTW: data[110] = 65 [ +0.000001] RTW: data[111] = 61 [ +0.000000] RTW: data[112] = 6c [ +0.000000] RTW: data[113] = 74 [ +0.000001] RTW: data[114] = 65 [ +0.000000] RTW: data[115] = 6b [ +0.000000] RTW: data[116] = e [ +0.000001] RTW: data[117] = 3 [ +0.000000] RTW: data[118] = 38 [ +0.000000] RTW: data[119] = 30 [ +0.000001] RTW: data[11a] = 32 [ +0.000000] RTW: data[11b] = 2e [ +0.000001] RTW: data[11c] = 31 [ +0.000000] RTW: data[11d] = 31 [ +0.000000] RTW: data[11e] = 61 [ +0.000001] RTW: data[11f] = 63 [ +0.000000] RTW: data[120] = 20 [ +0.000000] RTW: data[121] = 4e [ +0.000001] RTW: data[122] = 49 [ +0.000000] RTW: data[123] = 43 [ +0.000000] RTW: data[124] = 8 [ +0.000001] RTW: data[125] = 3 [ +0.000000] RTW: data[126] = 31 [ +0.000001] RTW: data[127] = 32 [ +0.000000] RTW: data[128] = 33 [ +0.000000] RTW: data[129] = 34 [ +0.000001] RTW: data[12a] = 35 [ +0.000000] RTW: data[12b] = 36 [ +0.000000] RTW: data[12c] = ff [ +0.000001] RTW: data[12d] = ff [ +0.000000] RTW: data[12e] = ff [ +0.000001] RTW: data[12f] = ff [ +0.000000] RTW: data[130] = ff [ +0.000000] RTW: data[131] = ff [ +0.000001] RTW: data[132] = ff [ +0.000000] RTW: data[133] = ff [ +0.000000] RTW: data[134] = ff [ +0.000001] RTW: data[135] = ff [ +0.000000] RTW: data[136] = ff [ +0.000000] RTW: data[137] = ff [ +0.000001] RTW: data[138] = ff [ +0.000000] RTW: data[139] = ff [ +0.000001] RTW: data[13a] = ff [ +0.000000] RTW: data[13b] = ff [ +0.000000] RTW: data[13c] = ff [ +0.000001] RTW: data[13d] = ff [ +0.000000] RTW: data[13e] = ff [ +0.000000] RTW: data[13f] = ff [ +0.000001] RTW: data[140] = 33 [ +0.000000] RTW: data[141] = a [ +0.000000] RTW: data[142] = 1f [ +0.000001] RTW: data[143] = 1 [ +0.000000] RTW: data[144] = 0 [ +0.000001] RTW: data[145] = 0 [ +0.000000] RTW: data[146] = 21 [ +0.000000] RTW: data[147] = f [ +0.000003] RTW: [HALMAC][TRACE]get_log_efuse_size_88xx ===> [ +0.000000] RTW: [HALMAC][TRACE]get_log_efuse_size_88xx <=== [ +0.000001] RTW: HW EFUSE [ +0.000002] RTW: 0x000: 29 81 00 3C 09 00 A1 00 B6 04 64 10 00 00 A3 00
    [ +0.000005] RTW: 0x010: 31 32 33 34 34 34 2E 2E 2E 2E 2E 02 EE EE FF FF
    [ +0.000005] RTW: 0x020: FF FF 20 1E 1B 1A 18 17 16 15 13 13 18 16 16 16
    [ +0.000005] RTW: 0x030: 15 EE FF FF 00 FF 20 E0 FF FF 32 32 33 33 33 33
    [ +0.000004] RTW: 0x040: 2F 2E 2E 2E 2E 02 EE 00 FF FF FF FF 21 1F 1D 1C
    [ +0.000005] RTW: 0x050: 19 19 18 18 17 17 1C 1B 1B 1B 15 EE FF FF 00 FF
    [ +0.000005] RTW: 0x060: 20 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000004] RTW: 0x070: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000005] RTW: 0x080: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000005] RTW: 0x090: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000004] RTW: 0x0A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000005] RTW: 0x0B0: FF FF FF FF FF FF FF FF A5 3F 1E 00 FF FF FF FF
    [ +0.000005] RTW: 0x0C0: FF 09 00 11 00 00 00 00 00 FF 02 FF FF FF FF FF
    [ +0.000004] RTW: 0x0D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000005] RTW: 0x0E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000005] RTW: 0x0F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000004] RTW: 0x100: 57 23 15 01 C1 67 02 98 48 27 EB C5 E9 09 03 52
    [ +0.000005] RTW: 0x110: 65 61 6C 74 65 6B 0E 03 38 30 32 2E 31 31 61 63
    [ +0.000005] RTW: 0x120: 20 4E 49 43 08 03 31 32 33 34 35 36 FF FF FF FF
    [ +0.000004] RTW: 0x130: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000005] RTW: 0x140: 33 0A 1F 01 00 00 21 0F FF FF FF FF FF FF FF FF
    [ +0.000005] RTW: 0x150: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000004] RTW: 0x160: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000005] RTW: 0x170: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000005] RTW: 0x180: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000004] RTW: 0x190: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000005] RTW: 0x1A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000005] RTW: 0x1B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000004] RTW: 0x1C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000005] RTW: 0x1D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000005] RTW: 0x1E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000004] RTW: 0x1F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000005] RTW: 0x200: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000005] RTW: 0x210: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000004] RTW: 0x220: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000005] RTW: 0x230: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000005] RTW: 0x240: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000004] RTW: 0x250: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000005] RTW: 0x260: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000005] RTW: 0x270: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000004] RTW: 0x280: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000005] RTW: 0x290: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000005] RTW: 0x2A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000004] RTW: 0x2B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000005] RTW: 0x2C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000005] RTW: 0x2D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000004] RTW: 0x2E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000005] RTW: 0x2F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    [ +0.000006] RTW: EEPROM ID = 0x8129 [ +0.000001] RTW: EEPROM Version = 0 [ +0.000001] RTW: EEPROM Regulatory=0x01 [ +0.000000] RTW: EEPROM Board Type=0x00 [ +0.000001] RTW: EEPROM Disable BT-coex, ant_num=1 [ +0.000001] RTW: hal_com_config_channel_plan chplan:0x25 [ +0.000000] RTW: EEPROM crystal_cap=0x3f [ +0.000001] RTW: EEPROM ThermalMeter=0x1e [ +0.000000] RTW: EEPROM Customer ID=0x00 [ +0.000000] RTW: EEPROM SupportRemoteWakeup=0 [ +0.000001] RTW: EEPROM PAType_2G is 0x0, ExternalPA_2G = 0 [ +0.000000] RTW: EEPROM PAType_5G is 0x0, external_pa_5g = 0 [ +0.000001] RTW: EEPROM LNAType_2G is 0x0, ExternalLNA_2G = 0 [ +0.000000] RTW: EEPROM LNAType_5G is 0x0, external_lna_5g = 0 [ +0.000000] RTW: EEPROM TypeGPA = 0x0 [ +0.000001] RTW: EEPROM TypeAPA = 0x0 [ +0.000000] RTW: EEPROM TypeGLNA = 0x0 [ +0.000000] RTW: EEPROM TypeALNA = 0x0 [ +0.000001] RTW: EEPROM rfe_type=0x2 [ +0.000000] RTW: [HALMAC][TRACE]get_efuse_size_88xx ===> [ +0.000001] RTW: [HALMAC][TRACE]get_efuse_size_88xx <=== [ +0.000000] RTW: [HALMAC][TRACE]get_efuse_size_88xx ===> [ +0.000001] RTW: [HALMAC][TRACE]get_efuse_size_88xx <=== [ +0.000001] RTW: [HALMAC][TRACE]dump_efuse_map_88xx ===> [ +0.000000] RTW: [HALMAC][TRACE]cfg = 1 [ +0.000001] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend [ +0.000315] RTW: is_valid_id_status: HALMAC_FEATURE_DUMP_PHYSICAL_EFUSE [ +0.000017] RTW: [HALMAC][TRACE]dump_efuse_map_88xx <=== [ +0.000002] RTW: EEPROM efuse[0x3D7]=0xf2 [ +0.000000] RTW: EEPROM efuse[0x3D8]=0xf0 [ +0.000001] RTW: EEPROM USB Switch=1 [ +0.000001] RTW: EEPROM VID = 0x2357, PID = 0x0115 [ +0.000003] RTW: [HALMAC][TRACE]pre_init_system_cfg_8822b ===> [ +0.008220] RTW: [HALMAC][TRACE]set_hw_value_88xx ===> [ +0.002795] RTW: [HALMAC][TRACE]set_hw_value_88xx <=== [ +0.000607] RTW: ERROR [HALMAC][ERR]test mode!! [ +0.000002] RTW: ERROR rtl8822b_power_on: Power ON Fail!! [ +0.000336] RTW: rtl8822b_fw_dl fw source from array [ +0.000003] RTW: [HALMAC][TRACE]pre_init_system_cfg_8822b ===> [ +0.003693] RTW: [HALMAC][TRACE]set_hw_value_88xx ===> [ +0.003934] RTW: [HALMAC][TRACE]set_hw_value_88xx <=== [ +0.000450] RTW: ERROR [HALMAC][ERR]test mode!! [ +0.000002] RTW: ERROR rtl8822b_power_on: Power ON Fail!! [ +0.000001] RTW: ERROR rtl8822b_fw_dl Download Firmware from array failed [ +0.000389] RTW: hal_read_mac_hidden_rpt Fail! (0, 20ms), fwdl:0, id:0xfd [ +0.000004] RTW: [HALMAC][TRACE]get_efuse_size_88xx ===> [ +0.000001] RTW: [HALMAC][TRACE]get_efuse_size_88xx <=== [ +0.000002] RTW: [HALMAC][TRACE]dump_efuse_map_88xx ===> [ +0.000001] RTW: [HALMAC][TRACE]cfg = 1 [ +0.000001] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend [ +0.000936] RTW: is_valid_id_status: HALMAC_FEATURE_DUMP_PHYSICAL_EFUSE [ +0.000003] RTW: [HALMAC][TRACE]dump_efuse_map_88xx <=== [ +0.000004] RTW: [HALMAC][TRACE]get_efuse_size_88xx ===> [ +0.000002] RTW: [HALMAC][TRACE]get_efuse_size_88xx <=== [ +0.000002] RTW: [HALMAC][TRACE]dump_efuse_map_88xx ===> [ +0.000000] RTW: [HALMAC][TRACE]cfg = 1 [ +0.000001] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend [ +0.001395] RTW: is_valid_id_status: HALMAC_FEATURE_DUMP_PHYSICAL_EFUSE [ +0.000002] RTW: [HALMAC][TRACE]dump_efuse_map_88xx <=== [ +0.000003] RTW: [HALMAC][TRACE]get_efuse_size_88xx ===> [ +0.000000] RTW: [HALMAC][TRACE]get_efuse_size_88xx <=== [ +0.000001] RTW: [HALMAC][TRACE]dump_efuse_map_88xx ===> [ +0.000001] RTW: [HALMAC][TRACE]cfg = 1 [ +0.000001] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend [ +0.000639] RTW: is_valid_id_status: HALMAC_FEATURE_DUMP_PHYSICAL_EFUSE [ +0.000001] RTW: [HALMAC][TRACE]dump_efuse_map_88xx <=== [ +0.000002] RTW: rtw_hal_read_chip_info in 620 ms [ +0.000006] RTW: [RF_PATH] ver_id.RF_TYPE:RF_2T2R [ +0.000000] RTW: [RF_PATH] HALSPEC's rf_reg_trx_path_bmp:0x33, rf_reg_path_avail_num:2, max_tx_cnt:2 [ +0.000001] RTW: [RF_PATH] PG's trx_path_bmp:0x00, max_tx_cnt:0 [ +0.000001] RTW: [RF_PATH] Registry's trx_path_bmp:0x00, tx_path_lmt:0, rx_path_lmt:0 [ +0.000000] RTW: [RF_PATH] HALDATA's trx_path_bmp:0x33, max_tx_cnt:2 [ +0.000000] RTW: [RF_PATH] HALDATA's rf_type:RF_2T2R, NumTotalRFPath:2 [ +0.000001] RTW: rtw_hal_rfpath_init trx_path_bmp:0x33(RF_2T2R), NumTotalRFPath:2, max_tx_cnt:2 [ +0.000001] RTW: [TRX_Nss] HALSPEC - tx_nss:2, rx_nss:2 [ +0.000000] RTW: [TRX_Nss] Registry - tx_nss:0, rx_nss:0 [ +0.000001] RTW: [TRX_Nss] HALDATA - tx_nss:2, rx_nss:2 [ +0.000000] RTW: rtw_hal_trxnss_init tx_nss:2, rx_nss:2 [ +0.000014] RTW: txpath=0x3, rxpath=0x3 [ +0.000000] RTW: txpath_1ss:0x1, num:1 [ +0.000001] RTW: txpath_2ss:0x3, num:2 [ +0.000041] RTW: init_mlme_default_rate_set: support OFDM [ +0.000104] RTW: NR_RECVBUFF: 8, recvbuf_nr: 8 [ +0.000000] RTW: MAX_RECVBUF_SZ: 32768 [ +0.000001] RTW: NR_PREALLOC_RECV_SKB: 8 [ +0.000121] RTW: rtw_alloc_macid((null)) if1, mac_addr:ff:ff:ff:ff:ff:ff macid:1 [ +0.000001] RTW: rtw_init_pwrctrl_priv: IPS_mode=1, LPS_mode=1, LPS_level=0 [ +0.000300] RTW: IQK FW offload:enable [ +0.000003] RTW: init_phydm_cominfo: Fv=1 Cv=3 [ +0.000063] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1 [ +0.000018] RTW: phy_ConfigBBWithPgParaFile(): No File PHY_REG_PG.txt, Load from HWImg Array! [ +0.000007] RTW: default power by rate loaded [ +0.000005] RTW: init_channel_set_from_rtk_priv((null)) ChannelPlan ID:0x25, ch num:24 [ +0.000004] RTW: RM: rtw_init_rm [ +0.000002] RTW: can't get autopm: [ +0.000002] RTW: rtw_macaddr_cfg mac addr:98:48:27:eb:c5:e9 [ +0.000002] RTW: bDriverStopped:True, bSurpriseRemoved:False, bup:0, hw_init_completed:0 [ +0.000034] RTW: rtw_cfg80211_init_wiphy_band:rf_type=2 [ +0.000008] RTW: rtw_wiphy_alloc(phy1) [ +0.000009] RTW: rtw_wdev_alloc(padapter=00000000a17348a1) [ +0.000001] RTW: rtw_wiphy_register(phy1) [ +0.000001] RTW: Register RTW cfg80211 vendor cmd(0x67) interface [ +0.000133] RTW: rtw_reg_notifier(phy1) [ +0.000001] RTW: initiator:CORE, wiphy_idx:-1, type:USER [ +0.000001] RTW: alpha2:00 [ +0.000000] RTW: dfs_region:UNSET [ +0.000001] RTW: intersect:0 [ +0.000001] RTW: processed:1 [ +0.000000] RTW: country_ie_env:ANY [ +0.000070] RTW: rtw_ndev_init(wlan0) if1 mac_addr=98:48:27:eb:c5:e9 [ +0.000059] RTW: rtw_ndev_notifier_call(wlan0) state:17 [ +0.000226] RTW: cfg80211_rtw_get_txpower(wlan0) total max: -10000 mbm [ +0.000003] RTW: rtw_ndev_notifier_call(wlan0) state:5 [ +0.000044] usbcore: registered new interface driver rtl88x2bu [ +0.000002] RTW: module init ret=0 [ +0.004131] rtl88x2bu 2-3:1.0 wlx984827ebc5e9: renamed from wlan0 [ +0.016033] RTW: rtw_ndev_notifier_call(wlx984827ebc5e9) state:11 [Dec 8 12:55] RTW: rtw_ndev_notifier_call(wlx984827ebc5e9) state:14 [ +0.000003] RTW: _netdev_open(wlx984827ebc5e9) , bup=0 [ +0.000002] RTW: rtl8822b_hal_init fw source from array [ +0.000003] RTW: [HALMAC][TRACE]pre_init_system_cfg_8822b ===> [ +0.003753] RTW: [HALMAC][TRACE]set_hw_value_88xx ===> [ +0.001968] RTW: [HALMAC][TRACE]set_hw_value_88xx <=== [ +0.000330] RTW: ERROR [HALMAC][ERR]test mode!! [ +0.000002] RTW: ERROR rtl8822b_power_on: Power ON Fail!! [ +0.000001] RTW: ERROR rtl8822b_hal_init Download Firmware from array failed [ +0.000002] RTW: [HALMAC][TRACE]pinmux_set_func_8822b ===> [ +0.000000] RTW: [HALMAC][TRACE]func name : 0 [ +0.000001] RTW: [HALMAC][TRACE]chk_pinmux_valid func : 0 status : 0 [ +0.001080] RTW: [HALMAC][TRACE]pinmux_set_func_8822b <=== [ +0.000002] RTW: [HALMAC][TRACE]pinmux_wl_led_mode_88xx ===> [ +0.000766] RTW: [HALMAC][TRACE]pinmux_wl_led_mode_88xx <=== [ +0.000002] RTW: rtl8822bu_init in 8ms [ +0.000004] RTW: rtw_hal_set_macaddr_port wlx984827ebc5e9- hw port(0) mac_addr =98:48:27:eb:c5:e9 [ +0.000001] RTW: [HALMAC][TRACE]cfg_mac_addr_88xx ===> [ +0.000529] RTW: [HALMAC][TRACE]cfg_mac_addr_88xx <=== [ +0.000832] RTW: [HW_VAR_ENABLE_RX_BAR] 0x6A2=0xEAEA [ +0.000004] RTW: (Channel <= 14) && (Channel >=1) but wireless_mode do not support 2.4G [ +0.000353] RTW: [HALMAC][TRACE]cfg_net_type_88xx ===> [ +0.000335] RTW: [HALMAC][TRACE]cfg_net_type_88xx <=== [ +0.000002] RTW: set_opmode_port0(wlx984827ebc5e9): hw_port(0) mode=2 [ +0.000001] RTW: StopTxBeacon [ +0.001739] RTW: rtw_hal_init: padapter->registrypriv.set_rrsr_value=0xffffffff [ +0.000003] RTW: MAC Address = 98:48:27:eb:c5:e9 [ +0.000009] RTW: -871x_drv - drv_open, bup=1 [ +0.000071] RTW: cfg80211_rtw_set_power_mgmt(wlx984827ebc5e9) enabled:1, timeout:-1 [ +0.000001] RTW: rtw_ndev_notifier_call(wlx984827ebc5e9) state:1 [ +0.000013] IPv6: ADDRCONF(NETDEV_CHANGE): wlx984827ebc5e9: link becomes ready [ +0.000016] RTW: rtw_inet6addr_notifier_call: up IPv6 addrs: fe80:0000:0000:0000:9a48:27ff:feeb:c5e9 [ +0.000019] RTW: rtw_ndev_notifier_call(wlx984827ebc5e9) state:4

    The README.md recommended dump is here.
    # uname -mr; mokutil --sb-state; lsusb; rfkill list all; dkms status; iw dev; iw reg get
    5.10.0-19-amd64 x86_64
    EFI variables are not supported on this system
    Bus 002 Device 003: ID 2357:0115 TP-Link Archer T4U ver.3
    Bus 002 Device 002: ID 203a:fffc PARALLELS Virtual Mouse
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 002: ID 203a:fff9 PARALLELS HD Pro Webcam C920
    Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    1: phy1: Wireless LAN
    	Soft blocked: no
    	Hard blocked: no
    rtl88x2bu, 5.13.1, 5.10.0-19-amd64, x86_64: installed
    phy#1
    	Interface wlx984827ebc5e9
    		ifindex 4
    		wdev 0x100000001
    		addr 98:48:27:eb:c5:e9
    		type managed
    		txpower -100.00 dBm
    global
    country US: DFS-FCC
    	(902 - 904 @ 2), (N/A, 30), (N/A)
    	(904 - 920 @ 16), (N/A, 30), (N/A)
    	(920 - 928 @ 8), (N/A, 30), (N/A)
    	(2400 - 2472 @ 40), (N/A, 30), (N/A)
    	(5150 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
    	(5250 - 5350 @ 80), (N/A, 24), (0 ms), DFS, AUTO-BW
    	(5470 - 5730 @ 160), (N/A, 24), (0 ms), DFS
    	(5730 - 5850 @ 80), (N/A, 30), (N/A), AUTO-BW
    	(5850 - 5895 @ 40), (N/A, 27), (N/A), NO-OUTDOOR, AUTO-BW, PASSIVE-SCAN
    	(57240 - 71000 @ 2160), (N/A, 40), (N/A)
    

    While I can see the network interface, I can't run a scan (nothing else works).

    # iw dev wlx984827ebc5e9 scan
    command failed: Operation not permitted (-1)
    
    # ifconfig 
    enp0s5: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 10.211.55.8  netmask 255.255.255.0  broadcast 10.211.55.255
            inet6 fdb2:2c26:d4e1:0:25d:41ff:fe07:486f  prefixlen 64  scopeid 0x0<global>
            inet6 fe80::21c:42ff:fe02:482f  prefixlen 64  scopeid 0x20<link>
            ether 00:1c:42:02:48:2f  txqueuelen 1000  (Ethernet)
            RX packets 1408  bytes 361880 (353.3 KiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 908  bytes 202225 (197.4 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
            inet 127.0.0.1  netmask 255.0.0.0
            inet6 ::1  prefixlen 128  scopeid 0x10<host>
            loop  txqueuelen 1000  (Local Loopback)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    wlx984827ebc5e9: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet6 fe80::9a48:27ff:feeb:c5e9  prefixlen 64  scopeid 0x20<link>
            ether 98:48:27:eb:c5:e9  txqueuelen 1000  (Ethernet)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 12 overruns 0  c
    

    Appreciate any advice. :)

    opened by jpap 9
Owner
Nick
Nick
Linux Driver for USB WiFi Adapters that are based on the RTL8811CU, RTL8821CU and RTL8731AU Chipsets - v5.12.0

Click here for USB WiFi Adapter Information for Linux A FAQ is available at the end of this document. Problem reports go in Issues. Include the inform

Nick 212 Jan 1, 2023
Linux Driver for USB WiFi Adapters that are based on the RTL8812AU Chipset - v5.13.6

Click for USB WiFi Adapter Information for Linux A FAQ is available at the end of this document. Problem reports go in Issues. Problem reports should

Nick 240 Dec 29, 2022
LLVM IR and optimizer for shaders, including front-end adapters for GLSL and SPIR-V and back-end adapter for GLSL

Licensing LunarGLASS is available via a three clause BSD-style open source license. Goals The primary goals of the LunarGLASS project are: Reduce the

LunarG, Inc. 153 Dec 8, 2022
Kexts enabling native support for Intel Bluetooth chipsets in macOS.

IntelBluetoothFamily Kexts enabling native support for Intel Bluetooth chipsets in macOS. Most of the code is complete, and I am now in the testing ph

null 136 Dec 19, 2022
LoRa Driver for Semtech SX1262 on Linux (PineDio USB Adapter) and BL602 (PineDio Stack BL604)

LoRa Driver for Semtech SX1262 on Linux (PineDio USB Adapter) and BL602 (PineDio Stack BL604) Read the articles... "Build a Linux Driver for PineDio L

Lee Lup Yuen 8 Sep 17, 2022
Loads a signed kernel driver which allows you to map any driver to kernel mode without any traces of the signed / mapped driver.

CosMapper Loads a signed kernel driver (signed with leaked cert) which allows you to map any driver to kernel mode without any traces of the signed /

null 157 Jan 2, 2023
Linux USB driver for the MOTU AVB series interfaces

motu-avb Linux USB driver for the MOTU AVB series interfaces Kernel parameters: samplerate: set the samplerate (its currently fixed at module load) de

null 47 Dec 23, 2022
Tiny and portable usb host and device stack for mcu with usb ip

Tiny and portable usb host and device stack for mcu with usb ip

sakumisu 545 Jan 2, 2023
USB-C_PCB_experiments - USB-C ports made from a flex PCB and an ATtiny84A

USB-C PCB Experiments This is part of an ongoing series of projects involving creative interpretations of the USB mechanical standards. You've probabl

Sam Ettinger 23 Sep 5, 2022
An unofficial Realtek PCIe/USB-based SD card reader driver for macOS

Realtek Card Reader Driver for macOS Unleash the full potential of your SDXC UHS-I cards Introduction An unofficial macOS kernel extension for Realtek

FireWolf 144 Dec 28, 2022
ESP32 software USB host through general IO pins. We can connect up to 4 USB-LS HID (keyboard mouse joystick) devices simultaneously.

esp32_usb_soft_host esp32 USB-LS pure software host thru general IO pins. Up to 4 HID devices simultaneously. board ~$3 :https://www.aliexpress.com/pr

Samsonov Dima 313 Jan 1, 2023
ESP8266 software USB host through general IO pins. We can connect up to 2 USB-LS HID (keyboard mouse joystick) devices simultaneously.

esp8266_usb_soft_host Test for esp8266 usb host . Works with ESP-IDF v3.4 80MHz and 160MHz. WorkInProgress Test run with mouse & combined mouse & keyb

Samsonov Dima 28 Sep 1, 2022
Anotter USB temperature logger that can record up to four channels with thermocouple or NTCs connected via CDC directly or SCPI to USB.

temperature-logger Anotter USB temperature logger that can record up to four channels with thermocouple or NTCs connected via CDC directly or SCPI to

Jana Marie Hemsing 50 Nov 24, 2022
Windows kernel-mode driver emulating well-known USB game controllers.

Windows kernel-mode driver emulating well-known USB game controllers.

Virtual Gamepad Emulation Framework 1.8k Jan 4, 2023
Scrollytroller is a crank-based USB controller, initially inteneded for use with Playdate's Pulp web-based game development tool

Scrollytroller Scrollytroller is a crank-based USB controller, initially inteneded for use with Playdate's Pulp web-based game development tool. This

Scott Lawrence 4 Feb 17, 2022
x64 Windows kernel driver mapper, inject unsigned driver using anycall

anymapper x64 Windows kernel driver mapper, inject unsigned driver using anycall This project is WIP. Todo Fix: Can't make API calls from IAT nor func

Kento Oki 72 Dec 26, 2022
Driver leap - Self-sustainable fork of SteamVR driver for Leap Motion controller with updated vendor libraries

Driver Leap Self-sustainable fork of SteamVR driver for Leap Motion controller with updated vendor libraries Installation (for users) Install Ultralea

null 68 Jan 5, 2023
Hygieia, a vulnerable driver traces scanner written in C++ as an x64 Windows kernel driver.

Hygieia The Greek goddess of health, her name is the source for the word "hygiene". Hygieia is a windows driver that works similarly to how pagewalkr

Deputation 103 Dec 4, 2022
SinMapper - usermode driver mapper that forcefully loads any signed kernel driver

usermode driver mapper that forcefully loads any signed kernel driver (legit cert) with a big enough section (example: .data, .rdata) to map your driver over. the main focus of this project is to prevent modern anti-cheats (BattlEye, EAC) from finding your driver and having the power to hook anything due to being inside of legit memory (signed legit driver).

null 170 Dec 29, 2022