Giter Club home page Giter Club logo

rtl8852au's People

Contributors

aganders3 avatar alexssd7 avatar dchagniot avatar gotti79 avatar iprok avatar jolestar avatar leonpano2006 avatar lwfinger avatar mela93 avatar moontide avatar nosuz avatar renardyreveur avatar s-2 avatar seantywork avatar shiqishao avatar ukyoda avatar virer avatar zyuelin avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

rtl8852au's Issues

Cannot allocate memory

Hi! I am unable to load the module.

[root@localhost rtl8852au]# insmod ./8852au.ko
insmod: ERROR: could not insert module ./8852au.ko: Cannot allocate memory
[root@localhost rtl8852au]# modprobe 8852au
modprobe: ERROR: could not insert '8852au': Cannot allocate memory
[root@localhost rtl8852au]# free -h
               total        used        free      shared  buff/cache   available
Mem:           2,0Gi       178Mi       716Mi       1,0Mi       1,1Gi       1,8Gi
Swap:          2,0Gi          0B       2,0Gi

dmesg:

[ 9755.528942] vmap allocation for size 13467648 failed: use vmalloc=<size> to increase size
[ 9755.528988] insmod: vmalloc error: size 13463552, vm_struct allocation failed, mode:0xcc0(GFP_KERNEL), nodemask=(null),cpuset=/,mems_allowed=0
[ 9755.529047] CPU: 0 PID: 6148 Comm: insmod Tainted: G        WC O      5.18.18-200.fc36.armv7hl #1
[ 9755.529062] Hardware name: Allwinner sun7i (A20) Family
[ 9755.529083]  unwind_backtrace from show_stack+0x18/0x1c
[ 9755.529117]  show_stack from dump_stack_lvl+0x40/0x4c
[ 9755.529142]  dump_stack_lvl from warn_alloc+0xa8/0x134
[ 9755.529165]  warn_alloc from __vmalloc_node_range+0xd8/0x440
[ 9755.529187]  __vmalloc_node_range from module_alloc+0x44/0x54
[ 9755.529208]  module_alloc from load_module+0xc68/0x23d4
[ 9755.529234]  load_module from sys_finit_module+0xdc/0xe8
[ 9755.529257]  sys_finit_module from ret_fast_syscall+0x0/0x1c
[ 9755.529279] Exception stack(0xf1331fa8 to 0xf1331ff0)
[ 9755.529295] 1fa0:                   00000061 00000000 00000003 0043fbac 00000000 00000c10
[ 9755.529310] 1fc0: 00000061 00000000 00000c10 0000017b 008e8210 00440650 00000002 00452da4
[ 9755.529321] 1fe0: beac3e30 beac3e20 00438c08 b6aa5170
[ 9755.529468] Mem-Info:
[ 9755.529487] active_anon:235 inactive_anon:13932 isolated_anon:0
                active_file:119293 inactive_file:149575 isolated_file:0
                unevictable:0 dirty:70 writeback:0
                slab_reclaimable:13829 slab_unreclaimable:9639
                mapped:27187 shmem:300 pagetables:1084 bounce:0
                kernel_misc_reclaimable:0
                free:182546 free_pcp:787 free_cma:24090
[ 9755.529521] Node 0 active_anon:940kB inactive_anon:55728kB active_file:477172kB inactive_file:598300kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:108748kB dirty:280kB writeback:0kB shmem:1200kB writeback_tmp:0kB kernel_stack:1352kB pagetables:4336kB all_unreclaimable? no
[ 9755.529548] DMA free:473332kB boost:0kB min:3372kB low:4212kB high:5052kB reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:61972kB inactive_file:41908kB unevictable:0kB writepending:0kB present:786432kB managed:742972kB mlocked:0kB bounce:0kB free_pcp:2308kB local_pcp:796kB free_cma:96360kB
[ 9755.529578] lowmem_reserve[]: 0 0 1277 1277
[ 9755.529601] HighMem free:256852kB boost:0kB min:512kB low:2060kB high:3608kB reserved_highatomic:0KB active_anon:940kB inactive_anon:55728kB active_file:415200kB inactive_file:556392kB unevictable:0kB writepending:280kB present:1307648kB managed:1307648kB mlocked:0kB bounce:0kB free_pcp:840kB local_pcp:516kB free_cma:0kB
[ 9755.529628] lowmem_reserve[]: 0 0 0 0
[ 9755.529649] DMA: 7*4kB (MEC) 7*8kB (UME) 6*16kB (ME) 4*32kB (MC) 7*64kB (MEC) 4*128kB (UM) 4*256kB (UM) 4*512kB (ME) 2*1024kB (ME) 4*2048kB (MC) 112*4096kB (MC) = 473332kB
[ 9755.529751] HighMem: 3019*4kB (M) 901*8kB (UM) 22*16kB (M) 347*32kB (UM) 247*64kB (UM) 49*128kB (UM) 39*256kB (UM) 37*512kB (M) 77*1024kB (UM) 37*2048kB (M) 5*4096kB (M) = 256852kB
[ 9755.529854] 269168 total pagecache pages
[ 9755.529859] 0 pages in swap cache
[ 9755.529864] Swap cache stats: add 0, delete 0, find 0/0
[ 9755.529872] Free swap  = 2050044kB
[ 9755.529877] Total swap = 2050044kB
[ 9755.529883] 523520 pages RAM
[ 9755.529888] 326912 pages HighMem/MovableOnly
[ 9755.529892] 10865 pages reserved
[ 9755.529897] 24576 pages cma reserved

Lots of warning in build

Getting a bunch of warnings when building on Ubuntu 22.04, like:

/home/routeradmin/rtl8852au/phl/hal_g6/mac/mac_ax/hw.c: In function ‘cfg_mac_bw’:
/home/routeradmin/rtl8852au/phl/hal_g6/mac/mac_ax/hw.c:1586:26: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1586 |                 txsc80 = rtw_hal_bb_get_txsc(hal_com, cfg->pri_ch,
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1587 |                                              cfg->central_ch, cfg->cbw,
      |                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~
 1588 |                                              CHANNEL_WIDTH_80);
      |                                              ~~~~~~~~~~~~~~~~~
/home/routeradmin/rtl8852au/phl/hal_g6/mac/mac_ax/hw.c:1590:9: note: here
 1590 |         case CHANNEL_WIDTH_80:

and

/home/routeradmin/rtl8852au/os_dep/linux/ioctl_mp.c:1018:9: warning: ISO C90 forbids variable length array ‘input’ [-Wvla]
 1018 |         u8 input[wrqu->data.length + 1];
      |         ^~
/home/routeradmin/rtl8852au/os_dep/linux/ioctl_mp.c: In function ‘rtw_mp_arx’:

Are these expected/normal?

(Driver seems to work with this device, VID_0BDA PID_885C, though haven't tested thoroughly beyond connecting to an access point and doing a speed test.)

Driver not recognizing device: 0bda:885c Realtek Semiconductor Corp. 802.11ax WLAN Adapter

lsusb -v
Bus 001 Device 007: ID 0bda:885c Realtek Semiconductor Corp. 802.11ax WLAN Adapter
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0bda Realtek Semiconductor Corp.
  idProduct          0x885c 
  bcdDevice            0.00
  iManufacturer           1 Realtek
  iProduct                2 802.11ax WLAN Adapter
  iSerial                 3 00e04c000001
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x004a
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           8
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              2 802.11ax WLAN Adapter
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x05  EP 5 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x06  EP 6 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x07  EP 7 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x09  EP 9 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x0a  EP 10 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x0b  EP 11 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x0c  EP 12 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered

After installing rtw89-dkms the device still doesn't show up in ip link

These files could be found under /lib/modules/6.1.11-arch1-1/updates/dkms/

rtw_8852ae.ko.zst
rtw_8852a.ko.zst
rtw_8852be.ko.zst
rtw_8852b.ko.zst
rtw_8852ce.ko.zst
rtw_8852c.ko.zst
rtw89core.ko.zst
rtw89pci.ko.zst

Loading all of them couldn't solve the problem

cant install on raspberry pi running retropie

hi im trying to get my wifi 6 usb adapter to work on retropie but when i try to compile it i get an error but it works when i do ARCH=arm make but then it wont install it gives me the error install: cannot stat '8852au.ko': No such file or directory

Kernel crash

I am using rtl8852au, commit 1bf2f7b to drive a TP-Link Archer TX20U Plus (USB ID: 2357:013f) on an Ubuntu 22.04 laptop with kernel 5.15.0-58-generic. The build is done via 'dkms install'.
Today, while using wifi, the machine froze and after reboot I found these lines in the system log before the freeze:
"""
Jan 27 20:55:40 ubuntu kernel: ? add_ba_hdl+0xe6/0xe6 [8852au]
Jan 27 20:55:40 ubuntu kernel: rtw_run_cmd+0x98/0x16e [8852au]
Jan 27 20:55:40 ubuntu kernel: phl_run_core_cmd+0x3c/0x9c [8852au]
Jan 27 20:55:40 ubuntu kernel: phl_cmd_complete+0xb1/0x186 [8852au]
Jan 27 20:55:40 ubuntu kernel: push_back_idle_msg+0x56/0x12a [8852au]
Jan 27 20:55:40 ubuntu kernel: msg_dispatch+0x15a/0x24e [8852au]
Jan 27 20:55:40 ubuntu kernel: dispr_thread_loop_hdl+0x19e/0x1a8 [8852au]
Jan 27 20:55:40 ubuntu kernel: dispr_share_thread_loop_hdl+0xe/0x14 [8852au]
Jan 27 20:55:40 ubuntu kernel: share_thread_hdl+0x6a/0xfe [8852au]
Jan 27 20:55:40 ubuntu kernel: ? phl_ps_leave_ps+0x2f/0x2f [8852au]
Jan 27 20:55:40 ubuntu kernel: kthread+0x12a/0x150
Jan 27 20:55:40 ubuntu kernel: ? set_kthread_struct+0x50/0x50
Jan 27 20:55:40 ubuntu kernel: ret_from_fork+0x22/0x30
Jan 27 20:55:40 ubuntu kernel:
Jan 27 20:55:40 ubuntu kernel: ================================================================================
Jan 27 20:55:40 ubuntu kernel: ================================================================================
Jan 27 20:55:40 ubuntu kernel: UBSAN: array-index-out-of-bounds in /var/lib/dkms/rtl8852au/1.15.0.1/build/phl/phl_rx_agg.c:252:36
Jan 27 20:55:40 ubuntu kernel: index 8 is out of range for type 'phl_tid_ampdu_rx *[8]'
Jan 27 20:55:40 ubuntu kernel: CPU: 6 PID: 11728 Comm: disp_eng_share
Tainted: P OE 5.15.0-58-generic #64-Ubuntu
Jan 27 20:55:40 ubuntu kernel: Hardware name: LENOVO 20UES17F00/20UES17F00, BIOS R1BET73W(1.42 ) 12/09/2022
Jan 27 20:55:40 ubuntu kernel: Call Trace:
Jan 27 20:55:40 ubuntu kernel:
Jan 27 20:55:40 ubuntu kernel: show_stack+0x52/0x5c
Jan 27 20:55:40 ubuntu kernel: dump_stack_lvl+0x4a/0x63
Jan 27 20:55:40 ubuntu kernel: dump_stack+0x10/0x16
Jan 27 20:55:40 ubuntu kernel: ubsan_epilogue+0x9/0x49
Jan 27 20:55:40 ubuntu kernel: __ubsan_handle_out_of_bounds.cold+0x44/0x49
Jan 27 20:55:40 ubuntu kernel: rtw_phl_start_rx_ba_session+0x126/0x140 [8852au]
Jan 27 20:55:40 ubuntu kernel: ? add_ba_hdl+0xe6/0xe6 [8852au]
Jan 27 20:55:40 ubuntu kernel: add_ba_rsp_hdl+0xd1/0x1ba [8852au]
Jan 27 20:55:40 ubuntu kernel: ? add_ba_hdl+0xe6/0xe6 [8852au]
Jan 27 20:55:40 ubuntu kernel: rtw_run_cmd+0x98/0x16e [8852au]
Jan 27 20:55:40 ubuntu kernel: phl_run_core_cmd+0x3c/0x9c [8852au]
Jan 27 20:55:40 ubuntu kernel: _phl_cmd_complete+0xb1/0x186 [8852au]
Jan 27 20:55:40 ubuntu kernel: push_back_idle_msg+0x56/0x12a [8852au]
Jan 27 20:55:40 ubuntu kernel: msg_dispatch+0x15a/0x24e [8852au]
Jan 27 20:55:40 ubuntu kernel: dispr_thread_loop_hdl+0x19e/0x1a8 [8852au]
Jan 27 20:55:40 ubuntu kernel: dispr_share_thread_loop_hdl+0xe/0x14 [8852au]
Jan 27 20:55:40 ubuntu kernel: share_thread_hdl+0x6a/0xfe [8852au]
Jan 27 20:55:40 ubuntu kernel: ? phl_ps_leave_ps+0x2f/0x2f [8852au]
Jan 27 20:55:40 ubuntu kernel: kthread+0x12a/0x150
Jan 27 20:55:40 ubuntu kernel: ? set_kthread_struct+0x50/0x50
Jan 27 20:55:40 ubuntu kernel: ret_from_fork+0x22/0x30
Jan 27 20:55:40 ubuntu kernel:
Jan 27 20:55:40 ubuntu kernel: ================================================================================
Jan 27 20:55:40 ubuntu kernel: BUG: kernel NULL pointer dereference, address: 0000000000000031
Jan 27 20:55:40 ubuntu kernel: #PF: supervisor read access in kernel mode
Jan 27 20:55:40 ubuntu kernel: #PF: error_code(0x0000) - not-present page
"""

Kernel trace when plug-off the device.

Hi

First of all thanks for the driver.

I bought an BrosTrend AX1800
Bus 001 Device 035: ID 0bda:8832 Realtek Semiconductor Corp. 802.11ac WLAN Adapter

A few patching and the driver builds without errors or warnings.
https://build.opensuse.org/package/show/home:Sauerland/rtl8852au

Working as expected but when I pull off the Wlan Device I get:
Aug 23 17:05:30 linux64 kernel: usb 1-1: USB disconnect, device number 23
Aug 23 17:05:30 linux64 kernel: ------------[ cut here ]------------
Aug 23 17:05:30 linux64 kernel: WARNING: CPU: 3 PID: 28234 at /home/abuild/rpmbuild/BUILD/rtl8852au-1.15.0.1~3g716e525/obj/default/phl/phl_role.c:1006 rtw_phl_wifi_role_free+0x27/0x4c [8852au]
Aug 23 17:05:30 linux64 kernel: Modules linked in: 8852au(ON) xfs rfcomm b43legacy(N) b43(N) cordic bcma(N) mac80211 libarc4 ssb mmc_core tun nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver fscache netfs libdes nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat af_packet cmac algif_hash algif_skcipher af_alg nf_tables ebtable_nat ebtable_broute ip6table_nat ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 iptable_mangle iptable_raw iptable_security bridge stp llc iscsi_ibft iscsi_boot_sysfs ip_set nfnetlink ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter vboxnetadp(ON) bpfilter vboxnetflt(ON) vboxdrv(ON) qrtr(N) ns(N) r8153_ecm(N) bnep joydev dmi_sysfs r8152(OX) btusb btrtl btbcm btintel btmtk bluetooth uvcvideo videobuf2_vmalloc videobuf2_memops uas snd_usb_audio videobuf2_v4l2 cdc_ether usb_storage videobuf2_common usbnet snd_usbmidi_lib mii
Aug 23 17:05:30 linux64 kernel: ecdh_generic videodev snd_rawmidi snd_seq_device mc hid_generic usbhid binfmt_misc intel_rapl_msr intel_rapl_common intel_tcc_cooling(N) nls_iso8859_1 snd_hda_codec_realtek ext4 nls_cp437 x86_pkg_temp_thermal intel_powerclamp snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi vfat iTCO_wdt fat intel_pmc_bxt snd_hda_intel coretemp iTCO_vendor_support crc16 mbcache mfd_core mei_hdcp(N) mei_pxp snd_intel_dspcfg ee1004(N) jbd2 snd_intel_sdw_acpi snd_hda_codec kvm_intel eeepc_wmi(N) asus_wmi snd_hda_core battery snd_hwdep mei_me kvm snd_pcm i2c_i801 sparse_keymap snd_timer irqbypass platform_profile wmi_bmof pcspkr efi_pstore(N) i2c_smbus mei snd thermal soundcore fan intel_pmc_core acpi_pad fuse loop configfs ip_tables x_tables sd_mod crc32_pclmul t10_pi sr_mod crc64_rocksoft_generic cdrom crc64_rocksoft crc64 ghash_clmulni_intel wl(PON) r8168(ON) nouveau(N) drm_ttm_helper ttm i2c_algo_bit drm_display_helper mxm_wmi(N) aesni_intel crypto_simd drm_kms_helper
Aug 23 17:05:30 linux64 kernel: cfg80211 xhci_pci xhci_pci_renesas syscopyarea sysfillrect xhci_hcd sysimgblt fb_sys_fops ahci drm libahci cryptd libata usbcore cec rfkill rc_core wmi video button btrfs blake2b_generic libcrc32c crc32c_intel xor raid6_pq sg dm_multipath dm_mod scsi_dh_rdac scsi_dh_emc scsi_dh_alua scsi_mod msr efivarfs [last unloaded: 8852bu]
Aug 23 17:05:30 linux64 kernel: Supported: No, Proprietary and Unsupported modules are loaded
Aug 23 17:05:30 linux64 kernel: CPU: 3 PID: 28234 Comm: kworker/3:0 Tainted: P W O X N 5.14.21-150500.55.19-default #1 SLE15-SP5 a29285bac85e8baa0757c512c91f36229b4faaae
Aug 23 17:05:30 linux64 kernel: Hardware name: System manufacturer System Product Name/PRIME Z270-P, BIOS 1205 05/11/2018
Aug 23 17:05:30 linux64 kernel: Workqueue: usb_hub_wq hub_event [usbcore]
Aug 23 17:05:30 linux64 kernel: RIP: 0010:rtw_phl_wifi_role_free+0x27/0x4c [8852au]
Aug 23 17:05:30 linux64 kernel: Code: cc cc cc 0f 1f 44 00 00 40 84 f6 74 05 c3 cc cc cc cc 55 53 48 89 fb 48 8b af 18 11 00 00 48 89 ee e8 a5 ff ff ff 85 c0 74 02 <0f> 0b 48 89 ee 48 89 df e8 27 10 00 00 85 c0 74 02 0f 0b 48 89 ee

and more

Is this normal?

Network keeps disconnecting and asking for Auth

First off, thanks a ton for all of your hard an amazing work!
I am having trouble with constant disconnection and NetworkManager keeps asking me for the wifi password even though I have supplied and saved it.

System Info:

Kernel: 6.4.12-arch1-1
OS: EndeavourOS - 2023.02.08

journalctl -u wpa_supplicant.service -f error output:

wlan0: CTRL-EVENT-CONNECTED - Connection to XX:XX:XX:XX:XX:XX completed [id=0 id_str=]
bgscan simple: Failed to enable signal strength monitoring
MBO: Disable MBO/OCE due to misbehaving AP not having enabled PMF
wlan0: CTRL-EVENT-DISCONNECTED bssid=XX:XX:XX:XX:XX:XX reason=3 locally_generated=1

inxi -Fxza --no-host:

IF: enp4s0 state: down mac: <filter>
  Device-2: Realtek 802.11ax WLAN Adapter driver: rtl8852au type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 5-4:4 chip-ID: 0bda:885c
    class-ID: 0000 serial: <filter>
  IF: wlan0 state: up mac: <filter>

Invalid RSNE capabilities (0x002d) when try to connect with Tenda AX12Pro.

STAUT: ASUS USB-AX56
Driver: 9cd89a3
PC: OptiPlex 7090 SFF
OS: Ubuntu 22.04.1, Kernel: 5.15.0-43

Reproduced steps:
Step 1. Set Tenda AX12Pro security mode to WPA2-PSK.
Step 2. STAUT connects to this AP.

Actual result:
Connection failed.

STAUT association request:
image

AP association response:
image

Should the RSN Capabilities be 0x0000 in STAUT's association request?

Combine with RTL8852BU?

Currently we are developing a new produce with 8852bu and I just randomly found this place. Besides our shared hatred to how many debug messages this thing prints I saw a lot of mentioning of AU and CU variants in the code. This leads me wondering if we can combine our existing codes together, so the maintenance effort can be shared between those 2 very similar devices.

We published our code at https://github.com/radxa/rtl8852bu. Vendor version rtl8852BU_WiFi_linux_v1.15.7-112-g1d36f2f7.20211227.

does not work with Linux 5.4.0-126-generic #141-Ubuntu 20.04.5 LTS

Hello,
first of all thank you for the work that allows me to use my Asus AX56 Wifi USB key.

Apart from some details it worked well on the lower kernels 5.4.0-126-generic, with the latter I can not make the USB key work (currently to work, I boot with the kernel 5.4.0-125-generic)

In the marginal problems, the operation led does not light up.
I can't get it to boot directly in Wifi mode, it always starts with the internal disk unmounted, I have to eject it to get Wifi
This key is USB3, but I have to make it work on my self powered usb2 hub, on the self powered USB3 hub it doesn't seem to work, and on the direct ports of the PC, it works only a few minutes, probably due to a lack of current provided by the motherboard.

I'm not an expert in hardware configuration and debugging, but I'm willing to help you improve your code.
Please let me know if I can give you some logs to find out what could be wrong.

Bus 001 Device 011: ID 0b05:1997 ASUSTek Computer, Inc. USB2.0 Hub

led not working

Hello all,

setting the lbkmode to 1 does not activate the LED
ex:
sudo sh -c "echo '1' > /sys/module/8852au/parameters/rtw_lbkmode"

I have the D-Link DWA-ax1850.

Activate USB 3 interface

Hello,

I have the D-Link DWA-X1850 but it's not loading as USB3.

Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            9 Hub
  bDeviceSubClass         0 
  bDeviceProtocol         2 TT per port
  bMaxPacketSize0        64
  idVendor           0x0bda Realtek Semiconductor Corp.
  idProduct          0x5411 RTS5411 Hub
  bcdDevice            1.17
  iManufacturer           1 Generic
  iProduct                2 4-Port USB 2.0 Hub
  iSerial                 0 
  bNumConfigurations      1
  [...]
    USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x0000f41e
      BESL Link Power Management (LPM) Supported
    BESL value     1024 us 
    Deep BESL value    61440 us 
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x00
    wSpeedsSupported   0x000e
      Device can operate at Full Speed (12Mbps)
      Device can operate at High Speed (480Mbps)
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat          10 micro seconds
    bU2DevExitLat        1023 micro seconds

UPDATE:

I've put the option rtw_switch_usb_mode=1 when loading the module, e.g:

cat /etc/modules-load.d/8852au.conf
options 8852au rtw_switch_usb_mode=1

And now the device speed raised from 480M(before) to 5000M:

lsusb -t |grep Driver=rtl8852au
        |__ Port 4: Dev 4, If 0, Class=Vendor Specific Class, Driver=rtl8852au, 5000M

lsusb -d 0bda:5411 -v | grep bcdUSB
  bcdUSB               2.10

But the download speed hasn't changed =/2

Must be LITTLE/BIG Endian Host

I'm getting the following error when attempting to build it on a rpi4 with kernel 5.15.61.

#rm -f .symvers.8852au
make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/5.15.61-v8+/build/ M=/home/terramot                                                                                                                 o/rtl8852au  modules
make[1]: Entering directory '/home/terramoto/linux-5b775d7293eb75d6dfc9c5ffcb95c50                                                                                                                 12cd0c3f8'
  CC [M]  /home/terramoto/rtl8852au/os_dep/osdep_service.o
In file included from /home/terramoto/rtl8852au/include/drv_types.h:26,
                 from /home/terramoto/rtl8852au/os_dep/osdep_service.c:17:
/home/terramoto/rtl8852au/include/rtw_byteorder.h:30:5: error: #error "Must be LIT                                                                                                                 TLE/BIG Endian Host"
   30 |  #  error "Must be LITTLE/BIG Endian Host"
      |     ^~~~~
make[2]: *** [scripts/Makefile.build:289: /home/terramoto/rtl8852au/os_dep/osdep_s                                                                                                                 ervice.o] Error 1
make[1]: *** [Makefile:1898: /home/terramoto/rtl8852au] Error 2
make[1]: Leaving directory '/home/terramoto/linux-5b775d7293eb75d6dfc9c5ffcb95c501                                                                                                                 2cd0c3f8'
make: *** [Makefile:639: modules] Error 2

$ uname -a
Linux RPI4 5.15.61-v8+ #1579 SMP PREEMPT Fri Aug 26 11:16:44 BST 2022 aarch64 GNU/Linux

Most likely something i'm doing wrong, just not sure what.

Build error : fallthrough

Hi, regards to changes in 803fc78

ioctl_cfg80211.c  CC [M]  /var/lib/dkms/8852au/20230905/build/os_dep/linux/rtw_android.o
In file included from /var/lib/dkms/8852au/20230905/build/include/drv_types.h:23,
                 from /var/lib/dkms/8852au/20230905/build/os_dep/linux/ioctl_cfg80211.c:17:
/var/lib/dkms/8852au/20230905/build/os_dep/linux/ioctl_cfg80211.c: In function 'rtw_get_chbwoff_from_cfg80211_chan_def':
/var/lib/dkms/8852au/20230905/build/include/drv_conf.h:54:22: error: expected expression before 'do'
   54 | #define fallthrough (do {} while(0))
      |                      ^~
/var/lib/dkms/8852au/20230905/build/os_dep/linux/ioctl_cfg80211.c:6270:17: note: in expansion of macro 'fallthrough'
 6270 |                 fallthrough;
      |                 ^~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:303: /var/lib/dkms/8852au/20230905/build/os_dep/linux/ioctl_cfg80211.o] Error 1
