Code Monkey home page Code Monkey logo

rtl8812au-5.9.3.2's People

Contributors

gordboy 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rtl8812au-5.9.3.2's Issues

DKMS update failed

I'm running Arch Linux and after an update my Wi-Fi dongle that uses the rtl8812au driver (installed from the AUR) doesn't work anymore, so I tried to update all of my kernel modules with sudo dkms autoinstall and it didn't work. You can read the log file here.

doesn't compile on kernel 5.12

Hi,

Again an error on kernel-update, to 5.12. Below the error-report.

DKMS make.log for rtl8812au-5.9.3.2 for kernel 5.12.0 (x86_64)
Mon 26 Apr 2021 14:28:54 CEST
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.12.0/build M=/var/lib/dkms/rtl8812au/5.9.3.2/build modules
make[1]: Entering directory '/usr/src/linux-headers-5.12.0'
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_cmd.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_security.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_debug.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_io.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_ioctl_query.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_ioctl_set.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_ieee80211.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_mlme.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_mlme_ext.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_mi.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_wlan_util.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_vht.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_pwrctrl.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_rf.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_chplan.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/monitor/rtw_radiotap.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_recv.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_sta_mgt.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_ap.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/mesh/rtw_mesh.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/mesh/rtw_mesh_pathtbl.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/mesh/rtw_mesh_hwmp.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_xmit.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_p2p.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_rson.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_tdls.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_br_ext.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_iol.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_sreset.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_btcoex_wifionly.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_btcoex.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_beamforming.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_odm.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_rm.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_rm_fsm.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_rm_util.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/efuse/rtw_efuse.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/crypto/aes-internal.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/crypto/aes-internal-enc.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/crypto/aes-gcm.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/crypto/aes-ccm.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/crypto/aes-omac1.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/crypto/ccmp.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/crypto/gcmp.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/crypto/aes-siv.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/crypto/aes-ctr.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/crypto/sha256-internal.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/crypto/sha256.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/crypto/sha256-prf.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/crypto/rtw_crypto_wrap.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/core/rtw_swcrypto.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/os_dep/osdep_service.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/os_dep/linux/os_intfs.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/os_dep/linux/usb_intf.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/os_dep/linux/usb_ops_linux.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/os_dep/linux/ioctl_linux.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/os_dep/linux/xmit_linux.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/os_dep/linux/mlme_linux.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/os_dep/linux/recv_linux.o
CC [M] /var/lib/dkms/rtl8812au/5.9.3.2/build/os_dep/linux/ioctl_cfg80211.o
/var/lib/dkms/rtl8812au/5.9.3.2/build/os_dep/linux/recv_linux.c: In function ‘napi_recv’:
/var/lib/dkms/rtl8812au/5.9.3.2/build/os_dep/linux/recv_linux.c:358:55: error: ‘GRO_DROP’ undeclared (first use in this function)
358 | if (rtw_napi_gro_receive(&padapter->napi, pskb) != GRO_DROP)
| ^~~~~~~~
/var/lib/dkms/rtl8812au/5.9.3.2/build/os_dep/linux/recv_linux.c:358:55: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [scripts/Makefile.build:271: /var/lib/dkms/rtl8812au/5.9.3.2/build/os_dep/linux/recv_linux.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1851: /var/lib/dkms/rtl8812au/5.9.3.2/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.12.0'
make: *** [Makefile:2362: modules] Error 2

Tia for any suggestions on this.

signature or required key missing

I appreciate the work you guys put into this software. Unfortunately, I have an issue with this driver. I am running the newest ubuntu
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
and the installation process runs through
> sudo make install
install -p -m 644 8812au.ko /lib/modules/5.8.0-38-generic/kernel/drivers/net/wireless/
/sbin/depmod -a 5.8.0-38-generic
I an also sudo modprobe 8812au but I read in kern.log

Jan 16 19:13:22 linux kernel: [ 1576.456187] 8812au: loading out-of-tree module taints kernel.
Jan 16 19:13:22 linux kernel: [ 1576.456701] 8812au: module verification failed: signature and/or required key missing - tainting kernel
Jan 16 19:13:22 linux kernel: [ 1576.460551] usbcore: registered new interface driver rtl8812au
Also, if I use iwconfig no wireless shows. I am using an DWA 172,
lsusb Bus 002 Device 003: ID 2001:3318 D-Link Corp.

Do you happen to have an idea what is wrong here?

cannot compile on solus os with the latest kernel

this is the error message i get.

CC [M] /home/username/Drivers/rtl8812au-5.9.3.2/os_dep/linux/ioctl_cfg80211.o /home/username/Drivers/rtl8812au-5.9.3.2/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’: /home/username/Drivers/rtl8812au-5.9.3.2/os_dep/linux/ioctl_cfg80211.c:459:3: error: too few arguments to function ‘cfg80211_ch_switch_started_notify’ 459 | cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/username/Drivers/rtl8812au-5.9.3.2/include/osdep_service_linux.h:98, from /home/username/Drivers/rtl8812au-5.9.3.2/include/osdep_service.h:53, from /home/username/Drivers/rtl8812au-5.9.3.2/include/drv_types.h:27, from /home/username/Drivers/rtl8812au-5.9.3.2/os_dep/linux/ioctl_cfg80211.c:17: ./include/net/cfg80211.h:7585:6: note: declared here 7585 | void cfg80211_ch_switch_started_notify(struct net_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:279: /home/username/Drivers/rtl8812au-5.9.3.2/os_dep/linux/ioctl_cfg80211.o] Error 1 make[1]: *** [Makefile:1820: /home/username/Drivers/rtl8812au-5.9.3.2] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.11.16-178.current' make: *** [Makefile:2362: modules] Error 2 install -p -m 644 8812au.ko /lib/modules/5.11.16-178.current/kernel/drivers/net/wireless/ install: cannot stat '8812au.ko': No such file or directory make: *** [Makefile:2368: install] Error 1 modprobe: WARNING: Module 8812au not found in directory /lib/modules/5.11.16-178.current

Install error

image

I pulled this repo after spending countless hours trying to get my wifi adapter to work. I still get this same error when trying to run install:
make[1]: *** /lib/modules/5.10.0-kali3-amd64/build: No such file or directory. Stop.
make: *** [Makefile:2362: modules] Error 2

^ I know I must be missing something real simple, any help would be really appreciated.
Also here's the output of running "dkms status"

image

Cannot bring device up -- Operation not permitted

Hi,

I have an issue with specific device 7392:a812 Edimax Technology Co., Ltd Edimax AC600 USB. Firstly noticed on my router which is running Gentoo linux and there I have already running for two months the 0bda:8812 Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac 2T2R DB WLAN Adapter. I plugged the Edimax one and it refused to be brought up. So I plugged in my debian laptop cloned the repo fresh and installed the module with same results. Is there anything else which I would be able to try to find the issue?

I have attached
rtl8812au_edimax_issue_01.txt
detailed info. Basically it boils down to this

#ip link set up dev wlx00e04c1cd536
RTNETLINK answers: Operation not permitted

Basic info for Debian laptop:

root@host:/home/user/tarballs/rtl8812au-5.9.3.2# uname -a
Linux host 5.10.0-3-amd64 #1 SMP Debian 5.10.13-1 (2021-02-06) x86_64 GNU/Linux
root@host:/home/user/tarballs/rtl8812au-5.9.3.2# cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux bullseye/sid"
NAME="Debian GNU/Linux"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Basic info for Gentoo router/laptop:

$ uname -a
Linux kvm 5.4.80-gentoo-r1-x86_64 #1 SMP Sun Jan 10 17:33:19 CET 2021 x86_64 Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz GenuineIntel GNU/Linux

Connection issues!

System:
OS: Pop! OS 20.10
KERNEL: 5.11
DE: Gnome 3.38

Wireless adapter: https://www.amazon.com/dp/B01CCMUN8C this exact model plugged into USB 2.0 (I believe) port (I can double-check if this is relevant.)

Install:
Followed instructions in readme to build via dkms.

Wireless provider:
Comcast, default settings, running on 5GHZ channel.

Symptoms:
Turn on wifi adapter, available networks come up ok, attempting to connect to the network takes forever, and it starts off with a little question mark in the wifi icon as it can't reach the internet or something, throughout connection I can see in the wifi list it goes from full to nothing and back again at random which leads to some bad experiences, but while it is connected I'm able to do everything I normally would be able to and one time I managed to get a speed test in and it clocked at around 100mbp/s so no issues there except for the very intermittent connection, it was a fluke that I got that in. Shortly thereafter it gives a system notification that activation of wireless connection failed and kicks me off, generally the first time I'm on wifi for a pretty decent time until it kicks me off and then it gets faster and faster after that if I'm able to reconnect in the first place. If I'm reading the wifi logs correctly it's giving error code 6.

Other os:
On the same exact machine on Windows, this adapter performs beautifully.

Also if it helps:
This is the lsusb output for it: Bus 001 Device 003: ID 0bda:0811 Realtek Semiconductor Corp. Realtek 8812AU/8821AU 802.11ac WLAN Adapter [USB Wireless Dual-Band Adapter 2.4/5Ghz]
However the realtek chipset appears different in windows, not sure if perhaps this is the issue?
I also have all power management settings on the wifi adapter disabled.

Update:
I've actually had a pretty good run recently. Had a little bit of trouble getting off the ground with some weird New Access Point/Cell address:Not-Associated messages and at one point a Set ESSID:"+\x8C\xB6\x87\x1Bd\xF5a\xAB\x1C\xE7\x90[\x90\x1E\xE5\x02\xA8\x11wM\xCD\xE1;\x87`t\x8Av\xDBt\xA1" came up. Finally it latched on and was strong, reported 150mb/s with weird pauses where internet my music would pause and I wouldn't be able to load any new websites or random super slow loading despite it still showing full bars where it normally dropped off. Only output from it during this time was Scan request completed (I had wifi settings open along with the list of visible networks which was triggering constant rescans) Eventually it did fail, not sure if this had anything to do with it but the moment I went to a different tab than the wifi tab in settings it failed with the familiar wireless activation failed message. This was what was logged:

18:46:47.737600   enxe84e066ccaa6 New Access Point/Cell address:Not-Associated  
18:46:47.737628   enxe84e066ccaa6 Set Mode:Managed  
18:46:47.758403   enxe84e066ccaa6 Set Frequency:2.437 GHz (Channel 6)  
18:46:47.758571   enxe84e066ccaa6 Set ESSID:"[Redacted]"  
18:46:47.856568   enxe84e066ccaa6 Scan request completed  
18:46:47.857119   enxe84e066ccaa6 Set Mode:Managed  
18:46:47.867487   enxe84e066ccaa6 Set Frequency:5.785 GHz  
18:46:47.867546   enxe84e066ccaa6 Set ESSID:"[Redacted]"  
18:46:51.836776   enxe84e066ccaa6 New Access Point/Cell address:Not-Associated  

(Logs were achieved via: iwevent)

wifi.scan-rand-mac-address=no

Is this still an issue? I've been using Linux since long before WiFi existed and have never run across a problem that was solved by this so any background would be appreciated. I've googled it but as best I can make out this was a temp issue caused by a specific bug that has long since been fixed and should not be a problem in distros released this year. Maybe I am wrong.

5GHz Channels 52-140

Hi gordboy,

I just installed your driver on Ubuntu 20.04 and it works fine. Thanks a lot!

But, my router has DFS - Dynamic Frequency Search.
Therefore it uses the 5 GHz channels above 48 (52-140).
The rtl8812au is able, too, to use this channels.
Are you planning to add them?

PS: Sorry, I'm not a native english speaker.

non-UNIX line endings

gordboy,

Would you mind sharing how you search the code for non-Unix line endings?

Kernel 5.10 breaks build

Currently testing kernel 5.10-rc5 and it breaks the build with errors relating to get_fs, set_fs and friends in

os_dep/osdep_service.c
os_dep/linux/os_intfs.c
core/rtw_wlan_util.c
core/rtw_btcoex.c

Turns out this is a known thing in KernelLand and they wanted to get rid of it for ages, and finally actually did it, for some architectures at least.

http://lkml.iu.edu/hypermail/linux/kernel/2010.3/00552.html
https://lwn.net/Articles/832121/
https://lwn.net/Articles/722267/

In the Realtek code, the main use goes something like this -

oldfs = get_fs();      // Save old boundary
set_fs(KERNEL_DS);     // Set new boundary
STUFF;                 // Some sort of read, copy or move
set_fs(oldfs);         // Restore old boundary

I will look at this over the next while and try to figure out a clean, minimal fix.

Signal strength issue

Hi, gordboy.

Thanks a lot for your project.

I have a strange issue with my Thinkpad X200:
the signal strength of my USB rtl8812au is several dbs weaker than the internal Intel Corporation PRO/Wireless 5100 AGN card.

II am using LinSSID to check the signal strength. As you may see, the strength went down after about 55 seconds, while I changed the interface from internal WiFi card to USB card.

rtl8812au-5 9 3 2

My environment list below:

  • dkms status
    rtl8812au, 5.9.3.2, 5.8.0-59-generic, x86_64: built

  • kernel
    Linux Home-Ubuntu 5.8.0-59-generic #66~20.04.1-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux

Thanks again

Some trouble getting the driver running on 5.4.0-56-generic #62-Ubuntu SMP

I don't get the driver up and running, any help would be nice.

modinfo

filename:       /lib/modules/5.4.0-56-generic/updates/dkms/8812au.ko
version:        v5.9.3.2_37279.20201012
author:         Realtek Semiconductor Corp.
description:    Realtek Wireless Lan Driver

dmesg

[Do Dez  3 14:52:54 2020] usb 2-1.8: USB disconnect, device number 12
[Do Dez  3 14:52:56 2020] usb 5-1: new high-speed USB device number 2 using xhci_hcd
[Do Dez  3 14:52:56 2020] usb 5-1: New USB device found, idVendor=2357, idProduct=0101, bcdDevice= 0.00
[Do Dez  3 14:52:56 2020] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[Do Dez  3 14:52:56 2020] usb 5-1: Product: 802.11n NIC
[Do Dez  3 14:52:56 2020] usb 5-1: Manufacturer: Realtek
[Do Dez  3 14:52:56 2020] usb 5-1: SerialNumber: 123456
[Do Dez  3 14:52:57 2020] ------------[ cut here ]------------
[Do Dez  3 14:52:57 2020] WARNING: CPU: 3 PID: 23003 at net/wireless/core.c:867 wiphy_register+0x6d1/0x930 [cfg80211]
[Do Dez  3 14:52:57 2020] Modules linked in: rtl8812au(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) ccm binfmt_misc snd_hda_codec_hdmi intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp mei_hdcp kvm_intel kvm rtl8xxxu snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio rtl8192cu snd_hda_intel rtl_usb rtl8192c_common snd_intel_dspcfg snd_usb_audio rtlwifi snd_hda_codec snd_usbmidi_lib uvcvideo snd_hda_core mac80211 videobuf2_vmalloc snd_hwdep videobuf2_memops videobuf2_v4l2 snd_seq_midi snd_seq_midi_event joydev videobuf2_common snd_rawmidi videodev libarc4 rapl snd_pcm input_leds mc snd_seq snd_seq_device intel_cstate mxm_wmi snd_timer snd mei_me mei soundcore mac_hid nvidia_uvm(POE) sch_fq_codel nct6775 hwmon_vid coretemp cfg80211 parport_pc ppdev lp parport ip_tables x_tables autofs4 pata_marvell hid_generic usbhid hid nvidia_drm(POE) nvidia_modeset(POE) crct10dif_pclmul crc32_pclmul ghash_clmulni_intel i915 tg3 nvidia(POE) aesni_intel crypto_simd video i2c_algo_bit cryptd
[Do Dez  3 14:52:57 2020]  glue_helper drm_kms_helper syscopyarea sysfillrect firewire_ohci sysimgblt i2c_i801 fb_sys_fops pata_acpi lpc_ich ipmi_devintf firewire_core ipmi_msghandler drm crc_itu_t ahci libahci floppy wmi [last unloaded: rtl8812au]
[Do Dez  3 14:52:57 2020] CPU: 3 PID: 23003 Comm: kworker/3:1 Tainted: P        W  OE     5.4.0-56-generic #62-Ubuntu
[Do Dez  3 14:52:57 2020] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./Z68 Extreme4, BIOS P1.70 08/25/2011
[Do Dez  3 14:52:57 2020] Workqueue: usb_hub_wq hub_event
[Do Dez  3 14:52:57 2020] RIP: 0010:wiphy_register+0x6d1/0x930 [cfg80211]
[Do Dez  3 14:52:57 2020] Code: ff e9 78 fa ff ff 0f 0b b8 ea ff ff ff e9 6c fa ff ff 0f 0b b8 ea ff ff ff e9 60 fa ff ff 0f 0b b8 ea ff ff ff e9 54 fa ff ff <0f> 0b b8 ea ff ff ff e9 48 fa ff ff 0f 0b b8 ea ff ff ff e9 3c fa
[Do Dez  3 14:52:57 2020] RSP: 0018:ffffbd96432f7730 EFLAGS: 00010246
[Do Dez  3 14:52:57 2020] RAX: ffffffffc22c27f0 RBX: ffff9e9e388e8b00 RCX: ffffffffc22c27e0
[Do Dez  3 14:52:57 2020] RDX: ffffffffc22c2880 RSI: 0000000000000001 RDI: 000000000000001e
[Do Dez  3 14:52:57 2020] RBP: ffffbd96432f77a8 R08: 0000000000000004 R09: 0000000000000003
[Do Dez  3 14:52:57 2020] R10: 0000000000000000 R11: ffffbd97402d9fc5 R12: ffff9e9e388e8b00
[Do Dez  3 14:52:57 2020] R13: ffff9e9f30d38000 R14: ffff9e9e80630030 R15: ffff9e9e80630030
[Do Dez  3 14:52:57 2020] FS:  0000000000000000(0000) GS:ffff9e9f378c0000(0000) knlGS:0000000000000000
[Do Dez  3 14:52:57 2020] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[Do Dez  3 14:52:57 2020] CR2: 000025e408777000 CR3: 00000001bce0a002 CR4: 00000000000606e0
[Do Dez  3 14:52:57 2020] Call Trace:
[Do Dez  3 14:52:57 2020]  ? _rtw_malloc+0x2d/0x2f [rtl8812au]
[Do Dez  3 14:52:57 2020]  ? _rtw_memcpy+0x10/0x12 [rtl8812au]
[Do Dez  3 14:52:57 2020]  ? rtw_5g_rates_init+0x1a/0x1c [rtl8812au]
[Do Dez  3 14:52:57 2020]  ? rtw_spt_band_alloc+0xb0/0xb2 [rtl8812au]
[Do Dez  3 14:52:57 2020]  rtw_wdev_alloc+0x107/0x2ad [rtl8812au]
[Do Dez  3 14:52:57 2020]  rtw_usb_if1_init+0x138/0x205 [rtl8812au]
[Do Dez  3 14:52:57 2020]  rtw_drv_init+0x23a/0x2c5 [rtl8812au]
[Do Dez  3 14:52:57 2020]  usb_probe_interface+0xed/0x290
[Do Dez  3 14:52:57 2020]  really_probe+0x2b0/0x3d0
[Do Dez  3 14:52:57 2020]  driver_probe_device+0xbc/0x100
[Do Dez  3 14:52:57 2020]  __device_attach_driver+0x71/0xd0
[Do Dez  3 14:52:57 2020]  ? driver_allows_async_probing+0x50/0x50
[Do Dez  3 14:52:57 2020]  bus_for_each_drv+0x84/0xd0
[Do Dez  3 14:52:57 2020]  __device_attach+0xed/0x170
[Do Dez  3 14:52:57 2020]  device_initial_probe+0x13/0x20
[Do Dez  3 14:52:57 2020]  bus_probe_device+0x8f/0xa0
[Do Dez  3 14:52:57 2020]  device_add+0x3c7/0x6b0
[Do Dez  3 14:52:57 2020]  ? _cond_resched+0x19/0x30
[Do Dez  3 14:52:57 2020]  usb_set_configuration+0x433/0x7d0
[Do Dez  3 14:52:57 2020]  ? kernfs_activate+0x77/0x80
[Do Dez  3 14:52:57 2020]  generic_probe+0x43/0x60
[Do Dez  3 14:52:57 2020]  usb_probe_device+0x31/0x70
[Do Dez  3 14:52:57 2020]  really_probe+0x2b0/0x3d0
[Do Dez  3 14:52:57 2020]  driver_probe_device+0xbc/0x100
[Do Dez  3 14:52:57 2020]  __device_attach_driver+0x71/0xd0
[Do Dez  3 14:52:57 2020]  ? driver_allows_async_probing+0x50/0x50
[Do Dez  3 14:52:57 2020]  bus_for_each_drv+0x84/0xd0
[Do Dez  3 14:52:57 2020]  __device_attach+0xed/0x170
[Do Dez  3 14:52:57 2020]  device_initial_probe+0x13/0x20
[Do Dez  3 14:52:57 2020]  bus_probe_device+0x8f/0xa0
[Do Dez  3 14:52:57 2020]  device_add+0x3c7/0x6b0
[Do Dez  3 14:52:57 2020]  ? mix_pool_bytes+0x80/0xb0
[Do Dez  3 14:52:57 2020]  usb_new_device.cold+0x12d/0x304
[Do Dez  3 14:52:57 2020]  hub_port_connect+0x500/0x850
[Do Dez  3 14:52:57 2020]  port_event+0x502/0x780
[Do Dez  3 14:52:57 2020]  hub_event+0x152/0x390
[Do Dez  3 14:52:57 2020]  process_one_work+0x1eb/0x3b0
[Do Dez  3 14:52:57 2020]  worker_thread+0x4d/0x400
[Do Dez  3 14:52:57 2020]  kthread+0x104/0x140
[Do Dez  3 14:52:57 2020]  ? process_one_work+0x3b0/0x3b0
[Do Dez  3 14:52:57 2020]  ? kthread_park+0x90/0x90
[Do Dez  3 14:52:57 2020]  ret_from_fork+0x35/0x40
[Do Dez  3 14:52:57 2020] ---[ end trace 944bf1b9a151ac96 ]---
[Do Dez  3 14:52:57 2020] usb 5-1: reset high-speed USB device number 2 using xhci_hcd
[Do Dez  3 14:53:03 2020] usb 5-1: device descriptor read/64, error -110
[Do Dez  3 14:53:18 2020] usb 5-1: device descriptor read/64, error -110
[Do Dez  3 14:53:18 2020] usb 5-1: reset high-speed USB device number 2 using xhci_hcd
[Do Dez  3 14:53:24 2020] usb 5-1: device descriptor read/64, error -110

Origin of the driver

Hi @gordboy,

It is not an issue ticket but rather a question:
Where did you get the source code of the driver?
On the realtek website I only found a quite outdated windows driver.

RTL8812AE works too?

Hello, I have RTL8812AE instead of 8812AU. The driver works on my pci adapter with pop os 20.04 and 20.10? thanks
Have a nice day!

compiling on cubietruck

Hi,

im using the switch CONFIG_PLATFORM_ARM_RPI = y , and i fail compiling by:

CC [M] /root/rtl8812au-5.9.3.2/platform/platform_ops.o
CC [M] /root/rtl8812au-5.9.3.2/core/rtw_mp.o
LD [M] /root/rtl8812au-5.9.3.2/8812au.o
ld: cannot find /root/rtl8812au-5.9.3.2/core/rtw_cmd.o: No such file or directory
make[2]: *** [scripts/Makefile.build:430: /root/rtl8812au-5.9.3.2/8812au.o] Error 1
make[1]: *** [Makefile:1803: /root/rtl8812au-5.9.3.2] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.10.21-sunxi'
make: *** [Makefile:2362: modules] Error 2
root@cubietruck:~/rtl8812au-5.9.3.2

a subsequent make gives this:

root@cubietruck: /rtl8812au-5.9.3.2 make
make ARCH=arm CROSS_COMPILE= -C /lib/modules/5.10.21-sunxi/build M=/root/rtl8812au-5.9.3.2 modules
make[1]: Entering directory '/usr/src/linux-headers-5.10.21-sunxi'
CC [M] /root/rtl8812au-5.9.3.2/core/rtw_cmd.o
LD [M] /root/rtl8812au-5.9.3.2/8812au.o
MODPOST /root/rtl8812au-5.9.3.2/Module.symvers
make[3]: *** No rule to make target '/root/rtl8812au-5.9.3.2/8812au.mod.o', needed by '/root/rtl8812au-5.9.3.2/8812au.ko'. Stop.
make[2]: *** [scripts/Makefile.modpost:117: __modpost] Error 2
make[1]: *** [Makefile:1707: modules] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.10.21-sunxi'
make: *** [Makefile:2362: modules] Error 2
root@cubietruck:~/rtl8812au-5.9.3.2#

can you take a look ? on my x86 Odroid H2 your module compiles fine, but the cubietruck fails.

regards,
Simon

Connection drops after a while

There are no errors in dmesg, but the connection will stop working. pinging the gateway will show host not reachable but otherwise the interface seems up. restarting systemd-networkd or iwd does not appear to be able to fix the issue (the interface will just keep trying to go UP and fail). Unplug and re-plug the adapter fixes the issue.

kernel is 5.13.9-arch1-1 using the AUR git package. adapter is as follows
Bus 005 Device 036: ID 0bda:8812 Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac 2T2R DB WLAN Adapter

nl80211: kernel reports: Authentication algorithm number required

Unfortunately this driver stopped working properly under 5.12

This is the message I am getting

Jul 29 22:42:41  wpa_supplicant[1073671]: wlx24050f9a6fb4: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='xxxx' freq=5785 MHz)       
Jul 29 22:42:41  wpa_supplicant[1073671]: nl80211: kernel reports: Authentication algorithm number required                                 
Jul 29 22:42:41  wpa_supplicant[1073671]: xxxxxxx: CTRL-EVENT-STARTED-CHANNEL-SWITCH freq=5785 ht_enabled=1 ch_offset=1 ch_width=40 
MHz cf1=5795 cf2=0                                                                                                                                 
Jul 29 22:42:41  NetworkManager[1067257]: <info>  [1627616561.9606] device (xxxxx): supplicant interface state: scanning -> associating                                                                                                                                            

