lwfinger/rtl8852au

Ax56 Unusual work

Opened this issue · 6 comments

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"

One clarification: This is NOT my driver. It is the Realtek vendor driver, which is made public with my GitHub repo.

Is anything logged in dmesg when this freeze happens?

I've tested it with different wifi's, 2.4 5, Phone wifi too, same result.
I created fresh linux install and driver instalatiion.
Sending full dmesg list, i`m not sure but last 3 messages were sent sent during speed test laggs.

[ 25.847597] usb 3-11: new high-speed USB device number 7 using xhci_hcd
[ 25.995972] usb 3-11: New USB device found, idVendor=0b05, idProduct=1997, bcdDevice= 0.00
[ 25.995974] usb 3-11: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 25.995976] usb 3-11: Product: 802.11ac WLAN Adapter
[ 25.995977] usb 3-11: Manufacturer: Realtek
[ 25.995977] usb 3-11: SerialNumber: 00e04c000001
[ 26.037774] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 26.038123] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 26.053264] 8852au: module verification failed: signature and/or required key missing - tainting kernel
[ 26.398509] usbcore: registered new interface driver rtl8852au
[ 26.405863] rtl8852au 3-11:1.0 wlx04421a5f7f68: renamed from wlan0
[ 37.942176] IPv6: ADDRCONF(NETDEV_CHANGE): wlx04421a5f7f68: link becomes ready
[ 45.200362] audit: type=1400 audit(1681754742.175:62): apparmor="DENIED" operation="capable" class="cap" profile="/snap/snapd/18357/usr/lib/snapd/snap-confine" pid=2347 comm="snap-confine" capability=12 capname="net_admin"
[ 45.200377] audit: type=1400 audit(1681754742.175:63): apparmor="DENIED" operation="capable" class="cap" profile="/snap/snapd/18357/usr/lib/snapd/snap-confine" pid=2347 comm="snap-confine" capability=38 capname="perfmon"
[ 45.312179] audit: type=1400 audit(1681754742.287:64): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.firefox" name="/var/lib/" pid=2375 comm="5" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 45.312657] audit: type=1400 audit(1681754742.287:65): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.firefox" name="/var/lib/" pid=2375 comm="5" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 45.474484] audit: type=1400 audit(1681754742.447:66): apparmor="DENIED" operation="symlink" class="file" profile="snap.firefox.firefox" name="/dev/char/195:255" pid=2439 comm="firefox" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000
[ 45.475031] audit: type=1400 audit(1681754742.447:67): apparmor="DENIED" operation="symlink" class="file" profile="snap.firefox.firefox" name="/dev/char/195:0" pid=2439 comm="firefox" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000
[ 45.475131] audit: type=1400 audit(1681754742.447:68): apparmor="DENIED" operation="symlink" class="file" profile="snap.firefox.firefox" name="/dev/char/195:0" pid=2439 comm="firefox" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000
[ 45.475235] audit: type=1400 audit(1681754742.447:69): apparmor="DENIED" operation="symlink" class="file" profile="snap.firefox.firefox" name="/dev/char/195:0" pid=2439 comm="firefox" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000
[ 45.475363] audit: type=1400 audit(1681754742.447:70): apparmor="DENIED" operation="symlink" class="file" profile="snap.firefox.firefox" name="/dev/char/195:0" pid=2439 comm="firefox" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000
[ 45.481642] audit: type=1400 audit(1681754742.455:71): apparmor="DENIED" operation="symlink" class="file" profile="snap.firefox.firefox" name="/dev/char/195:255" pid=2439 comm="firefox" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000
[ 90.783848] kauditd_printk_skb: 19 callbacks suppressed
[ 90.783851] audit: type=1107 audit(1681754787.960:91): pid=729 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/NetworkManager" interface="org.freedesktop.NetworkManager" member="GetDevices" mask="send" name="org.freedesktop.NetworkManager" pid=2347 label="snap.firefox.firefox" peer_pid=731 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
[ 129.476482] audit: type=1107 audit(1681754826.658:92): pid=729 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/NetworkManager" interface="org.freedesktop.NetworkManager" member="GetDevices" mask="send" name="org.freedesktop.NetworkManager" pid=2347 label="snap.firefox.firefox" peer_pid=731 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
[ 173.709927] audit: type=1107 audit(1681754870.888:93): pid=729 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/NetworkManager" interface="org.freedesktop.NetworkManager" member="GetDevices" mask="send" name="org.freedesktop.NetworkManager" pid=2347 label="snap.firefox.firefox" peer_pid=731 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'

I see nothing unusual. Everthing logged past [ 37.942176] comes from apparmor and does not affect wireless, although it might affect Internet access. You might try relaxing the apparmor settings.

I am currently testing with my 2001:3321 D-Link Corp. 802.11ac WLAN Adapter, and all is well. Transfers with a local LibreSpeed server shows 300 Mpbs or higher.

Could you please provide explanation of "relaxing apparmor settings"
i found techn proof of my issue
64 bytes from fra24s06-in-f14.1e100.net (142.250.186.110): icmp_seq=8 ttl=119 time=29.1 ms
64 bytes from fra24s06-in-f14.1e100.net (142.250.186.110): icmp_seq=9 ttl=119 time=28.8 ms
64 bytes from fra24s06-in-f14.1e100.net (142.250.186.110): icmp_seq=10 ttl=119 time=6101 ms
64 bytes from fra24s06-in-f14.1e100.net (142.250.186.110): icmp_seq=11 ttl=119 time=5099 ms
64 bytes from fra24s06-in-f14.1e100.net (142.250.186.110): icmp_seq=12 ttl=119 time=4075 ms
64 bytes from fra24s06-in-f14.1e100.net (142.250.186.110): icmp_seq=13 ttl=119 time=3051 ms
64 bytes from fra24s06-in-f14.1e100.net (142.250.186.110): icmp_seq=14 ttl=119 time=2027 ms
64 bytes from fra24s06-in-f14.1e100.net (142.250.186.110): icmp_seq=15 ttl=119 time=1003 ms
ping in terminal. Windows driver for adapter works perfectly. TO be honest, while trying lots of drivers i was found one who was working fine, but i missed him, after reinstalling linux
Maybe i can install something else compatible? I have also TP-link t9uh, unf, i did not find driver too(

OK i found a solution, somehow it works better on usb2, sorry for disturbing you.
How can i check usb drivers maybe or so on?

It works perfectly on a USB3 port on my computer. I have never tried it on USB2.
Are you sure the port is OK?

FYI, the driver set at https://Github.com/lwfinger/rtw89 should be getting the drivers for rtw8852au, rtw8852bu, and rtw8852cu in the near future. This code is distinct fron the vendor driver, even htough it is also written by Realtek.