make[2]: *** Waiting for unfinished jobs....

ASUS USB-AX56 rtl8852au state DOWN on resume

Hi, Im unable to set this device in UP state any more. This device has always had issues after resuming from suspend and wakeing up and I had to manually unplug it and insert to get it to change to UP state.
But today its just hellbent on staying DOWN.

4: wlp0s16f0u1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DORMANT group default 
    qlen 1000 link/ether 04:42:1a:5c:61:d2 brd ff:ff:ff:ff:ff:ff

I did a kernel update yesterday to Linux void 5.10.180_1 #1 SMP x86_64 GNU/Linux and the module built fine, installed, worked. Did some suspends yesterday too and while it had to be unplugged and so on it would still resume UP state. Tried now updateing the driver to last commit 20230505 too, but it just stuck.

// log
dmesg.txt

Any input would be appreciated, thank you

// SOLVED
EDIT: After noticing a rename change from wlp0s16f0u2, I renamed to /etc/wpa_supplicant/wpa_supplicant-wlp0s16f0u1.conf and state is now UP.

Gonna leave this open for a moment to figure out why the device wont go UP resuming from suspend.
DOWN on resume again but I dont understand why

// resume log
resume_dmesg.txt

[Jetson] *** No rule to make target 'arch/aarch64/Makefile'. Stop.

Hello!
I am trying to install the ASUS AX1800 WiFi adapter in an Nvidia Jetson Xavier NX developer card. It has the following specs:
Architecture: AARCH64
Kernel: 5.10.104-tegra.
Operative system: Ubuntu 20.04 (focal)

I am encountering the following error when executing the make command:

ubuntu@ubuntu:~/drivers/rtl8852au$ make
#rm -f .symvers.8852au
make ARCH=aarch64 CROSS_COMPILE= -C /lib/modules/5.10.104-tegra/build M=/home/leolabs/drivers/rtl8852au  modules
make[1]: Entering directory '/usr/src/linux-headers-5.10.104-tegra-ubuntu20.04_aarch64/kernel-5.10'
Makefile:712: arch/aarch64/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/aarch64/Makefile'.  Stop.
make[1]: Leaving directory '/usr/src/linux-headers-5.10.104-tegra-ubuntu20.04_aarch64/kernel-5.10'
make: *** [Makefile:638: modules] Error 2

It might be related to this issue.

Any advice is highly appreciated.
Thank you in advance.

Build is broken due to erros in macro definitions

After commit 696f3fe (rtw8852au: Remove reliance on old form of ENDIAN.) build on amd64 platform is broken.

Terminal output:

In file included from /home/sergey/project/github.com/rtl8852au/phl/hal_g6/phy/bb/halbb_export_fun.h:43,
                 from /home/sergey/project/github.com/rtl8852au/phl/hal_g6/hal_api_bb.c:17:
/home/sergey/project/github.com/rtl8852au/phl/hal_g6/phy/bb/halbb_ch_info_ex.h:66:16: ошибка: имена макросов должны быть идентификаторами
   66 |         #ifdef (__LITTLE_ENDIAN)
      |                ^
/home/sergey/project/github.com/rtl8852au/phl/hal_g6/phy/bb/halbb_ch_info_ex.h:75:16: ошибка: имена макросов должны быть идентификаторами
   75 |         #ifdef (__LITTLE_ENDIAN)
      |                ^
/home/sergey/project/github.com/rtl8852au/phl/hal_g6/phy/bb/halbb_ch_info_ex.h:95:16: ошибка: имена макросов должны быть идентификаторами
   95 |         #ifdef (__LITTLE_ENDIAN)
      |                ^
make[2]: *** [scripts/Makefile.build:249: /home/sergey/project/github.com/rtl8852au/phl/hal_g6/hal_api_bb.o] Ошибка 1
make[1]: *** [Makefile:1852: /home/sergey/project/github.com/rtl8852au] Ошибка 2
make[1]: выход из каталога «/usr/lib/modules/6.0.5-arch1-1/build»
make: *** [Makefile:639: modules] Ошибка 2

Sorry for localized messages. They mean:

(ru) ошибка: имена макросов должны быть идентификаторами
(en)  error: macro names    must   be   identifiers

I fixed build by removing brackets from the definitions:

#ifdef __LITTLE_ENDIAN

Platform info:

Operating System: Arch Linux
Kernel Version: 6.0.5-arch1-1 (64-bit)
Processors: 12 × Intel® Core™ i5-10500 CPU @ 3.10GHz

[sergey@serenity rtl8852au]$ gcc -v --version
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/lto-wrapper
gcc (GCC) 12.2.0

Just thank you !

Dear Larry
Running OpenSUSE Leap 15.14.21 (on 2022-07-29) on HP Probook 6470b (a 10 years old laptop)
I compiled your code and it works fine with my USB key D-Link D-Link DWA-X1850 S (WiFi 6).
Well, the blue LED don't flash but this is not a problem!

Many thanks for your work !

Patrice Moreaux (from France)

Ax56 Unusual work