Not working on Linux 5.10.4-arch2-1 and 5.4.86-1-lts on Endeavour OS

Hi,
I have an Edimax Wi-Fi AC600 Adapter (7392:b611), which I could use with rtl8812au-5.4.6.2 up until Linux 5.10.3 on Endeavour OS. (I only needed to replace a811 with b611 in usb_intf.c) By now the kernel was upgraded to said 5.10.4-arch2-1, but still the wifi adapter is not working.

For some reason it stopped working at this point and even upgrading to rtl8812au-5.9.3.2 didn't help. At the same time, the LTS kernel of Endeavour OS was updated to 5.4.86-1-lts and here both versions don't work anymore as well.

How could I narrrow down the problem? I browsed through journalctl but didn't find anything that I would consider connected to this problem (which doesn't mean much)
Could you point me in the right direction?

Arch Linux Linux Kernel 5.15.1 Driver not Compiling

[wolf@wolf-arch rtl8812au-5.9.3.2-main]$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.15.1-arch1-2/build M=/home/wolf/rtl8812au-5.9.3.2-main modules
make[1]: Entering directory '/usr/lib/modules/5.15.1-arch1-2/build'
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/rtw_cmd.o
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/rtw_security.o
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/rtw_debug.o
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/rtw_io.o
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/rtw_ioctl_query.o
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/rtw_ioctl_set.o
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/rtw_ieee80211.o
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/rtw_mlme.o
/home/wolf/rtl8812au-5.9.3.2-main/core/rtw_mlme.c: In function 'rtw_drv_scan_by_self':
/home/wolf/rtl8812au-5.9.3.2-main/core/rtw_mlme.c:3157:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
3157 | else
| ^~~~
/home/wolf/rtl8812au-5.9.3.2-main/core/rtw_mlme.c:3160:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
3160 | goto exit;
| ^~~~
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/rtw_mlme_ext.o
/home/wolf/rtl8812au-5.9.3.2-main/core/rtw_mlme_ext.c: In function 'rtw_txpwr_init_regd':
/home/wolf/rtl8812au-5.9.3.2-main/core/rtw_mlme_ext.c:267:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
267 | if (rfctl->regd_name)
| ^
/home/wolf/rtl8812au-5.9.3.2-main/core/rtw_mlme_ext.c:270:9: note: here
270 | default:
| ^~~~~~~
/home/wolf/rtl8812au-5.9.3.2-main/core/rtw_mlme_ext.c: In function 'mgt_dispatcher':
/home/wolf/rtl8812au-5.9.3.2-main/core/rtw_mlme_ext.c:1379:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
1379 | ptable->func = &OnAuthClient;
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/home/wolf/rtl8812au-5.9.3.2-main/core/rtw_mlme_ext.c:1381:9: note: here
1381 | case WIFI_ASSOCREQ:
| ^~~~
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/rtw_mi.o
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/rtw_wlan_util.o
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/rtw_vht.o
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/rtw_pwrctrl.o
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/rtw_rf.o
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/rtw_chplan.o
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/monitor/rtw_radiotap.o
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/rtw_recv.o
/home/wolf/rtl8812au-5.9.3.2-main/core/rtw_recv.c: In function 'validate_mp_recv_frame':
/home/wolf/rtl8812au-5.9.3.2-main/core/rtw_recv.c:3598:25: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
3598 | for (i = 0; i < precv_frame->u.hdr.len; i = i + 8)
| ^~~
In file included from /home/wolf/rtl8812au-5.9.3.2-main/include/drv_types.h:60,
from /home/wolf/rtl8812au-5.9.3.2-main/core/rtw_recv.c:17:
/home/wolf/rtl8812au-5.9.3.2-main/include/rtw_debug.h:52:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
52 | #define RTW_INFO(x,...) do {} while (0)
| ^~
/home/wolf/rtl8812au-5.9.3.2-main/core/rtw_recv.c:3601:33: note: in expansion of macro 'RTW_INFO'
3601 | RTW_INFO("#############################\n");
| ^~~~~~~~
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/rtw_sta_mgt.o
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/rtw_ap.o
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/mesh/rtw_mesh.o
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/mesh/rtw_mesh_pathtbl.o
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/mesh/rtw_mesh_hwmp.o
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/rtw_xmit.o
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/rtw_p2p.o
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/rtw_rson.o
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/rtw_tdls.o
CC [M] /home/wolf/rtl8812au-5.9.3.2-main/core/rtw_br_ext.o
/home/wolf/rtl8812au-5.9.3.2-main/core/rtw_br_ext.c:20:18: fatal error: net/ipx.h: No such file or directory
20 | #include <net/ipx.h>
| ^~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:277: /home/wolf/rtl8812au-5.9.3.2-main/core/rtw_br_ext.o] Error 1
make[1]: *** [Makefile:1868: /home/wolf/rtl8812au-5.9.3.2-main] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.15.1-arch1-2/build'
make: *** [Makefile:2362: modules] Error 2
[wolf@wolf-arch rtl8812au-5.9.3.2-main]$ `

Unable to build in Ubuntu 18.04 with Kernel 5.11.5

Hi, I am getting this error, while trying to build the driver:-

My kernel version is : 5.11.5 , kernel headers are installed.

ld:scripts/module.lds:6: ignoring invalid character `#' in expression
ld:scripts/module.lds:6: syntax error
scripts/Makefile.modfinal:58: recipe for target '/home/octo-ws/rtl8812au-5.9.3.2/8812au.ko' failed
make[3]: *** [/home/octo-ws/rtl8812au-5.9.3.2/8812au.ko] Error 1
scripts/Makefile.modpost:117: recipe for target '__modpost' failed
make[2]: *** [__modpost] Error 2
Makefile:1710: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.11.5-051105-generic'
Makefile:2362: recipe for target 'modules' failed
make: *** [modules] Error 2

