rtl8812au causes kernel error when connecting TP-Link T4UH

Bug #1906112 reported by Karl-Philipp Richter
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
rtl8812au (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After connecting the WiFi USB adapter `sudo dmesg` shows

```
[ 1521.747860] usb 1-1.1: USB disconnect, device number 3
[ 1523.968354] usb 1-1.1: new high-speed USB device number 6 using ehci-pci
[ 1524.047189] usb 1-1.1: New USB device found, idVendor=2357, idProduct=0101, bcdDevice= 0.00
[ 1524.047194] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1524.047197] usb 1-1.1: Product: 802.11n NIC
[ 1524.047199] usb 1-1.1: Manufacturer: Realtek
[ 1524.047200] usb 1-1.1: SerialNumber: 123456
[ 1524.047711] ------------[ cut here ]------------
[ 1524.047766] WARNING: CPU: 1 PID: 11611 at net/wireless/core.c:890 wiphy_register+0x587/0x7f0 [cfg80211]
[ 1524.047767] Modules linked in: xt_conntrack xt_MASQUERADE nf_conntrack_netlink xfrm_user xfrm_algo nft_counter xt_addrtype nft_compat nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c nf_tables nfnetlink br_netfilter bridge stp llc rfcomm ccm algif_aead des_generic libdes arc4 md4 aufs cmac algif_hash algif_skcipher af_alg bnep overlay cachefiles fscache bbswitch(OE) binfmt_misc snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio zfs(PO) zunicode(PO) zavl(PO) icp(PO) intel_rapl_msr nls_iso8859_1 mei_hdcp zcommon(PO) znvpair(PO) spl(O) zlua(PO) snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hda_core intel_rapl_common x86_pkg_temp_thermal snd_hwdep intel_powerclamp coretemp kvm_intel kvm crct10dif_pclmul ghash_clmulni_intel snd_pcm aesni_intel crypto_simd cryptd glue_helper rapl snd_seq_midi intel_cstate snd_seq_midi_event input_leds uvcvideo 8812au(OE) snd_rawmidi btusb iwldvm videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 serio_raw
[ 1524.047851] mac80211 rtsx_usb_ms videobuf2_common btrtl at24 efi_pstore snd_seq videodev memstick btbcm libarc4 btintel mc joydev snd_seq_device snd_timer bluetooth i915 iwlwifi snd ecdh_generic cfg80211 ecc hid_multitouch drm_kms_helper cec rc_core i2c_algo_bit soundcore fb_sys_fops mei_me syscopyarea sysfillrect mei sysimgblt ideapad_laptop sparse_keymap wmi mac_hid sch_fq_codel pkcs8_key_parser parport_pc ppdev lp parport drm ip_tables x_tables autofs4 rtsx_usb_sdmmc rtsx_usb hid_generic usbhid hid crc32_pclmul i2c_i801 psmouse ahci r8169 xhci_pci lpc_ich libahci i2c_smbus realtek xhci_pci_renesas video [last unloaded: nvidia]
[ 1524.047941] CPU: 1 PID: 11611 Comm: kworker/1:3 Tainted: P W OE 5.8.0-29-lowlatency #31-Ubuntu
[ 1524.047943] Hardware name: LENOVO 20221/INVALID, BIOS 71CN51WW(V1.21) 07/12/2013
[ 1524.047953] Workqueue: usb_hub_wq hub_event
[ 1524.047993] RIP: 0010:wiphy_register+0x587/0x7f0 [cfg80211]
[ 1524.047998] Code: 0b 66 41 89 54 24 30 e9 a7 fd ff ff 80 7a 1e 00 74 30 0f 0b b8 ea ff ff ff e9 0f fd ff ff 0f 0b b8 ea ff ff ff e9 03 fd ff ff <0f> 0b b8 ea ff ff ff e9 f7 fc ff ff 0f 0b b8 ea ff ff ff e9 eb fc
[ 1524.048001] RSP: 0018:ffffbe8e25c47710 EFLAGS: 00010246
[ 1524.048004] RAX: ffffffffc0b6a0f0 RBX: ffff9cda0ea0bae0 RCX: ffffffffc0b6a0e0
[ 1524.048007] RDX: ffffffffc0b6a180 RSI: 0000000000000025 RDI: 000000000000001e
[ 1524.048009] RBP: ffffbe8e25c47780 R08: 0000000000000004 R09: 0000000000000003
[ 1524.048011] R10: 0000000000000000 R11: 0000000000000000 R12: ffff9cda0ea0bae0
[ 1524.048013] R13: ffff9cd9b9f83000 R14: ffff9cda0ee7f830 R15: ffff9cda0ee7f830
[ 1524.048017] FS: 0000000000000000(0000) GS:ffff9cdaaf240000(0000) knlGS:0000000000000000
[ 1524.048019] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1524.048022] CR2: 00002789d76eef40 CR3: 000000017020a003 CR4: 00000000001606e0
[ 1524.048024] Call Trace:
[ 1524.048086] ? _rtw_malloc+0x2d/0x2f [8812au]
[ 1524.048137] ? _rtw_memcpy+0x10/0x12 [8812au]
[ 1524.048194] ? rtw_5g_rates_init+0x1a/0x1c [8812au]
[ 1524.048251] ? rtw_spt_band_alloc+0xb0/0xb2 [8812au]
[ 1524.048306] rtw_wdev_alloc+0xf6/0x29c [8812au]
[ 1524.048364] rtw_usb_if1_init+0xf0/0x20c [8812au]
[ 1524.048446] rtw_drv_init+0x24b/0x2d7 [8812au]
[ 1524.048461] usb_probe_interface+0xf1/0x2b0
[ 1524.048473] really_probe+0x2f4/0x430
[ 1524.048482] driver_probe_device+0xe9/0x160
[ 1524.048492] __device_attach_driver+0x71/0xd0
[ 1524.048500] ? driver_allows_async_probing+0x50/0x50
[ 1524.048510] bus_for_each_drv+0x84/0xd0
[ 1524.048518] __device_attach+0xde/0x1e0
[ 1524.048526] device_initial_probe+0x13/0x20
[ 1524.048532] bus_probe_device+0x8f/0xa0
[ 1524.048538] device_add+0x3ad/0x6a0
[ 1524.048544] usb_set_configuration+0x48e/0x850
[ 1524.048554] usb_generic_driver_probe+0x53/0x70
[ 1524.048559] usb_probe_device+0x3e/0x100
[ 1524.048564] really_probe+0x2f4/0x430
[ 1524.048569] driver_probe_device+0xe9/0x160
[ 1524.048574] __device_attach_driver+0x71/0xd0
[ 1524.048579] ? driver_allows_async_probing+0x50/0x50
[ 1524.048584] bus_for_each_drv+0x84/0xd0
[ 1524.048590] __device_attach+0xde/0x1e0
[ 1524.048594] device_initial_probe+0x13/0x20
[ 1524.048598] bus_probe_device+0x8f/0xa0
[ 1524.048604] device_add+0x3ad/0x6a0
[ 1524.048611] ? add_device_randomness+0x9f/0x130
[ 1524.048618] usb_new_device.cold+0xe7/0x27e
[ 1524.048624] hub_port_connect+0x44b/0x800
[ 1524.048631] hub_port_connect_change+0x9d/0x360
[ 1524.048638] port_event+0x315/0x4f0
[ 1524.048644] hub_event+0x1e7/0x440
[ 1524.048654] process_one_work+0x1df/0x3d0
[ 1524.048660] worker_thread+0x4d/0x350
[ 1524.048666] ? rescuer_thread+0x390/0x390
[ 1524.048672] kthread+0x145/0x170
[ 1524.048677] ? kthread_create_on_node+0x60/0x60
[ 1524.048684] ret_from_fork+0x22/0x30
[ 1524.048691] ---[ end trace b3756d2027af47ee ]---
[ 1524.114349] usb 1-1.1: reset high-speed USB device number 6 using ehci-pc
```

The device is not recognized and doesn't work.

ProblemType: Bug
DistroRelease: Ubuntu 20.10
Package: rtl8812au-dkms 4.3.8.12175.20140902+dfsg-0ubuntu13
ProcVersionSignature: Ubuntu 5.8.0-29.31-lowlatency 5.8.14
Uname: Linux 5.8.0-29-lowlatency x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu50.2
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Sat Nov 28 18:36:40 2020
InstallationDate: Installed on 2020-10-02 (57 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: rtl8812au
UpgradeStatus: Upgraded to groovy on 2020-11-22 (6 days ago)

Revision history for this message
Karl-Philipp Richter (krichter722) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in rtl8812au (Ubuntu):
status: New → Confirmed
Revision history for this message
Alexander Scheel (cipherboy) wrote :

Just in case someone stumbles across this in the future. I believe the realtek driver version (here, 4.3.8....) doesn't work with newer kernel versions. I found a much newer driver here:

https://github.com/morrownr/8812au

This is driver version v5.9.3.2 (Released Oct 2020) and works with my card:

Bus 001 Device 003: ID 0bda:8812 Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac 2T2R DB WLAN Adapter

It appears the original upstream associated with this package is now dead; the maintainer might consider moving to another source.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.