Hi, thanks for your work.
I am new to Linux, i am trying to find compatible driver for 0b05:1997 Asus ax56, tried almost everything.
When i`m installing your driver, it works fine for couple of second and then lags. For example speedtest shows different speeds as it should and then freezes. Hub is usb 3.0, where is my mistake?
I am using Ubuntu 22.04
lsusb shows: "Bus 003 Device 015: ID 0b05:1997 ASUSTek Computer, Inc. 802.11ac WLAN Adapter"

Device no longer detected when switching USB ports, have to reboot

I am using an ASUS USB-AX56 (0b05:1997 ASUSTek Computer, Inc. 802.11ac WLAN Adapter) and it works well apart from one issue: I (unsafely) unplugged the device and moved it to a different USB port and then it failed to detect the device. I did this in a few more USB ports including the original one it was moved from in the first place, the device was no longer detected in any USB port. The only way I've found to get it to detect the device again was to reboot my computer. This isn't a huge issue as I don't intend on shuffling USB ports like this unless adding new permanent hardware peripherals to my machine, which doesn't happen very often (apart from today).

Kernel: 5.4.0-144-generic

Logs at the time I removed the device

Mar 19 00:19:58.404887 Hoth kernel: WARNING: CPU: 2 PID: 2557039 at /opt/oss/rtl8852au/phl/phl_role.c:1006 rtw_phl_wifi_role_free+0x28/0x4b [8852au]
Mar 19 00:19:58.404949 Hoth kernel: Modules linked in: nfnetlink_queue nfnetlink_log bluetooth ecdh_generic ecc 8852au(OE) option usb_wwan usbserial cfg80211 uas usb_storage dm_crypt xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink >
Mar 19 00:19:58.405044 Hoth kernel:  snd_usbmidi_lib snd_hwdep videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 snd_seq_midi videobuf2_common snd_seq_midi_event videodev input_leds snd_pcm binfmt_misc snd_rawmidi usblp joydev mc eeepc_wmi a>
Mar 19 00:19:58.405116 Hoth kernel: CPU: 2 PID: 2557039 Comm: kworker/2:2 Tainted: P           OE     5.4.0-144-generic #161-Ubuntu
Mar 19 00:19:58.405174 Hoth kernel: Hardware name: ASUS All Series/Z97-PRO GAMER, BIOS 2203 02/26/2016
Mar 19 00:19:58.405236 Hoth kernel: Workqueue: usb_hub_wq hub_event
Mar 19 00:19:58.405388 Hoth kernel: RIP: 0010:rtw_phl_wifi_role_free+0x28/0x4b [8852au]
Mar 19 00:19:58.405451 Hoth kernel: Code: c9 c3 0f 1f 44 00 00 40 84 f6 74 01 c3 55 48 89 e5 41 54 53 48 89 fb 4c 8b a7 18 11 00 00 4c 89 e6 e8 97 ff ff ff 85 c0 74 02 <0f> 0b 4c 89 e6 48 89 df e8 43 10 00 00 85 c0 74 02 0f 0b 4c 89 e6
Mar 19 00:19:58.405511 Hoth kernel: RSP: 0018:ffffaba74d0f3948 EFLAGS: 00010202
Mar 19 00:19:58.405575 Hoth kernel: RAX: 0000000000000001 RBX: ffffaba74b8ad000 RCX: 0000000000000001
Mar 19 00:19:58.405639 Hoth kernel: RDX: 0000000000000001 RSI: 0000000055555554 RDI: 7fffffffffffffff
Mar 19 00:19:58.405698 Hoth kernel: RBP: ffffaba74d0f3958 R08: 0000000000000000 R09: 0000000000000001
Mar 19 00:19:58.405758 Hoth kernel: R10: ffff9e46beaaeb80 R11: ffff9e46beaaeb60 R12: ffffaba742483000
Mar 19 00:19:58.405818 Hoth kernel: R13: 0000000000000001 R14: ffffaba74d0f3a28 R15: ffffaba74d0f3a28
Mar 19 00:19:58.405883 Hoth kernel: FS:  0000000000000000(0000) GS:ffff9e46bea80000(0000) knlGS:0000000000000000
Mar 19 00:19:58.405956 Hoth kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Mar 19 00:19:58.406018 Hoth kernel: CR2: 00007f1ead6c2000 CR3: 00000005e060a005 CR4: 00000000001606e0
Mar 19 00:19:58.406077 Hoth kernel: Call Trace:
Mar 19 00:19:58.406136 Hoth kernel:  rtw_hw_iface_deinit+0x34/0x42 [8852au]
Mar 19 00:19:58.406197 Hoth kernel:  netdev_close+0x7b/0xe7 [8852au]
Mar 19 00:19:58.406257 Hoth kernel:  __dev_close_many+0xa5/0x120
Mar 19 00:19:58.406310 Hoth kernel:  dev_close_many+0x91/0x150
Mar 19 00:19:58.406357 Hoth kernel:  rollback_registered_many+0x139/0x520
Mar 19 00:19:58.406377 Hoth kernel:  unregister_netdevice_queue+0x94/0x120
Mar 19 00:19:58.406398 Hoth kernel:  unregister_netdev+0x1d/0x30
Mar 19 00:19:58.406423 Hoth kernel:  rtw_os_ndev_unregister+0x5e/0xa2 [8852au]
Mar 19 00:19:58.406444 Hoth kernel:  rtw_os_ndevs_unregister+0x27/0x32 [8852au]
Mar 19 00:19:58.406469 Hoth kernel:  rtw_dev_remove+0x32/0x12f [8852au]
Mar 19 00:19:58.406491 Hoth kernel:  usb_unbind_interface+0x8c/0x260
Mar 19 00:19:58.406513 Hoth kernel:  device_release_driver_internal+0xf4/0x1d0
Mar 19 00:19:58.406536 Hoth kernel:  device_release_driver+0x12/0x20
Mar 19 00:19:58.406558 Hoth kernel:  bus_remove_device+0xe1/0x150
Mar 19 00:19:58.406580 Hoth kernel:  device_del+0x165/0x370
Mar 19 00:19:58.406600 Hoth kernel:  ? usb_remove_ep_devs+0x1f/0x30
Mar 19 00:19:58.406623 Hoth kernel:  usb_disable_device+0x95/0x1c0
Mar 19 00:19:58.406649 Hoth kernel:  usb_disconnect+0xc0/0x270
Mar 19 00:19:58.406671 Hoth kernel:  hub_port_connect+0x83/0x890
Mar 19 00:19:58.406693 Hoth kernel:  port_event+0x4f7/0x770
Mar 19 00:19:58.406728 Hoth kernel:  hub_event+0x157/0x3b0
Mar 19 00:19:58.406752 Hoth kernel:  process_one_work+0x1eb/0x3b0
Mar 19 00:19:58.406775 Hoth kernel:  worker_thread+0x4d/0x400
Mar 19 00:19:58.406799 Hoth kernel:  kthread+0x104/0x140
Mar 19 00:19:58.406822 Hoth kernel:  ? process_one_work+0x3b0/0x3b0
Mar 19 00:19:58.406844 Hoth kernel:  ? kthread_park+0x90/0x90
Mar 19 00:19:58.406872 Hoth kernel:  ret_from_fork+0x35/0x40
Mar 19 00:19:58.406895 Hoth kernel: ---[ end trace ac36eafbf96bd826 ]---
Mar 19 00:22:03.574166 Hoth kernel: sd 6:0:0:0: [sde] No Caching mode page found
Mar 19 00:22:03.574431 Hoth kernel: sd 6:0:0:0: [sde] Assuming drive cache: write through
Mar 19 00:23:26.540793 Hoth kernel: VFS: busy inodes on changed media or resized disk sde
Mar 19 00:23:29.586953 Hoth kernel: sd 6:0:0:0: [sde] No Caching mode page found
Mar 19 00:23:29.587320 Hoth kernel: sd 6:0:0:0: [sde] Assuming drive cache: write through
Mar 19 00:24:54.300747 Hoth kernel: VFS: busy inodes on changed media or resized disk sde
Mar 19 00:24:54.360746 Hoth kernel: scsi 6:0:0:0: rejecting I/O to dead device
Mar 19 00:24:58.451503 Hoth kernel: sd 6:0:0:0: [sde] No Caching mode page found
Mar 19 00:24:58.451636 Hoth kernel: sd 6:0:0:0: [sde] Assuming drive cache: write through
Mar 19 00:26:25.171287 Hoth kernel: sd 6:0:0:0: [sde] No Caching mode page found
Mar 19 00:26:25.171653 Hoth kernel: sd 6:0:0:0: [sde] Assuming drive cache: write through
Mar 19 00:27:18.577984 Hoth kernel: sd 6:0:0:0: [sde] No Caching mode page found
Mar 19 00:27:18.578241 Hoth kernel: sd 6:0:0:0: [sde] Assuming drive cache: write through
Mar 19 00:28:37.458903 Hoth kernel: sd 6:0:0:0: [sde] No Caching mode page found
Mar 19 00:28:37.459266 Hoth kernel: sd 6:0:0:0: [sde] Assuming drive cache: write through
Mar 19 00:28:37.482343 Hoth kernel: blk_update_request: I/O error, dev sde, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Mar 19 00:28:37.482395 Hoth kernel: Buffer I/O error on dev sde, logical block 0, async page read
Mar 19 00:28:37.482429 Hoth kernel: blk_update_request: I/O error, dev sde, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Mar 19 00:28:37.482452 Hoth kernel: Buffer I/O error on dev sde, logical block 0, async page read
Mar 19 00:28:37.482470 Hoth kernel: blk_update_request: I/O error, dev sde, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Mar 19 00:28:37.482493 Hoth kernel: Buffer I/O error on dev sde, logical block 0, async page read
Mar 19 00:28:37.482538 Hoth kernel: blk_update_request: I/O error, dev sde, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Mar 19 00:28:37.482559 Hoth kernel: Buffer I/O error on dev sde, logical block 0, async page read
Mar 19 00:28:37.482581 Hoth kernel: blk_update_request: I/O error, dev sde, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Mar 19 00:28:37.482606 Hoth kernel: Buffer I/O error on dev sde, logical block 0, async page read
Mar 19 00:28:37.482627 Hoth kernel: blk_update_request: I/O error, dev sde, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Mar 19 00:28:37.482647 Hoth kernel: Buffer I/O error on dev sde, logical block 0, async page read
Mar 19 00:28:37.482673 Hoth kernel: blk_update_request: I/O error, dev sde, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Mar 19 00:28:37.482692 Hoth kernel: Buffer I/O error on dev sde, logical block 0, async page read
Mar 19 00:28:37.482709 Hoth kernel: Dev sde: unable to read RDB block 0
Mar 19 00:28:37.482734 Hoth kernel: blk_update_request: I/O error, dev sde, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Mar 19 00:28:37.482752 Hoth kernel: Buffer I/O error on dev sde, logical block 0, async page read
Mar 19 00:28:37.482770 Hoth kernel: blk_update_request: I/O error, dev sde, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Mar 19 00:28:37.482789 Hoth kernel: Buffer I/O error on dev sde, logical block 0, async page read
Mar 19 00:28:37.482807 Hoth kernel: blk_update_request: I/O error, dev sde, sector 24 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Mar 19 00:28:37.482828 Hoth kernel: Buffer I/O error on dev sde, logical block 3, async page read
Mar 19 00:31:12.978511 Hoth kernel: sd 6:0:0:0: [sde] No Caching mode page found
Mar 19 00:31:12.978796 Hoth kernel: sd 6:0:0:0: [sde] Assuming drive cache: write through
Mar 19 00:32:47.329513 Hoth kernel: usbhid 3-10:1.1: can't add hid device: -110
Mar 19 00:32:47.330170 Hoth kernel: usbhid: probe of 3-10:1.1 failed with error -110

Suggestion: Correcting the Broken Repository Link in Installation Instructions

In the installation instructions, there is a broken repository link. In the section Installation with module signing for SecureBoot, it mentions the following steps:

git clone git://github.com/lwfinger/rtl8814au.git
cd rtl8814au
make
sudo make sign-install

However, there is no rtl8814au repository under the provided link. The correct repository to clone is rtl8852au. The accurate installation steps are as follows:

git clone git://github.com/lwfinger/rtl8852au.git
cd rtl8852au
make
sudo make sign-install

This issue might confuse other users, and I suggest updating the link to the correct repository. Thank you!

Build error: implicit declaration of function 'MODULE_IMPORT_NS'

Heya, can this be ignored?
relates to commit a9164b3

DKMS make.log for 8852au-20230824 for kernel 4.19.292_1 (x86_64)
Mon Aug 28 08:08:36 AM CEST 2023
#rm -f .symvers.8852au
make ARCH=x86_64 CROSS_COMPILE= -C /usr/lib/modules/4.19.292_1/build M=/var/lib/dkms/8852au/20230824/build  modules
  CC [M]  /var/lib/dkms/8852au/20230824/build/os_dep/osdep_service.o
  CC [M]  /var/lib/dkms/8852au/20230824/build/os_dep/osdep_service_linux.o
  CC [M]  /var/lib/dkms/8852au/20230824/build/os_dep/linux/rtw_cfg.o
  CC [M]  /var/lib/dkms/8852au/20230824/build/os_dep/linux/os_intfs.o
/var/lib/dkms/8852au/20230824/build/os_dep/osdep_service_linux.c: In function 'openFile':
/var/lib/dkms/8852au/20230824/build/os_dep/osdep_service_linux.c:392:9: error: implicit declaration of function 'MODULE_IMPORT_NS' [-Werror=implicit-function-declaration]
  392 |         MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
      |         ^~~~~~~~~~~~~~~~
/var/lib/dkms/8852au/20230824/build/os_dep/osdep_service_linux.c:392:26: error: 'VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver' undeclared (first use in this function)
  392 |         MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/8852au/20230824/build/os_dep/osdep_service_linux.c:392:26: note: each undeclared identifier is reported only once for each function it appears in
  CC [M]  /var/lib/dkms/8852au/20230824/build/os_dep/linux/ioctl_linux.o
  CC [M]  /var/lib/dkms/8852au/20230824/build/os_dep/linux/xmit_linux.o
/var/lib/dkms/8852au/20230824/build/os_dep/osdep_service_linux.c: In function 'isFileReadable':
/var/lib/dkms/8852au/20230824/build/os_dep/osdep_service_linux.c:508:26: error: 'VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver' undeclared (first use in this function)
  508 |         MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:303: /var/lib/dkms/8852au/20230824/build/os_dep/osdep_service_linux.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1562: _module_/var/lib/dkms/8852au/20230824/build] Error 2
make: *** [Makefile:651: modules] Error 2

Cannot connect to satellite of mesh wifi system

Hi,

Thanks for your very useful project.
However, i have a problem when i try to connect to my Mesh system (ASUS ZenWifi Pro ET12) by usb wifi (ASUS USB-AX56). I can connect to the root node of Mesh system but it does not change automatically to the satellite node. I have tried to connect directly to the satellite node (at the corner where it is not covered by the root node) and it asked me to re-enter Wifi password even when the pw is correct but cannot connect.
I have tried by a laptop and there are not any problems with wifi card integrated, but it does not work with USB-AX56. I have also tried on Windows with this laptop with USB-AX56 and the driver provided by ASUS. It worked without problems.
Please let me know if the driver is not supported yet for mesh wifi?

Thanks advance.

Fenvi FU-AX1800P netns

I'm using the Fenvi FU-AX1800P, no problem to install the driver.
But I can't set netns with iw, iw list doesn't report it capable.
If I understand well, it is more driver related than device related. Is there a way to make it netns capable?

Readme typo error

In

For all distros:

git clone http://github.com/lwfinger/rtl8852au.git
cd rtw8852au
make
sudo make install

you want to say

cd rtl8852au

but not

cd rtw8852au

( replace w by l )

Broke on kernel 6.3.1

Make:

#rm -f .symvers.8852au
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.3.1-arch1-1/build M=/home/eggzaile/rtl8852au  modules
  CC [M]  /home/eggzaile/rtl8852au/os_dep/linux/ioctl_cfg80211.o
/home/eggzaile/rtl8852au/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/home/eggzaile/rtl8852au/os_dep/linux/ioctl_cfg80211.c:468:17: error: too few arguments to function ‘cfg80211_ch_switch_started_notify’
  468 |                 cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef,
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/eggzaile/rtl8852au/include/osdep_service_linux.h:100,
                 from /home/eggzaile/rtl8852au/include/osdep_service.h:42,
                 from /home/eggzaile/rtl8852au/include/drv_types.h:25,
                 from /home/eggzaile/rtl8852au/os_dep/linux/ioctl_cfg80211.c:17:
./include/net/cfg80211.h:8392:6: note: declared here
 8392 | void cfg80211_ch_switch_started_notify(struct net_device *dev,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/eggzaile/rtl8852au/os_dep/linux/ioctl_cfg80211.c:484:9: error: too few arguments to function ‘cfg80211_ch_switch_notify’
  484 |         cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
./include/net/cfg80211.h:8375:6: note: declared here
 8375 | void cfg80211_ch_switch_notify(struct net_device *dev,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/eggzaile/rtl8852au/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_get_chbwoff_from_cfg80211_chan_def’:
/home/eggzaile/rtl8852au/os_dep/linux/ioctl_cfg80211.c:6263:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
 6263 |                 *ht = 0;
      |                 ~~~~^~~
/home/eggzaile/rtl8852au/os_dep/linux/ioctl_cfg80211.c:6265:9: note: here
 6265 |         case NL80211_CHAN_WIDTH_20:
      |         ^~~~
/home/eggzaile/rtl8852au/os_dep/linux/ioctl_cfg80211.c: At top level:
/home/eggzaile/rtl8852au/os_dep/linux/ioctl_cfg80211.c:10612:1: fatal error: opening dependency file /home/eggzaile/rtl8852au/os_dep/linux/.ioctl_cfg80211.o.d: Permission denied
10612 | }
      | ^
compilation terminated.
make[2]: *** [scripts/Makefile.build:252: /home/eggzaile/rtl8852au/os_dep/linux/ioctl_cfg80211.o] Error 1
make[1]: *** [Makefile:2025: /home/eggzaile/rtl8852au] Error 2
make: *** [Makefile:636: modules] Error 2

ASUS USB-AX56 with USB ID 0b05:1997

I have not been able to use the Asus USB-AX56 with Arch linux 6.0.10-arch2-1.
I tried on three different machine, a tower with Intel CPU and NVidia GPU, a laptop with Intel CPU and GPU, and a tower with AMD CPU and GPU.
I installed the rtw89-dkms-git package from the AUR, set the usb modeswitch rules to avoid having the dongle detected as a mass storage USB.
Yet the computer does not detect any new network interface.

dmesg

[   46.359934] usb 1-1: USB disconnect, device number 4
[   48.273649] usb 1-1: new high-speed USB device number 5 using xhci_hcd
[   48.501498] usb 1-1: New USB device found, idVendor=0bda, idProduct=1a2b, bcdDevice= 0.00
[   48.501510] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   48.501514] usb 1-1: Product: DISK
[   48.501517] usb 1-1: Manufacturer: Realtek
[   48.512535] usb-storage 1-1:1.0: USB Mass Storage device detected
[   48.512784] scsi host12: usb-storage 1-1:1.0
[   48.574574] audit: type=1130 audit(1670092649.715:80): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=usb_modeswitch@1-1 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
[   48.585656] audit: type=1130 audit(1670092649.725:81): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=usb_modeswitch@1-1 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
[   48.595086] audit: type=1130 audit(1670092649.735:82): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=usb_modeswitch@1-1 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
[   48.610281] audit: type=1130 audit(1670092649.752:83): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=usb_modeswitch@1-1 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
[   49.160537] usb 1-1: USB disconnect, device number 5
[   49.990302] usb 1-1: new high-speed USB device number 6 using xhci_hcd
[   50.218570] usb 1-1: New USB device found, idVendor=0b05, idProduct=1997, bcdDevice= 0.00
[   50.218579] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   50.218581] usb 1-1: Product: 802.11ac WLAN Adapter
[   50.218583] usb 1-1: Manufacturer: Realtek
[   50.218585] usb 1-1: SerialNumber: 00e04c000001
[   51.674665] audit: type=1130 audit(1670092652.815:84): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=usb_modeswitch@1-1 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   51.674676] audit: type=1131 audit(1670092652.815:85): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=usb_modeswitch@1-1 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   56.929842] audit: type=1101 audit(1670092658.072:86): pid=1520 uid=1000 auid=1000 ses=3 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="magicmirror" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[   56.930299] audit: type=1110 audit(1670092658.072:87): pid=1520 uid=1000 auid=1000 ses=3 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[   56.931530] audit: type=1105 audit(1670092658.072:88): pid=1520 uid=1000 auid=1000 ses=3 msg='op=PAM:session_open grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'

lsusb

Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 003: ID 1b1c:1b09 Corsair Vengeance K70R keyboard
Bus 005 Device 002: ID 08d3:1000 Virtual Ink Touch Device,32-20P
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 003: ID 214e:0005 Swiftpoint Z - Gaming mouse [SM700]
Bus 001 Device 006: ID 0b05:1997 ASUSTek Computer, Inc. 802.11ac WLAN Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

ip address

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp4s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether f4:b5:20:32:1e:76 brd ff:ff:ff:ff:ff:ff

Any idea what I'm doing wrong?

shift exponent 32 is too large for 32-bit

Hi!
First, thanks so much for your work! I've been able to use my usb tp-link in every linux distro.
Anyway, i'm now using linuxmint 21.1 + kernel 5.15.0-58, compiled as your instructions, and also added DKMS.
While everything worked with no errors, this keeps appearing on journal:

================================================================================
kernel: UBSAN: shift-out-of-bounds in /var/lib/dkms/rtl8852au/1.15.0.1/build/phl/hal_g6/phy/bb/halbb_interface.c:136:40
kernel: shift exponent 32 is too large for 32-bit type 'unsigned int'
kernel: ================================================================================

Is anything i can do?

TP-Link Archer TX20UH

Hello, I'm trying to get a TP-Link Archer TX20UH USB Adapater to work on my Fedora Linux 37, my current kernel version is 6.1.13-200.fc37.x86_64.

The adapter is recognised as

Bus 004 Device 010: ID 2357:0141 TP-Link 802.11ac WLAN Adapter

I can build the module as described and load it:

lsmod | grep 8852                                                                                                                                                       

8852au              13803520  0
cfg80211             1114112  6 mt76,8852au,mt76x02_lib,mac80211,mt76x02_usb,mt76x2_common

But I don't see the adapater as a new interface in "ip a" or "ifconfig -a".

I plugged it into a Windows machine and so I know it uses a virtual drive for the driver setup; do I need to do something in the "/lib/udev/rules.d/40-usb_modeswitch.rules" like it is needed for other models or what am I missing?

Relevant output of "lsusb -v": https://pastebin.com/Ud5N69uJ

Make error in raspiberry pi desktop

Here is some info:

root@raspi:/home/c/Desktop/git8832/rtl8852au# ls
clean	   core       document	   include  Makefile  phl	README.md	  runwpa	     wlan0dhcp
common.mk  dkms.conf  ifcfg-wlan0  Kconfig  os_dep    platform	ReleaseNotes.pdf  suspend_rtw8852au

c@raspi:~/Desktop/git8832/rtl8852au $ sudo git pull
hint: Pulling without specifying how to reconcile divergent branches is
hint: discouraged. You can squelch this message by running one of the following
hint: commands sometime before your next pull:
hint: 
hint:   git config pull.rebase false  # merge (the default strategy)
hint:   git config pull.rebase true   # rebase
hint:   git config pull.ff only       # fast-forward only
hint: 
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
Already up to date.

c@raspi:~/Desktop/git8832/rtl8852au $ sudo uname -m
aarch64

When i trying to make:

root@raspi:/home/c/Desktop/git8832/rtl8852au# make
#rm -f .symvers.8852au
make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/6.1.21-v8+/build M=/home/c/Desktop/git8832/rtl8852au  modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.21-v8+'
  CC [M]  /home/c/Desktop/git8832/rtl8852au/os_dep/osdep_service.o
#NoError...Missing...
  CC [M]  /home/c/Desktop/git8832/rtl8852au/os_dep/linux/ioctl_cfg80211.o
/home/c/Desktop/git8832/rtl8852au/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_get_chbwoff_from_cfg80211_chan_def’:
/home/c/Desktop/git8832/rtl8852au/os_dep/linux/ioctl_cfg80211.c:6269:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
 6269 |   *ht = 0;
      |   ~~~~^~~
/home/c/Desktop/git8832/rtl8852au/os_dep/linux/ioctl_cfg80211.c:6271:2: note: here
 6271 |  case NL80211_CHAN_WIDTH_20:
      |  ^~~~
  CC [M]  /home/c/Desktop/git8832/rtl8852au/os_dep/linux/rtw_cfgvendor.o
 #NoError...Missing...
  CC [M]  /home/c/Desktop/git8832/rtl8852au/core/rtw_mlme.o
/home/c/Desktop/git8832/rtl8852au/core/rtw_mlme.c: In function ‘_disconnect_msg_hdlr’:
/home/c/Desktop/git8832/rtl8852au/core/rtw_mlme.c:6043:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
 6043 |   if (status == RTW_PHL_STATUS_SUCCESS)
      |      ^
/home/c/Desktop/git8832/rtl8852au/core/rtw_mlme.c:6047:2: note: here
 6047 |  case MSG_EVT_DISCONNECT:
      |  ^~~~
  CC [M]  /home/c/Desktop/git8832/rtl8852au/core/rtw_mlme_ext.o
/home/c/Desktop/git8832/rtl8852au/core/rtw_mlme_ext.c: In function ‘rtw_txpwr_init_regd’:
/home/c/Desktop/git8832/rtl8852au/core/rtw_mlme_ext.c:265:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
  265 |   if (rfctl->regd_name)
      |      ^
/home/c/Desktop/git8832/rtl8852au/core/rtw_mlme_ext.c:268:2: note: here
  268 |  default:
      |  ^~~~~~~
/home/c/Desktop/git8832/rtl8852au/core/rtw_mlme_ext.c: In function ‘mgt_dispatcher’:
/home/c/Desktop/git8832/rtl8852au/core/rtw_mlme_ext.c:1603:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1603 |    ptable->func = &OnAuthClient;
      |    ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/home/c/Desktop/git8832/rtl8852au/core/rtw_mlme_ext.c:1605:2: note: here
 1605 |  case WIFI_ASSOCREQ:
      |  ^~~~
  CC [M]  /home/c/Desktop/git8832/rtl8852au/core/rtw_sec_cam.o
 #NoError...Missing...
  CC [M]  /home/c/Desktop/git8832/rtl8852au/phl/test/phl_ps_dbg_cmd.o
In file included from /home/c/Desktop/git8832/rtl8852au/phl/test/../phl_headers.h:60,
                 from /home/c/Desktop/git8832/rtl8852au/phl/test/phl_ps_dbg_cmd.c:16:
/home/c/Desktop/git8832/rtl8852au/phl/test/phl_ps_dbg_cmd.c: In function ‘phl_ps_cmd_parser’:
/home/c/Desktop/git8832/rtl8852au/phl/test/../test/phl_ps_dbg_cmd.h:19:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
   19 |  do {        \
      |     ^
/home/c/Desktop/git8832/rtl8852au/phl/test/phl_ps_dbg_cmd.c:73:3: note: in expansion of macro ‘PS_CNSL’
   73 |   PS_CNSL(out_len, used, output + used, out_len - used,
      |   ^~~~~~~
/home/c/Desktop/git8832/rtl8852au/phl/test/phl_ps_dbg_cmd.c:77:2: note: here
   77 |  case PHL_PS_HELP:
      |  ^~~~
  CC [M]  /home/c/Desktop/git8832/rtl8852au/phl/phl_msg_hub.o
 #NoError...Missing...
/home/c/Desktop/git8832/rtl8852au/phl/hal_g6/mac/mac_ax/hw.c: In function ‘cfg_mac_bw’:
/home/c/Desktop/git8832/rtl8852au/phl/hal_g6/mac/mac_ax/hw.c:1586:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1586 |   txsc80 = rtw_hal_bb_get_txsc(hal_com, cfg->pri_ch,
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1587 |           cfg->central_ch, cfg->cbw,
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~
 1588 |           CHANNEL_WIDTH_80);
      |           ~~~~~~~~~~~~~~~~~
/home/c/Desktop/git8832/rtl8852au/phl/hal_g6/mac/mac_ax/hw.c:1590:2: note: here
 1590 |  case CHANNEL_WIDTH_80:
      |  ^~~~
/home/c/Desktop/git8832/rtl8852au/phl/hal_g6/mac/mac_ax/hw.c:1591:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1591 |   txsc40 = rtw_hal_bb_get_txsc(hal_com, cfg->pri_ch,
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1592 |           cfg->central_ch, cfg->cbw,
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~
 1593 |           CHANNEL_WIDTH_40);
      |           ~~~~~~~~~~~~~~~~~
/home/c/Desktop/git8832/rtl8852au/phl/hal_g6/mac/mac_ax/hw.c:1595:2: note: here
 1595 |  case CHANNEL_WIDTH_40:
      |  ^~~~
  CC [M]  /home/c/Desktop/git8832/rtl8852au/phl/hal_g6/mac/mac_ax/hwamsdu.o
 #NoError...Missing...
  CC [M]  /home/c/Desktop/git8832/rtl8852au/phl/hal_g6/mac/fw_ax/rtl8852a/hal8852a_fw.o
gcc: fatal error: Killed signal terminated program cc1
compilation terminated.
make[2]: *** [scripts/Makefile.build:250: /home/c/Desktop/git8832/rtl8852au/phl/hal_g6/mac/fw_ax/rtl8852a/hal8852a_fw.o] Error 1
make[1]: *** [Makefile:2012: /home/c/Desktop/git8832/rtl8852au] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.21-v8+'
make: *** [Makefile:639: modules] Error 2

I tried twice and got the same error

USB-AX56 Connects as USB 2.0

I'm running ubuntu 20.04 LTS and was able to build the driver with "make -B" to force building with an error (now a warning) about using a GCC that was not exactly the one used to build the kernel. The driver was installed successfully. I plugged in an ASUS WiFi 6 AX1800 USB WiFi Adapter (USB-AX56), which was recognized. I used the standard WiFi setting dialog and was connected at 1200 Mb/s to my router. This works well.

My issue is that "lsusb -t -v" tells me the USB-AX56 is connected as USB 2.0 at 480M. I tried the other available USB 3.0 and 3.1 ports on my PC with the same result. Other USB 3.0 devices show up as USB 3.0 at 5000M and 10000M. Since my ISP supplies 300 Mb/s of internet, it is not a real problem. However, I'm curious why the driver thinks it's a USB 2.0 device. Yes, I'm using the USB 3.0 cable that came with the USB-AX56.

Buffalo WI-U3-1200AX2(/N) Supports

Dear members,

I purchased the USB NIC Buffalo WI-U3-1200AX2 that was released last week. (And it is not listed as a supported device at the README.)

The vender does not disclose the driver details, but the Windows 11 driver filename implies that this is the Realtek 8852AU chipset. (lsusb -v says it is certainly a Realtek chipset.)

I compiled (on the latest Ubuntu) the rtw89(-usb) and rtl8852au projects. I tried in the latest kernel from the kernel.org. I did the lsmod, dmesg | grep, and modprobe.

It is like

[ 2323.390085] usbcore: registered new interface driver rtwifi_usb
[ 4548.632564] usbcore: deregistering interface driver rtwifi_usb
[ 5262.492451] usbcore: registered new interface driver rtl8852au.

but the WiFi adapter did not appear at the iwconfig. (Another Buffalo WiFi NIC appears when it is plugged.)

Is it yet to be supported by this project? Or, does it just mean the rtl8852au, which is not used in lsmod, must be supported by another project (or something else)?

Best,

Makoto Sakurai

s905 platform insmod error ?

i use s905x3 androd 9 platform,when insmod driver,I get error below

onsole:/data/user # insmod 8852au.ko

[ 1795.597879@3] dump_vmalloc, va:bc000000-bf001000, size:00049156 KB, alloc:start_kernel
[ 1795.597888@3] dump_vmalloc, va:bf001000-bf074000, size:00000460 KB, alloc:load_module
[ 1795.597892@3] dump_vmalloc, va:bf08c000-bf092000, size:00000024 KB, alloc:load_module
[ 1795.597896@3] dump_vmalloc, va:bf095000-bf09f000, size:00000040 KB, alloc:load_module
[ 1795.597900@3] dump_vmalloc, va:bf0a6000-bf0ad000, size:00000028 KB, alloc:load_module
[ 1795.597904@3] dump_vmalloc, va:bf0b1000-bf0dc000, size:00000172 KB, alloc:load_module
[ 1795.597908@3] dump_vmalloc, va:bf0ef000-bf117000, size:00000160 KB, alloc:load_module
[ 1795.597912@3] dump_vmalloc, va:bf122000-bf133000, size:00000068 KB, alloc:load_module
[ 1795.597916@3] dump_vmalloc, va:bf138000-bf15a000, size:00000136 KB, alloc:load_module
[ 1795.597919@3] dump_vmalloc, va:bf160000-bf187000, size:00000156 KB, alloc:load_module
[ 1795.597923@3] dump_vmalloc, va:bf192000-bf1a0000, size:00000056 KB, alloc:load_module
[ 1795.597929@3] dump_vmalloc, va:bf1a5000-bf1c7000, size:00000136 KB, alloc:load_module
[ 1795.597938@3] dump_vmalloc, va:bf1d2000-bf1dd000, size:00000044 KB, alloc:load_module
[ 1795.597948@3] dump_vmalloc, va:bf1e1000-bf1e9000, size:00000032 KB, alloc:load_module
[ 1795.597953@3] dump_vmalloc, va:bf1ed000-bf207000, size:00000104 KB, alloc:load_module
[ 1795.597958@3] dump_vmalloc, va:bf20b000-bf216000, size:00000044 KB, alloc:load_module
[ 1795.597968@3] dump_vmalloc, va:bf21b000-bf22a000, size:00000060 KB, alloc:load_module
[ 1795.597978@3] dump_vmalloc, va:bf22e000-bf239000, size:00000044 KB, alloc:load_module
[ 1795.597982@3] dump_vmalloc, va:bf23e000-bf249000, size:00000044 KB, alloc:load_module
[ 1795.597986@3] dump_vmalloc, va:bf24d000-bf25c000, size:00000060 KB, alloc:load_module
[ 1795.597995@3] dump_vmalloc, va:bf260000-bf27c000, size:00000112 KB, alloc:load_module
[ 1795.598005@3] dump_vmalloc, va:bf285000-bf2b5000, size:00000192 KB, alloc:load_module
[ 1795.598011@3] dump_vmalloc, va:bf2be000-bf2cb000, size:00000052 KB, alloc:load_module
[ 1795.598015@3] dump_vmalloc, va:bf2d0000-bf2dc000, size:00000048 KB, alloc:load_module
[ 1795.598024@3] dump_vmalloc, va:bf2e1000-bf2ec000, size:00000044 KB, alloc:load_module
[ 1795.598034@3] dump_vmalloc, va:bf2f1000-bf313000, size:00000136 KB, alloc:load_module
[ 1795.598039@3] dump_vmalloc, va:bf31c000-bf377000, size:00000364 KB, alloc:load_module
[ 1795.598043@3] dump_vmalloc, va:bf389000-bf398000, size:00000060 KB, alloc:load_module
[ 1795.598048@3] dump_vmalloc, va:c5000000-c5400000, size:00004096 KB, alloc:iotable_init
[ 1795.598060@3] dump_vmalloc, va:f0800000-f0802000, size:00000008 KB, alloc:of_iomap
[ 1795.598069@3] dump_vmalloc, va:f0802000-f0804000, size:00000008 KB, alloc:of_iomap
[ 1795.598077@3] dump_vmalloc, va:f0804000-f0806000, size:00000008 KB, alloc:of_iomap
[ 1795.598086@3] dump_vmalloc, va:f0806000-f0808000, size:00000008 KB, alloc:of_iomap
[ 1795.598093@3] dump_vmalloc, va:f0808000-f080a000, size:00000008 KB, alloc:of_iomap
[ 1795.598103@3] dump_vmalloc, va:f080a000-f080c000, size:00000008 KB, alloc:of_iomap
[ 1795.598112@3] dump_vmalloc, va:f080c000-f080e000, size:00000008 KB, alloc:of_iomap
[ 1795.598120@3] dump_vmalloc, va:f080e000-f0810000, size:00000008 KB, alloc:of_iomap
[ 1795.598132@3] dump_vmalloc, va:f0814000-f0816000, size:00000008 KB, alloc:bpf_prog_alloc
[ 1795.598138@3] dump_vmalloc, va:f0816000-f0857000, size:00000260 KB, alloc:atomic_pool_init
[ 1795.598144@3] dump_vmalloc, va:f0857000-f0860000, size:00000036 KB, alloc:persistent_ram_new
[ 1795.598153@3] dump_vmalloc, va:f0860000-f0869000, size:00000036 KB, alloc:persistent_ram_new
[ 1795.598158@3] dump_vmalloc, va:f0869000-f0872000, size:00000036 KB, alloc:persistent_ram_new
[ 1795.598166@3] dump_vmalloc, va:f0872000-f087b000, size:00000036 KB, alloc:persistent_ram_new
[ 1795.598175@3] dump_vmalloc, va:f087b000-f0884000, size:00000036 KB, alloc:persistent_ram_new
[ 1795.598182@3] dump_vmalloc, va:f0884000-f088d000, size:00000036 KB, alloc:persistent_ram_new
[ 1795.598192@3] dump_vmalloc, va:f088d000-f0896000, size:00000036 KB, alloc:persistent_ram_new
[ 1795.598200@3] dump_vmalloc, va:f0896000-f089f000, size:00000036 KB, alloc:persistent_ram_new
[ 1795.598205@3] dump_vmalloc, va:f089f000-f08a8000, size:00000036 KB, alloc:persistent_ram_new
[ 1795.598214@3] dump_vmalloc, va:f08a8000-f08b1000, size:00000036 KB, alloc:persistent_ram_new
[ 1795.598222@3] dump_vmalloc, va:f08b1000-f08ba000, size:00000036 KB, alloc:persistent_ram_new
[ 1795.598226@3] dump_vmalloc, va:f08ba000-f08c3000, size:00000036 KB, alloc:persistent_ram_new
[ 1795.598229@3] dump_vmalloc, va:f08c3000-f08cc000, size:00000036 KB, alloc:persistent_ram_new
[ 1795.598232@3] dump_vmalloc, va:f08cc000-f08d5000, size:00000036 KB, alloc:persistent_ram_new
[ 1795.598235@3] dump_vmalloc, va:f08d5000-f08de000, size:00000036 KB, alloc:persistent_ram_new
[ 1795.598238@3] dump_vmalloc, va:f08de000-f08e7000, size:00000036 KB, alloc:persistent_ram_new
[ 1795.598241@3] dump_vmalloc, va:f08e7000-f08f0000, size:00000036 KB, alloc:persistent_ram_new
[ 1795.598244@3] dump_vmalloc, va:f08f0000-f08f9000, size:00000036 KB, alloc:persistent_ram_new
[ 1795.598248@3] dump_vmalloc, va:f08f9000-f0902000, size:00000036 KB, alloc:persistent_ram_new
[ 1795.598251@3] dump_vmalloc, va:f0902000-f090b000, size:00000036 KB, alloc:persistent_ram_new
[ 1795.598255@3] dump_vmalloc, va:f090b000-f0914000, size:00000036 KB, alloc:persistent_ram_new
[ 1795.598258@3] dump_vmalloc, va:f0914000-f091d000, size:00000036 KB, alloc:persistent_ram_new
[ 1795.598261@3] dump_vmalloc, va:f091d000-f0926000, size:00000036 KB, alloc:persistent_ram_new
[ 1795.598264@3] dump_vmalloc, va:f0926000-f092f000, size:00000036 KB, alloc:persistent_ram_new
[ 1795.598268@3] dump_vmalloc, va:f092f000-f0970000, size:00000260 KB, alloc:persistent_ram_new
[ 1795.598273@3] dump_vmalloc, va:f0970000-f0972000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.598278@3] dump_vmalloc, va:f0972000-f0974000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.598288@3] dump_vmalloc, va:f0974000-f0977000, size:00000012 KB, alloc:iomap_probe
[ 1795.598298@3] dump_vmalloc, va:f0977000-f0979000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.598304@3] dump_vmalloc, va:f0979000-f097b000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.598308@3] dump_vmalloc, va:f097b000-f097d000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.598312@3] dump_vmalloc, va:f097d000-f097f000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.598316@3] dump_vmalloc, va:f0980000-f09a8000, size:00000160 KB, alloc:iomap_probe
[ 1795.598320@3] dump_vmalloc, va:f09a8000-f09aa000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.598325@3] dump_vmalloc, va:f09aa000-f09ac000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.598329@3] dump_vmalloc, va:f09ac000-f09ae000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.598333@3] dump_vmalloc, va:f09ae000-f09b0000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.598374@3] dump_vmalloc, va:f09b0000-f09bc000, size:00000048 KB, alloc:iomap_probe
[ 1795.598378@3] dump_vmalloc, va:f09bc000-f09be000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.598382@3] dump_vmalloc, va:f09be000-f09c0000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.598387@3] dump_vmalloc, va:f09c0000-f09c2000, size:00000008 KB, alloc:of_iomap
[ 1795.598391@3] dump_vmalloc, va:f09c2000-f09c4000, size:00000008 KB, alloc:of_iomap
[ 1795.598397@3] dump_vmalloc, va:f09c4000-f09c6000, size:00000008 KB, alloc:aml_clkmsr_probe
[ 1795.598401@3] dump_vmalloc, va:f09c6000-f09c8000, size:00000008 KB, alloc:of_iomap
[ 1795.598407@3] dump_vmalloc, va:f09c8000-f09ca000, size:00000008 KB, alloc:snd_iomap_probe
[ 1795.598411@3] dump_vmalloc, va:f09ca000-f09cc000, size:00000008 KB, alloc:snd_iomap_probe
[ 1795.598414@3] dump_vmalloc, va:f09cc000-f09ce000, size:00000008 KB, alloc:snd_iomap_probe
[ 1795.598418@3] dump_vmalloc, va:f09ce000-f09d0000, size:00000008 KB, alloc:snd_iomap_probe
[ 1795.598421@3] dump_vmalloc, va:f09d0000-f09d2000, size:00000008 KB, alloc:snd_iomap_probe
[ 1795.598424@3] dump_vmalloc, va:f09d2000-f09d4000, size:00000008 KB, alloc:snd_iomap_probe
[ 1795.598428@3] dump_vmalloc, va:f09d4000-f09d6000, size:00000008 KB, alloc:snd_iomap_probe
[ 1795.598431@3] dump_vmalloc, va:f09d6000-f09d8000, size:00000008 KB, alloc:snd_iomap_probe
[ 1795.598435@3] dump_vmalloc, va:f09d8000-f09db000, size:00000012 KB, alloc:devm_ioremap_nocache
[ 1795.598440@3] dump_vmalloc, va:f09dc000-f09df000, size:00000012 KB, alloc:codec_io_probe
[ 1795.598445@3] dump_vmalloc, va:f09e0000-f09f1000, size:00000068 KB, alloc:codec_io_probe
[ 1795.598451@3] dump_vmalloc, va:f09f2000-f09f5000, size:00000012 KB, alloc:codec_io_probe
[ 1795.598455@3] dump_vmalloc, va:f09f6000-f09f9000, size:00000012 KB, alloc:codec_io_probe
[ 1795.598463@3] dump_vmalloc, va:f09f9000-f09fb000, size:00000008 KB, alloc:osd_rdma_enable
[ 1795.598470@3] dump_vmalloc, va:f09fb000-f09fd000, size:00000008 KB, alloc:rdma_register
[ 1795.598475@3] dump_vmalloc, va:f09fd000-f09ff000, size:00000008 KB, alloc:init_reg_map
[ 1795.598479@3] dump_vmalloc, va:f0a00000-f0a80000, size:00000512 KB, alloc:iomap_probe
[ 1795.598482@3] dump_vmalloc, va:f0a80000-f0ad1000, size:00000324 KB, alloc:iomap_probe
[ 1795.598487@3] dump_vmalloc, va:f0ad1000-f0ada000, size:00000036 KB, alloc:rdma_register
[ 1795.598494@3] dump_vmalloc, va:f0ada000-f0adc000, size:00000008 KB, alloc:ddr_bandwidth_probe
[ 1795.598498@3] dump_vmalloc, va:f0adc000-f0ae0000, size:00000016 KB, alloc:init_reg_map
[ 1795.598502@3] dump_vmalloc, va:f0ae0000-f0af1000, size:00000068 KB, alloc:codec_io_probe
[ 1795.598505@3] dump_vmalloc, va:f0af2000-f0af5000, size:00000012 KB, alloc:init_reg_map
[ 1795.598509@3] dump_vmalloc, va:f0af6000-f0af9000, size:00000012 KB, alloc:init_reg_map
[ 1795.598513@3] dump_vmalloc, va:f0af9000-f0afb000, size:00000008 KB, alloc:ddr_bandwidth_probe
[ 1795.598518@3] dump_vmalloc, va:f0afb000-f0afd000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.598522@3] dump_vmalloc, va:f0afd000-f0aff000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.598526@3] dump_vmalloc, va:f0b00000-f0c01000, size:00001028 KB, alloc:codec_io_probe
[ 1795.598530@3] dump_vmalloc, va:f0c01000-f0c03000, size:00000008 KB, alloc:of_iomap
[ 1795.598533@3] dump_vmalloc, va:f0c04000-f0c09000, size:00000020 KB, alloc:init_reg_map
[ 1795.598539@3] dump_vmalloc, va:f0c09000-f0c0e000, size:00000020 KB, alloc:jffs2_lzo_init
[ 1795.598543@3] dump_vmalloc, va:f0c0e000-f0c10000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.598547@3] dump_vmalloc, va:f0c10000-f0c19000, size:00000036 KB, alloc:init_reg_map
[ 1795.598553@3] dump_vmalloc, va:f0c19000-f0c25000, size:00000048 KB, alloc:cramfs_uncompress_init
[ 1795.598557@3] dump_vmalloc, va:f0c25000-f0c31000, size:00000048 KB, alloc:zisofs_init
[ 1795.598560@3] dump_vmalloc, va:f0c31000-f0c3d000, size:00000048 KB, alloc:jffs2_zlib_init
[ 1795.598564@3] dump_vmalloc, va:f0c3d000-f0c40000, size:00000012 KB, alloc:jffs2_lzo_init
[ 1795.598568@3] dump_vmalloc, va:f0c40000-f0c81000, size:00000260 KB, alloc:codec_io_probe
[ 1795.598571@3] dump_vmalloc, va:f0c81000-f0cc4000, size:00000268 KB, alloc:jffs2_zlib_init
[ 1795.598575@3] dump_vmalloc, va:f0cc4000-f0cc6000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.598660@3] dump_vmalloc, va:f0ce2000-f0cf8000, size:00000088 KB, alloc:kbase_create_context [mali_kbase]
[ 1795.598733@3] dump_vmalloc, va:f0cf8000-f0cfc000, size:00000016 KB, alloc:kbase_mem_import [mali_kbase]
[ 1795.598739@3] dump_vmalloc, va:f0cfc000-f0cfe000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.598743@3] dump_vmalloc, va:f0cfe000-f0d00000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.598748@3] dump_vmalloc, va:f0d00000-f0e01000, size:00001028 KB, alloc:init_reg_map
[ 1795.598819@3] dump_vmalloc, va:f0e01000-f0e0a000, size:00000036 KB, alloc:kbase_debug_job_fault_context_init [mali_kbase]
[ 1795.598889@3] dump_vmalloc, va:f0e0a000-f0e10000, size:00000024 KB, alloc:kbase_mem_alloc [mali_kbase]
[ 1795.598960@3] dump_vmalloc, va:f0e10000-f0e14000, size:00000016 KB, alloc:kbase_mem_alloc [mali_kbase]
[ 1795.599031@3] dump_vmalloc, va:f0e14000-f0e18000, size:00000016 KB, alloc:kbase_mem_import [mali_kbase]
[ 1795.599101@3] dump_vmalloc, va:f0e18000-f0e1c000, size:00000016 KB, alloc:kbase_mem_import [mali_kbase]
[ 1795.599172@3] dump_vmalloc, va:f0e1c000-f0e20000, size:00000016 KB, alloc:kbase_mem_import [mali_kbase]
[ 1795.599243@3] dump_vmalloc, va:f0e20000-f0e24000, size:00000016 KB, alloc:kbase_mem_import [mali_kbase]
[ 1795.599313@3] dump_vmalloc, va:f0e24000-f0e28000, size:00000016 KB, alloc:kbase_mem_import [mali_kbase]
[ 1795.599318@3] dump_vmalloc, va:f0e40000-f0e81000, size:00000260 KB, alloc:init_reg_map
[ 1795.599390@3] dump_vmalloc, va:f0e89000-f0e8d000, size:00000016 KB, alloc:kbase_mem_alloc [mali_kbase]
[ 1795.599395@3] dump_vmalloc, va:f0e9c000-f0e9e000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.599399@3] dump_vmalloc, va:f0e9e000-f0ea0000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.599404@3] dump_vmalloc, va:f0ea0000-f0eb1000, size:00000068 KB, alloc:devm_ioremap_nocache
[ 1795.599408@3] dump_vmalloc, va:f0eb1000-f0eb3000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.599412@3] dump_vmalloc, va:f0eb3000-f0eb5000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.599419@3] dump_vmalloc, va:f0eb5000-f0ed6000, size:00000132 KB, alloc:meson_uart_init
[ 1795.599423@3] dump_vmalloc, va:f0ed6000-f0ed8000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.599429@3] dump_vmalloc, va:f0ed8000-f0eda000, size:00000008 KB, alloc:amlogic_new_usb2_probe
[ 1795.599432@3] dump_vmalloc, va:f0eda000-f0edd000, size:00000012 KB, alloc:amlogic_new_usb2_probe
[ 1795.599436@3] dump_vmalloc, va:f0ede000-f0ee1000, size:00000012 KB, alloc:amlogic_new_usb2_probe
[ 1795.599441@3] dump_vmalloc, va:f0ee1000-f0ee3000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.599445@3] dump_vmalloc, va:f0ee4000-f0ee7000, size:00000012 KB, alloc:devm_ioremap_nocache
[ 1795.599449@3] dump_vmalloc, va:f0ee7000-f0ee9000, size:00000008 KB, alloc:amlogic_new_usb3_v2_probe
[ 1795.599453@3] dump_vmalloc, va:f0ee9000-f0eeb000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.599458@3] dump_vmalloc, va:f0eeb000-f0eed000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.599463@3] dump_vmalloc, va:f0eed000-f0eef000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.599472@3] dump_vmalloc, va:f0eef000-f0ef1000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.599478@3] dump_vmalloc, va:f0ef1000-f0ef3000, size:00000008 KB, alloc:nr_drv_init
[ 1795.599482@3] dump_vmalloc, va:f0ef3000-f0ef5000, size:00000008 KB, alloc:nr_drv_init
[ 1795.599486@3] dump_vmalloc, va:f0ef5000-f0ef7000, size:00000008 KB, alloc:nr_drv_init
[ 1795.599492@3] dump_vmalloc, va:f0ef7000-f0f00000, size:00000036 KB, alloc:dolby_vision_init_receiver
[ 1795.599496@3] dump_vmalloc, va:f0f00000-f1001000, size:00001028 KB, alloc:init_reg_map
[ 1795.599500@3] dump_vmalloc, va:f1001000-f1003000, size:00000008 KB, alloc:dolby_vision_init_receiver
[ 1795.599504@3] dump_vmalloc, va:f1003000-f1007000, size:00000016 KB, alloc:dolby_vision_init_receiver
[ 1795.599508@3] dump_vmalloc, va:f1007000-f1009000, size:00000008 KB, alloc:dolby_vision_init_receiver
[ 1795.599512@3] dump_vmalloc, va:f1009000-f100d000, size:00000016 KB, alloc:dolby_vision_init_receiver
[ 1795.599516@3] dump_vmalloc, va:f100d000-f100f000, size:00000008 KB, alloc:dolby_vision_init_receiver
[ 1795.599521@3] dump_vmalloc, va:f1010000-f1021000, size:00000068 KB, alloc:ge2d_probe
[ 1795.599526@3] dump_vmalloc, va:f1021000-f1025000, size:00000016 KB, alloc:dolby_vision_init_receiver
[ 1795.599530@3] dump_vmalloc, va:f1025000-f1027000, size:00000008 KB, alloc:dolby_vision_init_receiver
[ 1795.599534@3] dump_vmalloc, va:f1027000-f102b000, size:00000016 KB, alloc:dolby_vision_init_receiver
[ 1795.599540@3] dump_vmalloc, va:f102b000-f102d000, size:00000008 KB, alloc:meson_mmc_probe
[ 1795.599543@3] dump_vmalloc, va:f102d000-f102f000, size:00000008 KB, alloc:meson_mmc_probe
[ 1795.599548@3] dump_vmalloc, va:f102f000-f1031000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.599551@3] dump_vmalloc, va:f1031000-f10b2000, size:00000516 KB, alloc:meson_mmc_probe
[ 1795.599555@3] dump_vmalloc, va:f10b2000-f10b5000, size:00000012 KB, alloc:meson_mmc_probe
[ 1795.599558@3] dump_vmalloc, va:f10b5000-f10b7000, size:00000008 KB, alloc:meson_mmc_probe
[ 1795.599562@3] dump_vmalloc, va:f10b7000-f10b9000, size:00000008 KB, alloc:meson_mmc_probe
[ 1795.599566@3] dump_vmalloc, va:f10b9000-f10bb000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.599570@3] dump_vmalloc, va:f10bb000-f113c000, size:00000516 KB, alloc:meson_mmc_probe
[ 1795.599574@3] dump_vmalloc, va:f113c000-f113f000, size:00000012 KB, alloc:meson_mmc_probe
[ 1795.599578@3] dump_vmalloc, va:f113f000-f1141000, size:00000008 KB, alloc:aml_vrtc_probe
[ 1795.599582@3] dump_vmalloc, va:f1141000-f1143000, size:00000008 KB, alloc:aml_vrtc_probe
[ 1795.599585@3] dump_vmalloc, va:f1143000-f1145000, size:00000008 KB, alloc:aml_vrtc_probe
[ 1795.599589@3] dump_vmalloc, va:f1145000-f1147000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.599593@3] dump_vmalloc, va:f1147000-f1149000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.599597@3] dump_vmalloc, va:f1149000-f114b000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.599602@3] dump_vmalloc, va:f114b000-f114d000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.599608@3] dump_vmalloc, va:f114d000-f114f000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.599612@3] dump_vmalloc, va:f114f000-f1151000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.599617@3] dump_vmalloc, va:f1151000-f1153000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.599622@3] dump_vmalloc, va:f1153000-f1155000, size:00000008 KB, alloc:of_iomap
[ 1795.599626@3] dump_vmalloc, va:f1155000-f1157000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.599630@3] dump_vmalloc, va:f1158000-f115b000, size:00000012 KB, alloc:devm_ioremap_nocache
[ 1795.599635@3] dump_vmalloc, va:f115c000-f1160000, size:00000016 KB, alloc:devm_ioremap_nocache
[ 1795.599641@3] dump_vmalloc, va:f1160000-f11a1000, size:00000260 KB, alloc:snd_dma_alloc_pages
[ 1795.599645@3] dump_vmalloc, va:f11a1000-f11e2000, size:00000260 KB, alloc:snd_dma_alloc_pages
[ 1795.599649@3] dump_vmalloc, va:f11e2000-f1223000, size:00000260 KB, alloc:snd_dma_alloc_pages
[ 1795.599653@3] dump_vmalloc, va:f1223000-f1264000, size:00000260 KB, alloc:snd_dma_alloc_pages
[ 1795.599657@3] dump_vmalloc, va:f1264000-f12a5000, size:00000260 KB, alloc:snd_dma_alloc_pages
[ 1795.599663@3] dump_vmalloc, va:f12a5000-f12ca000, size:00000148 KB, alloc:deflate_init
[ 1795.599667@3] dump_vmalloc, va:f12ca000-f12d6000, size:00000048 KB, alloc:deflate_init
[ 1795.599673@3] dump_vmalloc, va:f12d6000-f12d8000, size:00000008 KB, alloc:dwc3_probe
[ 1795.599677@3] dump_vmalloc, va:f12d8000-f12e1000, size:00000036 KB, alloc:devm_ioremap_nocache
[ 1795.599683@3] dump_vmalloc, va:f12e1000-f12e3000, size:00000008 KB, alloc:xhci_mem_init
[ 1795.599688@3] dump_vmalloc, va:f12e3000-f12e5000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599692@3] dump_vmalloc, va:f12e5000-f12e7000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599696@3] dump_vmalloc, va:f12e7000-f12e9000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599700@3] dump_vmalloc, va:f12e9000-f12eb000, size:00000008 KB, alloc:xhci_mem_init
[ 1795.599704@3] dump_vmalloc, va:f12eb000-f12ed000, size:00000008 KB, alloc:xhci_mem_init
[ 1795.599708@3] dump_vmalloc, va:f12ed000-f12ef000, size:00000008 KB, alloc:xhci_mem_init
[ 1795.599713@3] dump_vmalloc, va:f12ef000-f12f1000, size:00000008 KB, alloc:devm_ioremap_nocache
[ 1795.599718@3] dump_vmalloc, va:f12f1000-f12f3000, size:00000008 KB, alloc:__DWC_DMA_ALLOC
[ 1795.599723@3] dump_vmalloc, va:f12f3000-f12f5000, size:00000008 KB, alloc:__DWC_DMA_ALLOC
[ 1795.599735@3] dump_vmalloc, va:f12f5000-f12f7000, size:00000008 KB, alloc:meson_pm_probe
[ 1795.599743@3] dump_vmalloc, va:f12f7000-f12f9000, size:00000008 KB, alloc:meson_pm_probe
[ 1795.599748@3] dump_vmalloc, va:f12f9000-f12fb000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599752@3] dump_vmalloc, va:f12fb000-f12fd000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599756@3] dump_vmalloc, va:f12fd000-f12ff000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599765@3] dump_vmalloc, va:f1300000-f13f5000, size:00000980 KB, alloc:devm_ioremap_nocache
[ 1795.599773@3] dump_vmalloc, va:f13f5000-f13f7000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599778@3] dump_vmalloc, va:f13f7000-f13f9000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599787@3] dump_vmalloc, va:f13f9000-f13fb000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599796@3] dump_vmalloc, va:f13fb000-f13fd000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599803@3] dump_vmalloc, va:f13fd000-f13ff000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599813@3] dump_vmalloc, va:f1400000-f1441000, size:00000260 KB, alloc:devm_ioremap_nocache
[ 1795.599823@3] dump_vmalloc, va:f1441000-f1443000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599828@3] dump_vmalloc, va:f1443000-f1445000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599832@3] dump_vmalloc, va:f1445000-f1447000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599835@3] dump_vmalloc, va:f1447000-f1449000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599839@3] dump_vmalloc, va:f1449000-f144b000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599843@3] dump_vmalloc, va:f144f000-f1451000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599846@3] dump_vmalloc, va:f1451000-f1453000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599850@3] dump_vmalloc, va:f1453000-f1455000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599854@3] dump_vmalloc, va:f1455000-f1457000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599858@3] dump_vmalloc, va:f1457000-f1459000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599862@3] dump_vmalloc, va:f1459000-f145b000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599865@3] dump_vmalloc, va:f145b000-f145d000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599869@3] dump_vmalloc, va:f145d000-f145f000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599873@3] dump_vmalloc, va:f145f000-f1461000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599917@3] dump_vmalloc, va:f1461000-f1463000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599921@3] dump_vmalloc, va:f1463000-f1465000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599925@3] dump_vmalloc, va:f1465000-f1467000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599928@3] dump_vmalloc, va:f1467000-f1469000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599932@3] dump_vmalloc, va:f1469000-f146b000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599936@3] dump_vmalloc, va:f1474000-f1476000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.599939@3] dump_vmalloc, va:f1476000-f1478000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600013@3] dump_vmalloc, va:f1478000-f147c000, size:00000016 KB, alloc:kbase_mem_alloc [mali_kbase]
[ 1795.600084@3] dump_vmalloc, va:f1494000-f1498000, size:00000016 KB, alloc:kbase_mem_alloc [mali_kbase]
[ 1795.600089@3] dump_vmalloc, va:f14ac000-f14ae000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600093@3] dump_vmalloc, va:f14ae000-f14b0000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600097@3] dump_vmalloc, va:f14b0000-f14b2000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600101@3] dump_vmalloc, va:f14b2000-f14b4000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600104@3] dump_vmalloc, va:f14b4000-f14b6000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600108@3] dump_vmalloc, va:f14b6000-f14b8000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600112@3] dump_vmalloc, va:f14b8000-f14ba000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600116@3] dump_vmalloc, va:f14ba000-f14bc000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600119@3] dump_vmalloc, va:f14bc000-f14be000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600123@3] dump_vmalloc, va:f14be000-f14c0000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600127@3] dump_vmalloc, va:f14c0000-f14c2000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600131@3] dump_vmalloc, va:f14c2000-f14c4000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600134@3] dump_vmalloc, va:f14c4000-f14c6000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600138@3] dump_vmalloc, va:f14c6000-f14c8000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600141@3] dump_vmalloc, va:f14c8000-f14ca000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600145@3] dump_vmalloc, va:f14ca000-f14cc000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600149@3] dump_vmalloc, va:f14cc000-f14ce000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600153@3] dump_vmalloc, va:f14ce000-f14d0000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600157@3] dump_vmalloc, va:f14d0000-f14d2000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600160@3] dump_vmalloc, va:f14d2000-f14d4000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600163@3] dump_vmalloc, va:f14d4000-f14d6000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600167@3] dump_vmalloc, va:f14d6000-f14d8000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600170@3] dump_vmalloc, va:f14d8000-f14da000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600174@3] dump_vmalloc, va:f14da000-f14dc000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600178@3] dump_vmalloc, va:f14dc000-f14de000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600182@3] dump_vmalloc, va:f14de000-f14e0000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600185@3] dump_vmalloc, va:f14e0000-f14e2000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600189@3] dump_vmalloc, va:f14e2000-f14e4000, size:00000008 KB, alloc:dma_pool_alloc
[ 1795.600195@3] dump_vmalloc, va:f156e000-f1570000, size:00000008 KB, alloc:bpf_prog_alloc
[ 1795.600198@3] dump_vmalloc, va:f1570000-f1572000, size:00000008 KB, alloc:bpf_prog_alloc
[ 1795.600275@3] dump_vmalloc, va:f15f2000-f15f4000, size:00000008 KB, alloc:kbase_io_history_resize [mali_kbase]
[ 1795.600356@3] dump_vmalloc, va:f15f4000-f15f9000, size:00000020 KB, alloc:kbase_platform_device_probe [mali_kbase]
[ 1795.600364@3] dump_vmalloc, va:f15f9000-f15fb000, size:00000008 KB, alloc:of_iomap
[ 1795.600368@3] dump_vmalloc, va:f15fb000-f15fd000, size:00000008 KB, alloc:of_iomap
[ 1795.600438@3] dump_vmalloc, va:f15fd000-f15ff000, size:00000008 KB, alloc:pm_callback_power_on [mali_kbase]
[ 1795.600452@3] dump_vmalloc, va:f257c000-f2581000, size:00000020 KB, alloc:vpu_probe [vpu]
[ 1795.600458@3] dump_vmalloc, va:f2d3b000-f2d5c000, size:00000132 KB, alloc:bpf_map_area_alloc
[ 1795.600462@3] dump_vmalloc, va:f2d5c000-f2d7d000, size:00000132 KB, alloc:bpf_map_area_alloc
[ 1795.600466@3] dump_vmalloc, va:f2d7d000-f2d9e000, size:00000132 KB, alloc:bpf_map_area_alloc
[ 1795.600470@3] dump_vmalloc, va:f2d9e000-f2dbf000, size:00000132 KB, alloc:bpf_map_area_alloc
[ 1795.600474@3] dump_vmalloc, va:f2dc7000-f2dc9000, size:00000008 KB, alloc:bpf_prog_alloc
[ 1795.600480@3] dump_vmalloc, va:f2dd1000-f2dd5000, size:00000016 KB, alloc:n_tty_open
[ 1795.600484@3] dump_vmalloc, va:f2dd5000-f2dd9000, size:00000016 KB, alloc:n_tty_open
[ 1795.600488@3] dump_vmalloc, va:f2dde000-f2de0000, size:00000008 KB, alloc:bpf_prog_alloc
[ 1795.600493@3] dump_vmalloc, va:f2de0000-f2de3000, size:00000012 KB, alloc:kernel_read_file
[ 1795.600497@3] dump_vmalloc, va:f2df5000-f2df7000, size:00000008 KB, alloc:bpf_prog_alloc
[ 1795.600503@3] dump_vmalloc, va:f2e0c000-f2e0e000, size:00000008 KB, alloc:bpf_prog_alloc
[ 1795.600507@3] dump_vmalloc, va:f2ec8000-f2ecc000, size:00000016 KB, alloc:n_tty_open
[ 1795.600511@3] dump_vmalloc, va:f2ed4000-f2ed6000, size:00000008 KB, alloc:bpf_prog_alloc
[ 1795.600515@3] dump_vmalloc, va:f2ed6000-f2ed8000, size:00000008 KB, alloc:bpf_prog_alloc
[ 1795.600590@3] dump_vmalloc, va:f2ed8000-f2eee000, size:00000088 KB, alloc:kbase_create_context [mali_kbase]
[ 1795.600667@3] dump_vmalloc, va:f2eee000-f2ef7000, size:00000036 KB, alloc:kbase_debug_job_fault_context_init [mali_kbase]
[ 1795.600744@3] dump_vmalloc, va:f2ef7000-f2efd000, size:00000024 KB, alloc:kbase_mem_alloc [mali_kbase]
[ 1795.600752@3] dump_vmalloc, va:f4319000-f431b000, size:00000008 KB, alloc:di_ioctl
[ 1795.600756@3] dump_vmalloc, va:f431b000-f431e000, size:00000012 KB, alloc:di_ioctl
[ 1795.600761@3] dump_vmalloc, va:f4326000-f4b10000, size:00008104 KB, alloc:ion_cma_allocate
[ 1795.600764@3] dump_vmalloc, va:f4b10000-f52fa000, size:00008104 KB, alloc:ion_cma_allocate
[ 1795.600768@3] dump_vmalloc, va:f52fa000-f5ae4000, size:00008104 KB, alloc:ion_cma_allocate
[ 1795.600839@3] dump_vmalloc, va:f5b15000-f5b18000, size:00000012 KB, alloc:kbase_mem_import [mali_kbase]
[ 1795.600845@3] dump_vmalloc, va:f5b7c000-f5b7f000, size:00000012 KB, alloc:stmmac_open
[ 1795.600849@3] dump_vmalloc, va:f5b7f000-f5b82000, size:00000012 KB, alloc:stmmac_open
[ 1795.600854@3] dump_vmalloc, va:f6524000-f6527000, size:00000012 KB, alloc:pcpu_mem_zalloc
[ 1795.600924@3] dump_vmalloc, va:f652f000-f6545000, size:00000088 KB, alloc:kbase_create_context [mali_kbase]
[ 1795.600995@3] dump_vmalloc, va:f6545000-f654e000, size:00000036 KB, alloc:kbase_debug_job_fault_context_init [mali_kbase]
[ 1795.601067@3] dump_vmalloc, va:f654e000-f6554000, size:00000024 KB, alloc:kbase_mem_alloc [mali_kbase]
[ 1795.601141@3] dump_vmalloc, va:f655c000-f655f000, size:00000012 KB, alloc:kbase_mem_import [mali_kbase]
[ 1795.601221@3] dump_vmalloc, va:f6567000-f656a000, size:00000012 KB, alloc:kbase_mem_import [mali_kbase]
[ 1795.601293@3] dump_vmalloc, va:f77af000-f77c5000, size:00000088 KB, alloc:kbase_create_context [mali_kbase]
[ 1795.601363@3] dump_vmalloc, va:f77c5000-f77ce000, size:00000036 KB, alloc:kbase_debug_job_fault_context_init [mali_kbase]
[ 1795.601435@3] dump_vmalloc, va:f77ce000-f77d4000, size:00000024 KB, alloc:kbase_mem_alloc [mali_kbase]
[ 1795.601440@3] dump_vmalloc, va:f77ed000-f7d52000, size:00005524 KB, alloc:kernel_read_file
[ 1795.601446@3] dump_vmalloc, va:f7f04000-f7f85000, size:00000516 KB, alloc:disksize_store
[ 1795.601451@3] dump_vmalloc, va:f7f95000-f7fa6000, size:00000068 KB, alloc:SyS_swapon
[ 1795.601455@3] dump_vmalloc, va:f7fa6000-f7fa8000, size:00000008 KB, alloc:SyS_swapon
[ 1795.601527@3] dump_vmalloc, va:f7fbc000-f7fc0000, size:00000016 KB, alloc:kbase_mem_import [mali_kbase]
[ 1795.601534@3] dump_vmalloc, va:fee00000-ff000000, size:00002048 KB, alloc:pci_reserve_io
[ 1795.601540@3] dump_vmalloc, va:ff788000-ff7c4000, size:00000240 KB, alloc:pcpu_get_vm_areas
[ 1795.601544@3] dump_vmalloc, va:ff7c4000-ff800000, size:00000240 KB, alloc:pcpu_get_vm_areas
[ 1795.601549@3] vmap allocation for size 13389824 failed: use vmalloc= to increase size
[ 1795.601561@3] insmod: vmalloc: allocation failure: 13385728 bytes, mode:0x24000c0(GFP_KERNEL)
[ 1795.601567@3] CPU: 3 PID: 5687 Comm: insmod Tainted: P O 4.9.113 #18
[ 1795.601569@3] Hardware name: Generic DT based system
[ 1795.601579@3] [bc68db64+ 16][] show_stack+0x20/0x24
[ 1795.601586@3] [bc68db8c+ 40][] dump_stack+0xb8/0xf4
[ 1795.601594@3] [bc68dbb8+ 44][] warn_alloc+0x11c/0x130
[ 1795.601601@3] [bc68dc14+ 80][] __vmalloc_node_range+0x1c8/0x258
[ 1795.601607@3] [bc68dc44+ 48][] module_alloc+0x5c/0x64
[ 1795.601614@3] [bc68dd04+ 192][] load_module+0x850/0x2678
[ 1795.601620@3] [bc68dd8c+ 136][] SyS_finit_module+0xb8/0xc8
[ 1795.601627@3] [00000000+ 0][] ret_fast_syscall+0x0/0x1c
[ 1795.601629@3] Mem-Info:
[ 1795.601642@3] active_anon:45609 inactive_anon:85 isolated_anon:0
[ 1795.601642@3] active_file:37199 inactive_file:98306 isolated_file:0
[ 1795.601642@3] unevictable:619 dirty:8 writeback:0 unstable:0
[ 1795.601642@3] slab_reclaimable:5742 slab_unreclaimable:6963
[ 1795.601642@3] mapped:73020 shmem:227 pagetables:4538 bounce:0
[ 1795.601642@3] [cma] driver:7480 anon:8384 file:5228 isolate:0 total:167936
[ 1795.601642@3] free:258537 free_pcp:728 free_cma:146714
[ 1795.601648@3] Node 0 active_anon:182436kB inactive_anon:340kB active_file:148796kB inactive_file:393224kB unevictable:2476kB isolated(anon):0kB isolated(file):0kB mapped:292080kB dirty:32kB writeback:o
[ 1795.601659@3] Normal free:446620kB min:12288kB low:24008kB high:27080kB active_anon:42332kB inactive_anon:84kB active_file:21340kB inactive_file:3456kB unevictable:0kB writepending:32kB present:786432B
lowmem_reserve[]: 0 10240 10240
[ 1795.601676@3] HighMem free:587528kB min:512kB low:21152kB high:26560kB active_anon:140104kB inactive_anon:256kB active_file:127456kB inactive_file:389768kB unevictable:2476kB writepending:0kB present:B
lowmem_reserve[]: 0 0 0
[ 1795.601723@3] Normal: 5814kB (UME) 1818kB (ME) 7616kB (UM) 4332kB (ME) 2964kB (UME) 13128kB (M) 10256kB (ME) 2512kB (M) 31024kB (UEC) 42048kB (M) 1034096kB (M) = 446620kB
HighMem: 81
4kB (UC) 1358kB (UMC) 2816kB (UC) 1332kB (UC) 964kB (UC) 5128kB (MC) 3256kB (MC) 1512kB (C) 11024kB (C) 22048kB (C) 1414096kB (C) = 587420kB
136227 total pagecache pages
[ 1795.601766@3] 0 pages in swap cache
[ 1795.601769@3] Swap cache stats: add 0, delete 0, find 0/0
[ 1795.601771@3] Free swap = 262140kB
[ 1795.601772@3] Total swap = 262140kB
[ 1795.601775@3] 524288 pages RAM
[ 1795.601776@3] 327680 pages HighMem/MovableOnly
[ 1795.601778@3] 10499 pages reserved
[ 1795.601780@3] 167936 pages cma reserved
insmod: failed to load 8852au.ko: Out of memory

cannot connect on non DFS 5G network

Hello,

I use a Tp-Link AX1800.
It work fine on DFS with any authentication methods.

On the non DFS it either connects and it does no transfer,
or fails to connect with the right password.

I tried to change to WPA2 or change the channels, it has the same behavior.

It is a bug or a configuration issue?
thanks

Build driver raspberry pi4b

while compiling the kernel via dkms I encountered the following error:

DKMS make.log for rtl8852au-1.15.0.1 for kernel 6.1.54-v8+ (aarch64)
#rm -f .symvers.8852au
make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/6.1.54-v8+/build M=/var/lib/dkms/rtl8852au/1.15.0.1/build  modules
make[1]: ingresso nella directory «/home/raspberry/linux-df4d584e66a660195422ca2b7ce1d68d1181f2a2»
  ....
  LD [M]  /var/lib/dkms/rtl8852au/1.15.0.1/build/8852au.o
  MODPOST /var/lib/dkms/rtl8852au/1.15.0.1/build/Module.symvers
ERROR: modpost: "__arch_copy_to_user" [/var/lib/dkms/rtl8852au/1.15.0.1/build/8852au.ko] undefined!
ERROR: modpost: "preempt_schedule_notrace" [/var/lib/dkms/rtl8852au/1.15.0.1/build/8852au.ko] undefined!
ERROR: modpost: "alt_cb_patch_nops" [/var/lib/dkms/rtl8852au/1.15.0.1/build/8852au.ko] undefined!
ERROR: modpost: "__udelay" [/var/lib/dkms/rtl8852au/1.15.0.1/build/8852au.ko] undefined!
ERROR: modpost: "csum_ipv6_magic" [/var/lib/dkms/rtl8852au/1.15.0.1/build/8852au.ko] undefined!
ERROR: modpost: "__rcu_read_unlock" [/var/lib/dkms/rtl8852au/1.15.0.1/build/8852au.ko] undefined!
ERROR: modpost: "__rcu_read_lock" [/var/lib/dkms/rtl8852au/1.15.0.1/build/8852au.ko] undefined!
ERROR: modpost: "_raw_spin_unlock" [/var/lib/dkms/rtl8852au/1.15.0.1/build/8852au.ko] undefined!
ERROR: modpost: "__arch_copy_from_user" [/var/lib/dkms/rtl8852au/1.15.0.1/build/8852au.ko] undefined!
ERROR: modpost: "__const_udelay" [/var/lib/dkms/rtl8852au/1.15.0.1/build/8852au.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:126: /var/lib/dkms/rtl8852au/1.15.0.1/build/Module.symvers] Errore 1
make[1]: *** [Makefile:1966: modpost] Errore 2
make[1]: uscita dalla directory «/home/raspberry/linux-df4d584e66a660195422ca2b7ce1d68d1181f2a2»
make: *** [Makefile:639: modules] Errore 2

pointer types error

Hi,
Thank you for sharing your great codes.
I tried to make your codes in CentOS8. However, I got error during make.

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.18.0-408.el8.x86_64/build M=/home/username/rtl8852au modules
make[1]: ディレクトリ '/usr/src/kernels/4.18.0-408.el8.x86_64' に入ります
CC [M] /home/username/rtl8852au/os_dep/linux/os_intfs.o
/home/username/rtl8852au/os_dep/linux/os_intfs.c:316:22: エラー: initialization of ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device , u16 ()(struct net_device *, struct sk_buff *, struct net_device ))’ {aka ‘short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device , short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device ))’} from incompatible pointer type ‘u16 ()(struct net_device *, struct sk_buff *, void , u16 ()(struct net_device *, struct sk_buff *, struct net_device ))’ {aka ‘short unsigned int ()(struct net_device *, struct sk_buff *, void , short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device *))’} [-Werror=incompatible-pointer-types]
.ndo_select_queue = rtw_select_queue,
^~~~~~~~~~~~~~~~
/home/username/rtl8852au/os_dep/linux/os_intfs.c:316:22: 備考: (‘rtw_netdev_ops.ndo_select_queue’ 用の初期化付近)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:316: /home/username/rtl8852au/os_dep/linux/os_intfs.o] エラー 1
make[1]: *** [Makefile:1577: module/home/username/rtl8852au] エラー 2
make[1]: ディレクトリ '/usr/src/kernels/4.18.0-408.el8.x86_64' から出ます
make: *** [Makefile:639: modules] エラー 2

maybe, its error is from os_intfs.c. Could you fix it? Sorry, some words are in Japanese in error message .

Best,

USB-AX55-NANO does not enumerate a network device

lsusb output:

Bus 002 Device 009: ID 0b05:1a62 ASUSTek Computer, Inc. 802.11ax WLAN Adapter

dmesg output:

[24247.309543] usb 2-12: new high-speed USB device number 9 using xhci_hcd
[24247.457975] usb 2-12: New USB device found, idVendor=0b05, idProduct=1a62, bcdDevice= 0.00
[24247.457978] usb 2-12: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[24247.457979] usb 2-12: Product: 802.11ax WLAN Adapter
[24247.457980] usb 2-12: Manufacturer: Realtek
[24247.457980] usb 2-12: SerialNumber: 00e04c000001
[24512.865086] ieee80211 phy0: rt2x00lib_rxdone_read_signal: Warning - Frame received with unrecognized signal, mode=0x0000, signal=0x0003, type=4

lsusb output:

$ lsmod | grep '8852au'
8852au              13492224  0
cfg80211              983040  1 8852au
usbcore               331776  14 xhci_hcd,ehci_pci,usbnet,8852au,snd_usb_audio,usbhid,snd_usbmidi_lib,cdc_mbim,cdc_ncm,cdc_wdm,uvcvideo,ehci_hcd,xhci_pci,cdc_ether

No wifi device in /sys:

jklug@jakDebian11:/sys/class/net$ ls
docker0  eno1  enp4s0  enx00e04c680b7a  lo

Comment for PID 1a62 (I have AX 55 not AX56):

/*=== ASUS USB-AX56 =======*/
{USB_DEVICE_AND_INTERFACE_INFO(USB_VENDOR_ID_ASUS, 0x1997, 0xff, 0xff, 0xff), .driver_info = RTL8852A},
{USB_DEVICE_AND_INTERFACE_INFO(USB_VENDOR_ID_ASUS, 0x1a62, 0xff, 0xff, 0xff), .driver_info = RTL8852A},

GCC kernel plugin "Randomize layout of sensitive kernel structures" makes the build abort with an ICE

With "Randomize layout of sensitive kernel structures" (GCC plugins) turned on in the kernel configuration, the compilation terminates with a GCC Internal Compiler Error:

# make CROSS_COMPILE=x86_64-pc-linux-gnu-

#rm -f .symvers.8852au
make ARCH=x86_64 CROSS_COMPILE=x86_64-pc-linux-gnu- -C /lib/modules/5.17.14-gentoo-x86_64/build M=/usr/src/rtl8852au  modules
make[1]: Entering directory '/usr/src/linux-5.17.14-gentoo'
  CC [M]  /usr/src/rtl8852au/os_dep/osdep_service.o
(....)
  CC [M]  /usr/src/rtl8852au/phl/phl_init.o
  CC [M]  /usr/src/rtl8852au/phl/phl_debug.o
  CC [M]  /usr/src/rtl8852au/phl/phl_tx.o
  CC [M]  /usr/src/rtl8852au/phl/phl_rx.o
‘void (*)(_adapter *)
Internal compiler error: Error reporting routines re-entered.
  CC [M]  /usr/src/rtl8852au/phl/phl_rx_agg.o
  CC [M]  /usr/src/rtl8852au/phl/phl_api_drv.o
  CC [M]  /usr/src/rtl8852au/phl/phl_role.o
  CC [M]  /usr/src/rtl8852au/phl/phl_sta.o
  CC [M]  /usr/src/rtl8852au/phl/phl_mr.o
  CC [M]  /usr/src/rtl8852au/phl/phl_sec.o
  CC [M]  /usr/src/rtl8852au/phl/phl_chan.o
  CC [M]  /usr/src/rtl8852au/phl/phl_sw_cap.o
  CC [M]  /usr/src/rtl8852au/phl/phl_util.o
  CC [M]  /usr/src/rtl8852au/phl/phl_pkt_ofld.o
0x610da5 build_type_attribute_qual_variant(tree_node*, tree_node*, int)
        /usr/src/debug/sys-devel/gcc-11.3.0/gcc-11.3.0/gcc/attribs.c:1144
0x6517a4 get_aka_type
        /usr/src/debug/sys-devel/gcc-11.3.0/gcc-11.3.0/gcc/c/c-objc-common.c:111
0x651854 get_aka_type
        /usr/src/debug/sys-devel/gcc-11.3.0/gcc-11.3.0/gcc/c/c-objc-common.c:158
0x6517a4 get_aka_type
        /usr/src/debug/sys-devel/gcc-11.3.0/gcc-11.3.0/gcc/c/c-objc-common.c:111
0x651c70 print_type
        /usr/src/debug/sys-devel/gcc-11.3.0/gcc-11.3.0/gcc/c/c-objc-common.c:210
0x6520c7 c_tree_printer
        /usr/src/debug/sys-devel/gcc-11.3.0/gcc-11.3.0/gcc/c/c-objc-common.c:316
0x6520c7 c_tree_printer
        /usr/src/debug/sys-devel/gcc-11.3.0/gcc-11.3.0/gcc/c/c-objc-common.c:260
0x167ea7c pp_format(pretty_printer*, text_info*)
        /usr/src/debug/sys-devel/gcc-11.3.0/gcc-11.3.0/gcc/pretty-print.c:1475
0x1671c06 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
        /usr/src/debug/sys-devel/gcc-11.3.0/gcc-11.3.0/gcc/diagnostic.c:1244
0x16741e9 diagnostic_impl
        /usr/src/debug/sys-devel/gcc-11.3.0/gcc-11.3.0/gcc/diagnostic.c:1406
0x16741e9 warning_at(unsigned int, int, char const*, ...)
        /usr/src/debug/sys-devel/gcc-11.3.0/gcc-11.3.0/gcc/diagnostic.c:1543
0x645789 build_c_cast(unsigned int, tree_node*, tree_node*)
        /usr/src/debug/sys-devel/gcc-11.3.0/gcc-11.3.0/gcc/c/c-typeck.c:6085
0x646094 c_cast_expr(unsigned int, c_type_name*, tree_node*)
        /usr/src/debug/sys-devel/gcc-11.3.0/gcc-11.3.0/gcc/c/c-typeck.c:6164
0x6635d4 c_parser_cast_expression
        /usr/src/debug/sys-devel/gcc-11.3.0/gcc-11.3.0/gcc/c/c-parser.c:8063
0x663772 c_parser_binary_expression
        /usr/src/debug/sys-devel/gcc-11.3.0/gcc-11.3.0/gcc/c/c-parser.c:7874
0x664b78 c_parser_conditional_expression
        /usr/src/debug/sys-devel/gcc-11.3.0/gcc-11.3.0/gcc/c/c-parser.c:7597
0x665179 c_parser_expr_no_commas
        /usr/src/debug/sys-devel/gcc-11.3.0/gcc-11.3.0/gcc/c/c-parser.c:7512
0x656a4f c_parser_expr_list
        /usr/src/debug/sys-devel/gcc-11.3.0/gcc-11.3.0/gcc/c/c-parser.c:10735
0x66640d c_parser_postfix_expression_after_primary
        /usr/src/debug/sys-devel/gcc-11.3.0/gcc-11.3.0/gcc/c/c-parser.c:10442
0x65e263 c_parser_postfix_expression
        /usr/src/debug/sys-devel/gcc-11.3.0/gcc-11.3.0/gcc/c/c-parser.c:10145
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
make[2]: *** [scripts/Makefile.build:288: /usr/src/rtl8852au/core/rtw_trx_usb.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1831: /usr/src/rtl8852au] Error 2
make[1]: Leaving directory '/usr/src/linux-5.17.14-gentoo'
make: *** [Makefile:629: modules] Error 2

Perfectly reproducible with branch "dwa-x1850" at commit 1e9a9b1
Tested with Linux 5.17.14 + Gentoo patches, and GCC 11.3.0
Disabling the "Randomize layout of sensitive kernel structures" GCC plugin solved the issue for me.
No bug report submitted yet.

mobile robot with rpi4 Ubuntu 22.04 driver issue

Good morning y'all!

Happy Easter to you kind souls!

I'm stuck trying to get my new TP-Link AX1800 - Archer TX20U Plus working on my mobile Robot I'm working on.
The Archer TX20U Plus is based on the RTL8852AU chipset and I'm struggling getting the driver to work on Ubuntu 22.04.
Installation details:

a) raspberry pi 4b

cat /proc/cpuinfo
	processor       : 0
	BogoMIPS        : 108.00
	Features        : fp asimd evtstrm crc32 cpuid
	CPU implementer : 0x41
	CPU architecture: 8
	CPU variant     : 0x0
	CPU part        : 0xd08
	CPU revision    : 3

	processor       : 1
	BogoMIPS        : 108.00
	Features        : fp asimd evtstrm crc32 cpuid
	CPU implementer : 0x41
	CPU architecture: 8
	CPU variant     : 0x0
	CPU part        : 0xd08
	CPU revision    : 3

	processor       : 2
	BogoMIPS        : 108.00
	Features        : fp asimd evtstrm crc32 cpuid
	CPU implementer : 0x41
	CPU architecture: 8
	CPU variant     : 0x0
	CPU part        : 0xd08
	CPU revision    : 3

	processor       : 3
	BogoMIPS        : 108.00
	Features        : fp asimd evtstrm crc32 cpuid
	CPU implementer : 0x41
	CPU architecture: 8
	CPU variant     : 0x0
	CPU part        : 0xd08
	CPU revision    : 3

	Hardware        : BCM2835
	Revision        : b03111
	Serial          : 10000000:-)xxx0
	Model           : Raspberry Pi 4 Model B Rev 1.1

b)

lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description:    Ubuntu 22.04.2 LTS
    Release:        22.04
    Codename:       jammy

c)

uname -i
    aarch64

d)

uname -a
    Linux autobotv2 5.15.0-1026-raspi #28-Ubuntu SMP PREEMPT Fri Mar 10 14:28:52 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

I have found this Github repo and have followed the instructions exactly.

https://github.com/lwfinger/rtl8852au

Here are the steps I have performed:

  1. plugged in the device to USB
  2. lsusb shows: Bus 001 Device 007: ID 2357:013f TP-Link 802.11ac WLAN Adapter
  3. updated and amde sure all requirements are met / latest
sudo apt-get update
    sudo apt-get install make gcc linux-headers-$(uname -r) build-essential git
  1. created a new directory in my home folder and cloned the git into it:
mkdir src
    cd src
    git clone https://github.com/lwfinger/rtl8852au.git
  1. made sure to update the udev rules matching my device listed in lsusb output
sudo nano /usr/lib/udev/rules.d/40-usb_modeswitch.rules
    and added the below two lines to the bottom
        # tp-link AX1800 - Archer TX20U Plus (rtl8852au chipset)
        ATTR{idVendor}=="2357", ATTR{idProduct}=="013f", RUN+="usb_modeswitch '/%k'"

-> by the way /lib/udev/rules.d/40-usb_modeswitch.rules contains the same two lines in the bottom. Must be the same file or a symlink!?
6. Then continued with the build process and install

 cd rtl8852au
    make
    sudo make install
  1. I did not get any error output and the install process was flawless. That was yesterday evening. I do not have the terminal trace though.
  2. reboot
  3. ifconfig shows only loopback and the built-in wifi as wlan0, but not the plugged tp-link :-/
 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 102  bytes 8824 (8.8 KB)
	RX errors 0  dropped 0  overruns 0  frame 0
	TX packets 102  bytes 8824 (8.8 KB)
	TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
	inet 192.168.68.201  netmask 255.255.255.0  broadcast 192.168.68.255
	inet6 fe80::dea6:32ff:fe2a:7e96  prefixlen 64  scopeid 0x20<link>
	ether dc:a6:32:2a:7e:96  txqueuelen 1000  (Ethernet)
	RX packets 495  bytes 66254 (66.2 KB)
	RX errors 0  dropped 41  overruns 0  frame 0
	TX packets 609  bytes 142954 (142.9 KB)
	TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
  1. lsusb still shows the device listed, same as under step 2. My understand is, that the udev rules should unload it and not list it with lsusb?
Bus 001 Device 007: ID 2357:013f TP-Link 802.11ac WLAN Adapter

Same output as before I started installing any drivers. So this has never changed

Here is the output of dkms status

8812au/5.6.4.2_35491.20191025: added
rtl8821au/5.12.5.2, 5.15.0-1026-raspi, aarch64: installed
rtl8852au/1.15.0.1: added

nmcli dev wifi

nmcli dev wifi
IN-USE  BSSID              SSID                MODE   CHAN  RATE        SIGNAL  BARS  SECURITY
	68:FF:7B:21:??:E3  Home                   Infra  4     270 Mbit/s  100     ▂▄▆█  WPA1 WPA2
	6E:FF:7B:21:??:E3  --                  Infra  4     270 Mbit/s  100     ▂▄▆█  WPA2
	68:FF:7B:21:??:F3  Home                Infra  36    270 Mbit/s  92      ▂▄▆█  WPA1 WPA2
	6E:FF:7B:21:??:F3  --                  Infra  36    270 Mbit/s  90      ▂▄▆█  WPA2
	82:D9:82:30:??:9C  2degrees            Infra  36    270 Mbit/s  39      ▂▄__  WPA2 WPA3
	82:D9:82:30:??:98  2degrees            Infra  36    270 Mbit/s  39      ▂▄__  WPA2 WPA3
	74:??:28:1F:A0:24  AONET-1             Infra  1     130 Mbit/s  21      ▂▄__  WPA1 WPA2
	68:FF:7B:21:??:21  Home                Infra  4     270 Mbit/s  30      ▂___  WPA1 WPA2
	68:FF:7B:21:??:A0  Home                Infra  4     270 Mbit/s  30      ▂___  WPA1 WPA2
	6E:FF:7B:21:??:A0  --                  Infra  4     270 Mbit/s  30      ▂___  WPA2
	6E:FF:7B:21:??:21  --                  Infra  4     270 Mbit/s  29      ▂___  WPA2
	88:DC:96:56:94:FE  --                  Infra  6     270 Mbit/s  29      ▂___  --
	82:D9:82:30:??:94  2degrees            Infra  6     130 Mbit/s  29      ▂___  WPA2 WPA3
	21:80:88:FC:F1:D1  --                  Infra  13    270 Mbit/s  29      ▂___  WPA2
	2E:80:88:FC:F1:D1  Lan                 Infra  13    270 Mbit/s  29      ▂___  WPA2
	18:FD:74:36:B1:35  AONET-3             Infra  1     130 Mbit/s  27      ▂___  WPA1 WPA2
	0A:18:A0:2D:??:85  Mo                  Infra  1     130 Mbit/s  27      ▂___  WPA1 WPA2
	88:DC:96:56:95:55  --                  Infra  6     270 Mbit/s  27      ▂___  --

modinfo 8852au

filename:       /lib/modules/5.15.0-1026-raspi/kernel/drivers/net/wireless/realtek/rtw89/8852au.ko
version:        v1.15.0.1-0-g487ee886.20210714
author:         Realtek Semiconductor Corp.
description:    Realtek Wireless Lan Driver
license:        GPL
srcversion:     CA3688458F929C1F84A1DFB
alias:          usb:v2357p0141d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v2357p013Fd*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v2001p3321d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0411p0312d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0B05p1A62d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0B05p1997d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDAp885Cd*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDAp885Ad*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDAp8832d*dc*dsc*dp*icFFiscFFipFFin*
depends:        cfg80211
name:           8852au
vermagic:       5.15.0-1026-raspi SMP preempt mod_unload modversions aarch64
parm:           rtw_wireless_mode:int
parm:           rtw_band_type:int
parm:           rtw_ips_mode:The default IPS mode (int)
parm:           rtw_lps_level:The default LPS level (int)
parm:           rtw_lps_chk_by_tp:int
parm:           rtw_max_bss_cnt:int
parm:           rtw_usb_rxagg_mode:int
parm:           rtw_dynamic_agg_enable:int
parm:           rtw_tx_bw_mode:The max tx bw for 2.4G and 5G. format is the same as rtw_bw_mode (uint)
parm:           rtw_max_amsdu_len:uint
parm:           rtw_rx_ampdu_sz_limit_1ss:RX AMPDU size limit for 1SS link of each BW, 0xFF: no limitation (array of uint)
parm:           rtw_rx_ampdu_sz_limit_2ss:RX AMPDU size limit for 2SS link of each BW, 0xFF: no limitation (array of uint)
parm:           rtw_rx_ampdu_sz_limit_3ss:RX AMPDU size limit for 3SS link of each BW, 0xFF: no limitation (array of uint)
parm:           rtw_rx_ampdu_sz_limit_4ss:RX AMPDU size limit for 4SS link of each BW, 0xFF: no limitation (array of uint)
parm:           rtw_vht_enable:int
parm:           rtw_vht_24g_enable:int
parm:           rtw_vht_rx_mcs_map:VHT RX MCS map (uint)
parm:           rtw_he_enable:int
parm:           rtw_rf_path:int
parm:           rtw_tx_nss:int
parm:           rtw_rx_nss:int
parm:           rtw_country_code:The default country code (in alpha2) (charp)
parm:           rtw_channel_plan:The default chplan ID when rtw_alpha2 is not specified or valid (int)
parm:           rtw_excl_chs:exclusive channel array (array of uint)
parm:           rtw_pci_dynamic_aspm_linkctrl:int
parm:           rtw_qos_opt_enable:int
parm:           ifname:The default name to allocate for first interface (charp)
parm:           if2name:The default name to allocate for second interface (charp)
parm:           rtw_vo_edca:uint
parm:           rtw_ap_src_b2u_flags:int
parm:           rtw_ap_fwd_b2u_flags:int
parm:           rtw_wowlan_sta_mix_mode:int
parm:           rtw_pwrtrim_enable:int
parm:           rtw_initmac:charp
parm:           rtw_chip_version:int
parm:           rtw_rfintfs:int
parm:           rtw_lbkmode:int
parm:           rtw_network_mode:int
parm:           rtw_channel:int
parm:           rtw_mp_mode:int
parm:           rtw_wmm_enable:int
parm:           rtw_vrtl_carrier_sense:int
parm:           rtw_vcs_type:int
parm:           rtw_hw_rts_en:int
parm:           rtw_busy_thresh:int
parm:           rtw_ht_enable:int
parm:           rtw_bw_mode:int
parm:           rtw_ampdu_enable:int
parm:           rtw_rx_stbc:int
parm:           rtw_rx_ampdu_amsdu:int
parm:           rtw_tx_ampdu_amsdu:int
parm:           rtw_quick_addba_req:int
parm:           rtw_beamform_cap:int
parm:           rtw_sw_proto_bf_cap_phy0:int
parm:           rtw_sw_proto_bf_cap_phy1:int
parm:           rtw_dyn_txbf:int
parm:           rtw_lowrate_two_xmit:int
parm:           rtw_power_mgnt:int
parm:           rtw_smart_ps:int
parm:           rtw_low_power:int
parm:           rtw_wifi_spec:int
parm:           rtw_full_ch_in_p2p_handshake:int
parm:           rtw_antdiv_cfg:int
parm:           rtw_antdiv_type:int
parm:           rtw_drv_ant_band_switch:int
parm:           rtw_single_ant_path:int
parm:           rtw_switch_usb_mode:int
parm:           rtw_hwpwrp_detect:int
parm:           rtw_hw_wps_pbc:int
parm:           rtw_check_hw_status:int
parm:           rtw_max_roaming_times:The max roaming times to try (uint)
parm:           rtw_hiq_filter:0:allow all, 1:allow special, 2:deny all (uint)
parm:           rtw_adaptivity_en:0:disable, 1:enable (uint)
parm:           rtw_adaptivity_mode:0:normal, 1:carrier sense (uint)
parm:           rtw_adaptivity_th_l2h_ini:th_l2h_ini for Adaptivity (int)
parm:           rtw_adaptivity_th_edcca_hl_diff:th_edcca_hl_diff for Adaptivity (int)
parm:           rtw_dfs_region_domain:0:UNKNOWN, 1:FCC, 2:MKK, 3:ETSI (uint)
parm:           rtw_amsdu_mode:0:non-spp, 1:spp, 2:all drop (uint)
parm:           rtw_amplifier_type_2g:BIT3:2G ext-PA, BIT4:2G ext-LNA (uint)
parm:           rtw_amplifier_type_5g:BIT6:5G ext-PA, BIT7:5G ext-LNA (uint)
parm:           rtw_rfe_type:default init value:64 (uint)
parm:           rtw_dbcc_en:0:Disable, 1:Enable DBCC (int)
parm:           rtw_powertracking_type:default init value:64 (uint)
parm:           rtw_GLNA_type:default init value:0 (uint)
parm:           rtw_TxBBSwing_2G:default init value:0xFF (uint)
parm:           rtw_TxBBSwing_5G:default init value:0xFF (uint)
parm:           rtw_OffEfuseMask:default open Efuse Mask value:0 (uint)
parm:           rtw_FileMaskEfuse:default drv Mask Efuse value:0 (uint)
parm:           rtw_rxgain_offset_2g:default RF Gain 2G Offset value:0 (uint)
parm:           rtw_rxgain_offset_5gl:default RF Gain 5GL Offset value:0 (uint)
parm:           rtw_rxgain_offset_5gh:uint
parm:           rtw_rxgain_offset_5gm:default RF Gain 5GM Offset value:0 (uint)
parm:           rtw_pll_ref_clk_sel:force pll_ref_clk_sel, 0xF:use autoload value (uint)
parm:           rtw_tx_pwr_by_rate:0:Disable, 1:Enable, 2: Depend on efuse (int)
parm:           rtw_tx_pwr_lmt_enable:0:Disable, 1:Enable, 2: Depend on efuse (int)
parm:           rtw_target_tx_pwr_2g_a:2.4G target tx power (unit:dBm) of RF path A for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_2g_b:2.4G target tx power (unit:dBm) of RF path B for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_2g_c:2.4G target tx power (unit:dBm) of RF path C for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_2g_d:2.4G target tx power (unit:dBm) of RF path D for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_5g_a:5G target tx power (unit:dBm) of RF path A for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_5g_b:5G target tx power (unit:dBm) of RF path B for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_5g_c:5G target tx power (unit:dBm) of RF path C for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_5g_d:5G target tx power (unit:dBm) of RF path D for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_phy_file_path:The path of phy parameter (charp)
parm:           rtw_load_phy_file:PHY File Bit Map (int)
parm:           rtw_decrypt_phy_file:Enable Decrypt PHY File (int)
parm:           rtw_phydm_ability:uint
parm:           rtw_halrf_ability:uint
parm:           rtw_en_napi:int
parm:           rtw_en_gro:int
parm:           rtw_iqk_fw_offload:int
parm:           rtw_ch_switch_offload:int
parm:           rtw_en_dyn_rrsr:int
parm:           rtw_rrsr_value:int
parm:           rtw_scan_interval_thr:Threshold used to judge if scan request comes from scan UI, unit is ms. (uint)
parm:           rtw_roch_min_home_dur:uint
parm:           rtw_roch_max_away_dur:uint
parm:           rtw_roch_extend_dur:uint

Not sure if that means the driver is properly installed.
Is there a command to list all atatched network interfaces other than ifconfig? Something that goes a bit more in depth? Because afaik ifconfig only shows active interfaces that are "up". I also tried "sudo ifup wlan1" but as you might guess that also didn't work..

lsmod | grep 8852

8852au              13656064  0
cfg80211              966656  2 8852au,brcmfmac

Does anyone know what I'm missing, or what else I can try? I bought this adapter specifically because google research before purchase showed compatibility and easy to use in non-windows environments.
The issue with raspberry pi's built-in wifi is, that it performs poorly, since it is tucked away inside the Robot, that's why I need a cable extended USB wifi adapter.

Please help!

No interface speed information

Environments

  • OS: Fedora 37 x86_64
  • Kernel version: 6.1.7
  • WiFi dongle model: EDUP EP-AX1696GS
  • USB ID: 0bda:8832

Desciption

The speed is 'unknown' in interface information of network manager applet.

And cat /sys/class/net/$interface_name/speed report error: cat: /sys/class/net/wlp48s0f3u2/speed: Invalid argument.

can not compilite

leonpano@leonpano-desktop:~/rtl8852au$ make
#rm -f .symvers.8852au
make ARCH=aarch64 CROSS_COMPILE= -C /lib/modules/5.10.65-tegra/build M=/home/leonpano/rtl8852au modules
make[1]: Entering directory '/usr/src/linux-headers-5.10.65-tegra-ubuntu20.04_aarch64/kernel-5.10'
Makefile:712: arch/aarch64/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/aarch64/Makefile'. Stop.
make[1]: Leaving directory '/usr/src/linux-headers-5.10.65-tegra-ubuntu20.04_aarch64/kernel-5.10'
make: *** [Makefile:629: modules] Error 2

RTL8852AU driver for monitor mode ?

Hi All
It seems that the monitor mode of RTL8852AU with latest driver 1.15.0.1 on github not work properly on my Ubuntu(kernal 5.19),
Is there any updated driver for RTL8852 to use monitor mode?
Thanks for your answering.

Driver array-index-out-of-bounds errors when device is plugged in

Hi, I compiled and installed your driver with "make arch=arm64" on ubuntu 22.04, kernel 5.15, on a raspberry pi. When I plug in the wifi adapter, dmesg shows a variety of array-index-out-of-bounds.

[40586.289261] usb 1-1.3: new high-speed USB device number 4 using dwc2
[40586.390944] usb 1-1.3: New USB device found, idVendor=0bda, idProduct=885c, bcdDevice= 0.00
[40586.390988] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[40586.391012] usb 1-1.3: Product: 802.11ax WLAN Adapter
[40586.391033] usb 1-1.3: Manufacturer: Realtek
[40586.391065] usb 1-1.3: SerialNumber: 00e04c000001
[40587.913738] 8852au: loading out-of-tree module taints kernel.
[40588.018469] 8852au: module verification failed: signature and/or required key missing - tainting kernel
[40588.046902] systemd-udevd: page allocation failure: order:4, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=systemd-udevd.service,mems_allowed=0
[40588.046987] CPU: 3 PID: 15815 Comm: systemd-udevd Tainted: G        WC OE     5.15.0-1005-raspi #5-Ubuntu
[40588.046999] Hardware name: Raspberry Pi Zero 2 Rev 1.0 (DT)
[40588.047005] Call trace:
[40588.047009]  dump_backtrace+0x0/0x1f0
[40588.047027]  show_stack+0x24/0x30
[40588.047036]  dump_stack_lvl+0x8c/0xb8
[40588.047048]  dump_stack+0x18/0x34
[40588.047056]  warn_alloc+0x11c/0x1b0
[40588.047066]  __alloc_pages_slowpath.constprop.0+0x908/0x924
[40588.047075]  __alloc_pages+0x2bc/0x33c
[40588.047083]  __get_free_pages+0x28/0x50
[40588.047092]  ftrace_allocate_pages+0xac/0x240
[40588.047104]  ftrace_process_locs.isra.0+0x6c/0x300
[40588.047116]  ftrace_module_init+0x34/0x40
[40588.047128]  load_module+0x60c/0xbb0
[40588.047137]  __do_sys_finit_module+0xa8/0x11c
[40588.047146]  __arm64_sys_finit_module+0x2c/0x40
[40588.047154]  invoke_syscall+0x50/0x120
[40588.047168]  el0_svc_common.constprop.0+0x180/0x1a0
[40588.047180]  do_el0_svc+0x34/0xa0
[40588.047190]  el0_svc+0x4c/0x1c0
[40588.047202]  el0t_64_sync_handler+0xa4/0x12c
[40588.047212]  el0t_64_sync+0x1a4/0x1a8
[40588.047231] Mem-Info:
[40588.047242] active_anon:1097 inactive_anon:6408 isolated_anon:0
                active_file:30040 inactive_file:24632 isolated_file:0
                unevictable:6549 dirty:40 writeback:1
                slab_reclaimable:10642 slab_unreclaimable:10411
                mapped:12363 shmem:31 pagetables:746 bounce:0
                kernel_misc_reclaimable:0
                free:3708 free_pcp:41 free_cma:708
[40588.047268] Node 0 active_anon:4388kB inactive_anon:25632kB active_file:120160kB inactive_file:98528kB unevictable:26196kB isolated(anon):0kB isolated(file):0kB mapped:49452kB dirty:160kB writeback:4kB shmem:124kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 0kB writeback_tmp:0kB kernel_stack:2960kB pagetables:2984kB all_unreclaimable? no
[40588.047295] DMA free:14832kB min:2460kB low:3072kB high:3684kB reserved_highatomic:0KB active_anon:4316kB inactive_anon:25616kB active_file:120160kB inactive_file:98532kB unevictable:26196kB writepending:164kB present:458752kB managed:424876kB mlocked:26196kB bounce:0kB free_pcp:164kB local_pcp:0kB free_cma:2832kB
[40588.047321] lowmem_reserve[]: 0 0 0 0
[40588.047369] DMA: 1925*4kB (MEC) 704*8kB (UMEC) 90*16kB (MC) 10*32kB (UM) 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 15092kB
[40588.047523] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB
[40588.047537] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=32768kB
[40588.047549] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
[40588.047562] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=64kB
[40588.047574] 59209 total pagecache pages
[40588.047583] 2984 pages in swap cache
[40588.047592] Swap cache stats: add 335543, delete 332563, find 82814/158926
[40588.047604] Free swap  = 2023164kB
[40588.047613] Total swap = 2097148kB
[40588.047622] 114688 pages RAM
[40588.047631] 0 pages HighMem/MovableOnly
[40588.047640] 8469 pages reserved
[40588.047648] 16384 pages cma reserved
[40588.796728] usbcore: registered new interface driver rtl8852au
[40588.980865] rtl8852au 1-1.3:1.0 wlx90de8025f143: renamed from wlan1
[40590.897439] ================================================================================
[40590.906400] UBSAN: shift-out-of-bounds in /home/pi/rtl8852au/phl/hal_g6/phy/bb/halbb_interface.c:136:40
[40590.916308] shift exponent 32 is too large for 32-bit type 'unsigned int'
[40590.923399] CPU: 2 PID: 665 Comm: NetworkManager Tainted: G        WC OE     5.15.0-1005-raspi #5-Ubuntu
[40590.923419] Hardware name: Raspberry Pi Zero 2 Rev 1.0 (DT)
[40590.923427] Call trace:
[40590.923431]  dump_backtrace+0x0/0x1f0
[40590.923448]  show_stack+0x24/0x30
[40590.923457]  dump_stack_lvl+0x8c/0xb8
[40590.923469]  dump_stack+0x18/0x34
[40590.923477]  ubsan_epilogue+0x10/0x54
[40590.923485]  __ubsan_handle_shift_out_of_bounds+0xf0/0x150
[40590.923497]  halbb_set_reg+0xb4/0xb8 [8852au]
[40590.924093]  halbb_digital_cfo_comp_init+0x30/0x6c [8852au]
[40590.924559]  halbb_cfo_trk_init+0xbc/0x13c [8852au]
[40590.925017]  halbb_dm_init+0xd8/0x1d8 [8852au]
[40590.925480]  rtw_hal_bb_dm_init+0x24/0x30 [8852au]
[40590.925934]  hal_start_8852a+0x140/0x250 [8852au]
[40590.926392]  hal_start_8852au+0x60/0x8c [8852au]
[40590.926847]  rtw_hal_start+0x44/0x120 [8852au]
[40590.927298]  rtw_phl_start+0x40/0x174 [8852au]
[40590.927751]  rtw_hw_start+0x38/0x68 [8852au]
[40590.928201]  netdev_open+0xd0/0x1a4 [8852au]
[40590.928655]  __dev_open+0x12c/0x224
[40590.928670]  __dev_change_flags+0x1a0/0x240
[40590.928681]  dev_change_flags+0x30/0x70
[40590.928692]  do_setlink+0x220/0x9e0
[40590.928703]  __rtnl_newlink+0x494/0x820
[40590.928712]  rtnl_newlink+0x5c/0x90
[40590.928722]  rtnetlink_rcv_msg+0x140/0x3a0
[40590.928732]  netlink_rcv_skb+0x68/0x134
[40590.928742]  rtnetlink_rcv+0x24/0x30
[40590.928752]  netlink_unicast+0x2c8/0x31c
[40590.928761]  netlink_sendmsg+0x280/0x470
[40590.928770]  sock_sendmsg+0x60/0x70
[40590.928780]  ____sys_sendmsg+0x290/0x2d4
[40590.928790]  ___sys_sendmsg+0x84/0xd0
[40590.928801]  __sys_sendmsg+0x74/0xd0
[40590.928812]  __arm64_sys_sendmsg+0x30/0x3c
[40590.928823]  invoke_syscall+0x50/0x120
[40590.928836]  el0_svc_common.constprop.0+0x6c/0x1a0
[40590.928848]  do_el0_svc+0x34/0xa0
[40590.928858]  el0_svc+0x4c/0x1c0
[40590.928871]  el0t_64_sync_handler+0xa4/0x12c
[40590.928881]  el0t_64_sync+0x1a4/0x1a8
[40590.929085] ================================================================================
[40592.198434] ================================================================================
[40592.207250] UBSAN: array-index-out-of-bounds in /home/pi/rtl8852au/phl/phl_cmd_dispatcher.c:1936:7
[40592.216621] index 16 is out of range for type 'u8 [16]'
[40592.222100] CPU: 0 PID: 15833 Comm: disp_eng_share_ Tainted: G        WC OE     5.15.0-1005-raspi #5-Ubuntu
[40592.222120] Hardware name: Raspberry Pi Zero 2 Rev 1.0 (DT)
[40592.222126] Call trace:
[40592.222130]  dump_backtrace+0x0/0x1f0
[40592.222148]  show_stack+0x24/0x30
[40592.222157]  dump_stack_lvl+0x8c/0xb8
[40592.222168]  dump_stack+0x18/0x34
[40592.222176]  ubsan_epilogue+0x10/0x54
[40592.222184]  __ubsan_handle_out_of_bounds+0x80/0x90
[40592.222196]  dispr_send_msg+0x158/0x360 [8852au]
[40592.222774]  phl_disp_eng_send_msg+0x90/0x98 [8852au]
[40592.223232]  _phl_cmd_scan_req_acquired+0x108/0x164 [8852au]
[40592.223680]  register_cur_cmd_req+0x4c/0x7c [8852au]
[40592.224133]  dispr_process_token_req+0x64/0x108 [8852au]
[40592.224588]  _handle_token_op_info+0xac/0x1a8 [8852au]
[40592.225042]  token_op_hanler+0x54/0xb4 [8852au]
[40592.225499]  dispr_thread_loop_hdl+0x40/0x1f4 [8852au]
[40592.225952]  dispr_share_thread_loop_hdl+0x1c/0x28 [8852au]
[40592.226407]  share_thread_hdl+0x8c/0x144 [8852au]
[40592.226857]  kthread+0x12c/0x140
[40592.226870]  ret_from_fork+0x10/0x20
[40592.227109] ================================================================================
[40592.235884] ================================================================================
[40592.244624] UBSAN: array-index-out-of-bounds in /home/pi/rtl8852au/phl/phl_cmd_dispatcher.c:557:5
[40592.256465] index 16 is out of range for type 'u8 [16]'
[40592.264495] CPU: 0 PID: 15833 Comm: disp_eng_share_ Tainted: G        WC OE     5.15.0-1005-raspi #5-Ubuntu
[40592.264510] Hardware name: Raspberry Pi Zero 2 Rev 1.0 (DT)
[40592.264517] Call trace:
[40592.264520]  dump_backtrace+0x0/0x1f0
[40592.264538]  show_stack+0x24/0x30
[40592.264547]  dump_stack_lvl+0x8c/0xb8
[40592.264559]  dump_stack+0x18/0x34
[40592.264568]  ubsan_epilogue+0x10/0x54
[40592.264576]  __ubsan_handle_out_of_bounds+0x80/0x90
[40592.264588]  set_msg_bitmap+0xdc/0xe0 [8852au]
[40592.265332]  dispr_send_msg+0x1e0/0x360 [8852au]
[40592.265915]  phl_disp_eng_send_msg+0x90/0x98 [8852au]
[40592.266443]  _phl_cmd_scan_req_acquired+0x108/0x164 [8852au]
[40592.266966]  register_cur_cmd_req+0x4c/0x7c [8852au]
[40592.267488]  dispr_process_token_req+0x64/0x108 [8852au]
[40592.268014]  _handle_token_op_info+0xac/0x1a8 [8852au]
[40592.268538]  token_op_hanler+0x54/0xb4 [8852au]
[40592.269067]  dispr_thread_loop_hdl+0x40/0x1f4 [8852au]
[40592.269596]  dispr_share_thread_loop_hdl+0x1c/0x28 [8852au]
[40592.270067]  share_thread_hdl+0x8c/0x144 [8852au]
[40592.270520]  kthread+0x12c/0x140
[40592.270534]  ret_from_fork+0x10/0x20
[40592.270633] ================================================================================
[40592.284708] ================================================================================
[40592.298752] UBSAN: array-index-out-of-bounds in /home/pi/rtl8852au/phl/phl_cmd_dispatcher.c:580:5
[40592.313226] index 16 is out of range for type 'u8 [16]'
[40592.321299] CPU: 0 PID: 15833 Comm: disp_eng_share_ Tainted: G        WC OE     5.15.0-1005-raspi #5-Ubuntu
[40592.321316] Hardware name: Raspberry Pi Zero 2 Rev 1.0 (DT)
[40592.321323] Call trace:
[40592.321327]  dump_backtrace+0x0/0x1f0
[40592.321345]  show_stack+0x24/0x30
[40592.321354]  dump_stack_lvl+0x8c/0xb8
[40592.321365]  dump_stack+0x18/0x34
[40592.321373]  ubsan_epilogue+0x10/0x54
[40592.321381]  __ubsan_handle_out_of_bounds+0x80/0x90
[40592.321393]  set_msg_custom_bitmap+0x1c8/0x200 [8852au]
[40592.322066]  dispr_send_msg+0x200/0x360 [8852au]
[40592.322547]  phl_disp_eng_send_msg+0x90/0x98 [8852au]
[40592.322998]  _phl_cmd_scan_req_acquired+0x108/0x164 [8852au]
[40592.323448]  register_cur_cmd_req+0x4c/0x7c [8852au]
[40592.323901]  dispr_process_token_req+0x64/0x108 [8852au]
[40592.324350]  _handle_token_op_info+0xac/0x1a8 [8852au]
[40592.324804]  token_op_hanler+0x54/0xb4 [8852au]
[40592.325270]  dispr_thread_loop_hdl+0x40/0x1f4 [8852au]
[40592.325733]  dispr_share_thread_loop_hdl+0x1c/0x28 [8852au]
[40592.326187]  share_thread_hdl+0x8c/0x144 [8852au]
[40592.326639]  kthread+0x12c/0x140
[40592.326654]  ret_from_fork+0x10/0x20
[40592.326777] ================================================================================
[40592.340853] ================================================================================
[40592.354871] UBSAN: array-index-out-of-bounds in /home/pi/rtl8852au/phl/phl_cmd_dispatcher.c:1304:7
[40592.369404] index 16 is out of range for type 'u8 [16]'
[40592.377396] CPU: 0 PID: 15833 Comm: disp_eng_share_ Tainted: G        WC OE     5.15.0-1005-raspi #5-Ubuntu
[40592.377410] Hardware name: Raspberry Pi Zero 2 Rev 1.0 (DT)
[40592.377417] Call trace:
[40592.377421]  dump_backtrace+0x0/0x1f0
[40592.377440]  show_stack+0x24/0x30
[40592.377448]  dump_stack_lvl+0x8c/0xb8
[40592.377460]  dump_stack+0x18/0x34
[40592.377467]  ubsan_epilogue+0x10/0x54
[40592.377475]  __ubsan_handle_out_of_bounds+0x80/0x90
[40592.377487]  get_module_by_id+0x158/0x198 [8852au]
[40592.378221]  dispr_send_msg+0x25c/0x360 [8852au]
[40592.378807]  phl_disp_eng_send_msg+0x90/0x98 [8852au]
[40592.379333]  _phl_cmd_scan_req_acquired+0x108/0x164 [8852au]
[40592.379859]  register_cur_cmd_req+0x4c/0x7c [8852au]
[40592.380382]  dispr_process_token_req+0x64/0x108 [8852au]
[40592.380899]  _handle_token_op_info+0xac/0x1a8 [8852au]
[40592.381422]  token_op_hanler+0x54/0xb4 [8852au]
[40592.381944]  dispr_thread_loop_hdl+0x40/0x1f4 [8852au]
[40592.382460]  dispr_share_thread_loop_hdl+0x1c/0x28 [8852au]
[40592.382971]  share_thread_hdl+0x8c/0x144 [8852au]
[40592.383483]  kthread+0x12c/0x140
[40592.383498]  ret_from_fork+0x10/0x20
[40592.383641] ================================================================================
[40598.643896] ================================================================================
[40598.660246] UBSAN: array-index-out-of-bounds in /home/pi/rtl8852au/phl/phl_msg_hub.c:136:6
[40598.674814] index 16 is out of range for type 'u8 [16]'
[40598.682925] CPU: 3 PID: 15834 Comm: msg_notify_thre Tainted: G        WC OE     5.15.0-1005-raspi #5-Ubuntu
[40598.682945] Hardware name: Raspberry Pi Zero 2 Rev 1.0 (DT)
[40598.682953] Call trace:
[40598.682957]  dump_backtrace+0x0/0x1f0
[40598.682976]  show_stack+0x24/0x30
[40598.682985]  dump_stack_lvl+0x8c/0xb8
[40598.682998]  dump_stack+0x18/0x34
[40598.683005]  ubsan_epilogue+0x10/0x54
[40598.683014]  __ubsan_handle_out_of_bounds+0x80/0x90
[40598.683026]  msg_forward+0xcc/0xf0 [8852au]
[40598.683681]  msg_thread_hdl+0x60/0x144 [8852au]
[40598.684229]  kthread+0x12c/0x140
[40598.684243]  ret_from_fork+0x10/0x20
[40598.684290] ================================================================================

Sometimes the adapter seems to work despite these errors. Other times, with no pattern I've discerned, establishing connections with nmcli times out, the entire device hangs and won't accept ssh session requests, the device will spontaneously stop working, or other odd problems. At one point the network interface name briefly became wlan1 though it's usually named wlx90de8025f143.
"journalctl -xe NM_CONNECTION=de57e244-3714-49e7-b209-f21ac57064f7 + NM_DEVICE=wlan1":

Jul 25 16:26:09 raspberrypi NetworkManager[694]: <warn>  [1658766369.8505] device (wlan1): Activation: (wifi) Hotspot network creation took too long, failing activation
Jul 25 16:26:09 raspberrypi NetworkManager[694]: <info>  [1658766369.8513] device (wlan1): state change: config -> failed (reason 'supplicant-timeout', sys-iface-state: 'managed')
Jul 25 16:26:09 raspberrypi NetworkManager[694]: <warn>  [1658766369.8556] device (wlan1): Activation: failed for connection 'axhotspot'
Jul 25 16:26:09 raspberrypi NetworkManager[694]: <info>  [1658766369.8584] device (wlan1): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
Jul 25 16:26:10 raspberrypi NetworkManager[694]: <info>  [1658766370.3785] device (wlan1): Activation: starting connection 'axhotspot' (de57e244-3714-49e7-b209-f21ac57064f7)
Jul 25 16:26:10 raspberrypi NetworkManager[694]: <info>  [1658766370.3796] device (wlan1): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Jul 25 16:26:10 raspberrypi NetworkManager[694]: <info>  [1658766370.3848] device (wlan1): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Jul 25 16:26:10 raspberrypi NetworkManager[694]: <info>  [1658766370.3865] device (wlan1): Activation: (wifi) access point 'axhotspot' has security, but secrets are required.
Jul 25 16:26:10 raspberrypi NetworkManager[694]: <info>  [1658766370.3868] device (wlan1): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
Jul 25 16:26:10 raspberrypi NetworkManager[694]: <info>  [1658766370.3927] device (wlan1): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
Jul 25 16:26:10 raspberrypi NetworkManager[694]: <info>  [1658766370.3969] device (wlan1): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Jul 25 16:26:10 raspberrypi NetworkManager[694]: <info>  [1658766370.3987] device (wlan1): Activation: (wifi) connection 'axhotspot' has security, and secrets exist.  No new secrets```