Ubuntu 20.04.3 Linux Kernel 5.15 Driver not Compiling

Hi today i upgraded my System with 5.15 Kernel but make trows out errors.
Here is the Log:

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.15.0-generic/build M=/home/optivan/.rtl modules
make[1]: Verzeichnis „/usr/src/linux-headers-5.15.0-generic“ wird betreten
CC [M] /home/moneytrail/.rtl/core/rtw_cmd.o
CC [M] /home/optivan/.rtl/core/rtw_security.o
CC [M] /home/optivan/.rtl/core/rtw_debug.o
CC [M] /home/optivan/.rtl/core/rtw_io.o
CC [M] /home/optivan/.rtl/core/rtw_ioctl_query.o
CC [M] /home/optivan/.rtl/core/rtw_ioctl_set.o
CC [M] /home/optivan/.rtl/core/rtw_ieee80211.o
CC [M] /home/optivan/.rtl/core/rtw_mlme.o
CC [M] /home/optivan/.rtl/core/rtw_mlme_ext.o
CC [M] /home/optivan/.rtl/core/rtw_mi.o
CC [M] /home/optivan/.rtl/core/rtw_wlan_util.o
CC [M] /home/optivan/.rtl/core/rtw_vht.o
CC [M] /home/optivan/.rtl/core/rtw_pwrctrl.o
CC [M] /home/optivan/.rtl/core/rtw_rf.o
CC [M] /home/optivan/.rtl/core/rtw_chplan.o
CC [M] /home/optivan/.rtl/core/monitor/rtw_radiotap.o
CC [M] /home/optivan/.rtl/core/rtw_recv.o
CC [M] /home/optivan/.rtl/core/rtw_sta_mgt.o
CC [M] /home/optivan/.rtl/core/rtw_ap.o
CC [M] /home/optivan/.rtl/core/mesh/rtw_mesh.o
CC [M] /home/optivan/.rtl/core/mesh/rtw_mesh_pathtbl.o
CC [M] /home/optivan/.rtl/core/mesh/rtw_mesh_hwmp.o
CC [M] /home/optivan/.rtl/core/rtw_xmit.o
CC [M] /home/optivan/.rtl/core/rtw_p2p.o
CC [M] /home/optivan/.rtl/core/rtw_rson.o
CC [M] /home/optivan/.rtl/core/rtw_tdls.o
CC [M] /home/optivan/.rtl/core/rtw_br_ext.o
/home/optivan/.rtl/core/rtw_br_ext.c:20:11: fatal error: net/ipx.h: Datei oder Verzeichnis nicht gefunden
20 | #include <net/ipx.h>
| ^~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:277: /home/optivan/.rtl/core/rtw_br_ext.o] Fehler 1
make[2]: *** Auf noch nicht beendete Prozesse wird gewartet …
/home/optivan/.rtl/core/rtw_mlme_ext.c: In function ‘rtw_txpwr_init_regd’:
/home/optivan/.rtl/core/rtw_mlme_ext.c:267:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
267 | if (rfctl->regd_name)
| ^
/home/optivan/.rtl/core/rtw_mlme_ext.c:270:2: note: here
270 | default:
| ^~~~~~~
/home/optivan/.rtl/core/rtw_mlme_ext.c: In function ‘mgt_dispatcher’:
/home/optivan/.rtl/core/rtw_mlme_ext.c:1379:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
1379 | ptable->func = &OnAuthClient;
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/home/optivan/.rtl/core/rtw_mlme_ext.c:1381:2: note: here
1381 | case WIFI_ASSOCREQ:
| ^~~~
make[1]: *** [Makefile:1868: /home/optivan/.rtl] Fehler 2
make[1]: Verzeichnis „/usr/src/linux-headers-5.15.0-generic“ wird verlassen
make: *** [Makefile:2362: modules] Fehler 2

I May wanna ask when this is updated to Kernel 5.15 or is there allready an Update?

Regrads Optivan

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.