TP-Link AX1800 (2357:013f) setup issues on Kubuntu 20.04

Thank you for your work.

I'm trying to set up a TP-Link AX1800 device on my Kubuntu 20.04 (kernel: 5.11.0-44-generic).
Followed your instructions, also installed the DKIM module, but the device is still not showing as a network device in Network Manager.

uname -r output:

5.11.0-44-generic

lsmod | grep 8852au output:

8852au              13119488  0
cfg80211              888832  4 iwlmvm,8852au,iwlwifi,mac80211

lsusb output:

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 0c45:672d Microdia Integrated_Webcam_HD
Bus 003 Device 037: ID 2357:013f TP-Link 802.11ac WLAN Adapter
Bus 003 Device 006: ID 0bda:1100 Realtek Semiconductor Corp. Integrated_Webcam_HD
Bus 003 Device 004: ID 0bda:5418 Realtek Semiconductor Corp. 
Bus 003 Device 002: ID 0b00:5411 INGENICO USB2.1 Hub
Bus 003 Device 005: ID 8087:0026 Intel Corp. 
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 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

dmesg output:

[17339.857768] usb 3-3: new high-speed USB device number 36 using xhci_hcd
[17340.006273] usb 3-3: New USB device found, idVendor=0bda, idProduct=1a2b, bcdDevice= 0.00
[17340.006284] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[17340.006287] usb 3-3: Product: DISK
[17340.006290] usb 3-3: Manufacturer: Realtek
[17340.008920] usb-storage 3-3:1.0: USB Mass Storage device detected
[17340.009249] scsi host0: usb-storage 3-3:1.0
[17341.019285] scsi 0:0:0:0: Direct-Access     RTK      Driver Storage   2.00 PQ: 0 ANSI: 0 CCS
[17341.019874] sd 0:0:0:0: Attached scsi generic sg0 type 0
[17341.021017] sd 0:0:0:0: [sda] 32384 512-byte logical blocks: (16.6 MB/15.8 MiB)
[17341.021571] sd 0:0:0:0: [sda] Write Protect is on
[17341.021577] sd 0:0:0:0: [sda] Mode Sense: 03 00 80 00
[17341.021944] sd 0:0:0:0: [sda] No Caching mode page found
[17341.021955] sd 0:0:0:0: [sda] Assuming drive cache: write through
[17341.061110]  sda:
[17341.085896] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[17341.085911] sd 0:0:0:0: [sda] Sense not available.
[17341.085917] sd 0:0:0:0: [sda] 0 512-byte logical blocks: (0 B/0 B)
[17341.085994] sd 0:0:0:0: [sda] Write Protect is off
[17341.085996] sd 0:0:0:0: [sda] Mode Sense: 00 00 00 00
[17341.086003] sda: detected capacity change from 32384 to 0
[17341.086008] sd 0:0:0:0: [sda] Attached SCSI removable disk
[17341.175075] usb 3-3: USB disconnect, device number 36
[17341.949860] usb 3-3: new high-speed USB device number 37 using xhci_hcd
[17342.099234] usb 3-3: New USB device found, idVendor=2357, idProduct=013f, bcdDevice= 0.00
[17342.099246] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[17342.099250] usb 3-3: Product: 802.11ac WLAN Adapter
[17342.099253] usb 3-3: Manufacturer: Realtek
[17342.099256] usb 3-3: SerialNumber: 00e04c000001
[17342.104151] option 3-3:1.0: GSM modem (1-port) converter detected
[17342.104390] usb 3-3: GSM modem (1-port) converter now attached to ttyUSB0

sudo hwinfo --network --short output:

network interface:                                              
  wlp0s20f3            Ethernet network interface
  lo                   Loopback network interface

wlp0s20f3 is the built in wifi card.

Any help is really appreciated, and I'm happy to help with further logs.
Thank you.

getting a few errors on debian 11

when I hit make I get

/bin/sh: 1: /usr/src/linux-headers-5.10.0-20-common/scripts/pahole-flags.sh: not found
/bin/sh: 1: /usr/src/linux-headers-5.10.0-20-common/scripts/pahole-flags.sh: not found
/bin/sh: 1: /usr/src/linux-headers-5.10.0-20-common/scripts/pahole-flags.sh: not found


however it did install in the right directory

insmod /lib/modules/5.10.0-20-amd64/kernel/drivers/net/wireless/realtek/rtw89/8852au.ko 

I am trying to make it work with USB-AX55 Nano

not sure if it is supported or not

here is the source code for windows driver
https://www.asus.com/networking-iot-servers/adapters/all-series/usb-ax55-nano/helpdesk_download/?model2Name=USB-AX55-Nano

"array-index-out-of-bounds" Problem

Here is the output of dmesg. I am having 6 usb wireless adapter using 8852au drivers on a usb hub connected to my raspberry pi 4B, this warning appeared when i plugin my usb hub. Is it a problem which will casuse an unstable situation?

Thank you for any kind of support!

HW: rapberry pi 4B
Mem: 4g
Sys: Ubuntu 22.04 Server LTS
Uname: Linux ubuntu 5.15.0-1018-raspi #20-Ubuntu SMP PREEMPT Fri Nov 4 18:20:53 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

pi@ubuntu:~$ sudo dmesg |tail -50
[sudo] password for pi:
[ 29.001020] CPU: 3 PID: 1142 Comm: disp_eng_share_ Tainted: G C OE 5.15.0-1018-raspi #20-Ubuntu
[ 29.001037] Hardware name: Raspberry Pi 4 Model B Rev 1.2 (DT)
[ 29.001041] Call trace:
[ 29.001043] dump_backtrace+0x0/0x1f0
[ 29.001054] show_stack+0x24/0x30
[ 29.001058] dump_stack_lvl+0x8c/0xb8
[ 29.001065] dump_stack+0x18/0x34
[ 29.001068] ubsan_epilogue+0x10/0x54
[ 29.001072] __ubsan_handle_out_of_bounds+0x80/0x90
[ 29.001080] ================================================================================
[ 29.001080] get_module_by_id+0x158/0x198 [8852au]
[ 29.010847] dispr_send_msg+0x25c/0x360 [8852au]
[ 29.011079] phl_disp_eng_send_msg+0x90/0x98 [8852au]
[ 29.011249] _phl_cmd_scan_req_acquired+0x108/0x164 [8852au]
[ 29.011446] register_cur_cmd_req+0x4c/0x7c [8852au]
[ 29.011637] dispr_process_token_req+0x64/0x108 [8852au]
[ 29.011815] _handle_token_op_info+0xac/0x1a8 [8852au]
[ 29.011991] token_op_hanler+0x54/0xb4 [8852au]
[ 29.012155] dispr_thread_loop_hdl+0x40/0x1f4 [8852au]
[ 29.012318] dispr_share_thread_loop_hdl+0x1c/0x28 [8852au]
[ 29.012480] share_thread_hdl+0x8c/0x144 [8852au]
[ 29.012641] kthread+0x12c/0x140
[ 29.012649] ret_from_fork+0x10/0x20
[ 29.012803] ================================================================================
[ 31.711277] cam-dummy-reg: disabling
[ 34.801783] ================================================================================
[ 34.812337] UBSAN: array-index-out-of-bounds in /home/pi/drivers/rtl8852au-dwa-x1850/phl/phl_msg_hub.c:136:6
[ 34.823860] index 16 is out of range for type 'u8 [16]'
[ 34.830472] CPU: 1 PID: 1147 Comm: msg_notify_thre Tainted: G C OE 5.15.0-1018-raspi #20-Ubuntu
[ 34.830483] Hardware name: Raspberry Pi 4 Model B Rev 1.2 (DT)
[ 34.830488] Call trace:
[ 34.830490] dump_backtrace+0x0/0x1f0
[ 34.830501] show_stack+0x24/0x30
[ 34.830506] dump_stack_lvl+0x8c/0xb8
[ 34.830512] dump_stack+0x18/0x34
[ 34.830516] ubsan_epilogue+0x10/0x54
[ 34.830519] __ubsan_handle_out_of_bounds+0x80/0x90
[ 34.830527] msg_forward+0xcc/0xf0 [8852au]
[ 34.830782] msg_thread_hdl+0x60/0x144 [8852au]
[ 34.830947] kthread+0x12c/0x140
[ 34.830954] ret_from_fork+0x10/0x20
[ 34.830961] ================================================================================
[ 36.663819] IPv6: ADDRCONF(NETDEV_CHANGE): wlan5: link becomes ready
[ 36.749952] IPv6: ADDRCONF(NETDEV_CHANGE): wlan6: link becomes ready
[ 36.755908] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[ 36.770325] IPv6: ADDRCONF(NETDEV_CHANGE): wlan4: link becomes ready
[ 36.853535] IPv6: ADDRCONF(NETDEV_CHANGE): wlan3: link becomes ready
[ 45.845433] IPv6: ADDRCONF(NETDEV_CHANGE): wlan2: link becomes ready
[ 580.576867] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 580.576969] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

Recommend Projects

  • React photo React

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

  • Vue.js photo Vue.js

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

  • Typescript photo Typescript

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

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

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

Recommend Topics

  • javascript

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

  • web

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

  • server

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

  • Machine learning

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

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

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

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.