abperiasamy / rtl8812AU_8821AU_linux

rtl8812AU_8821AU linux kernel driver for AC1200 (801.11ac) Wireless Dual-Band USB Adapter
GNU General Public License v2.0
1.23k stars 434 forks source link

New kernel, #317

Open ghost opened 5 years ago

ghost commented 5 years ago

When I try to install this, it fails, on linux kernel 5.3.7

[ 8418.681969] ------------[ cut here ]------------ [ 8418.682043] WARNING: CPU: 0 PID: 15 at net/wireless/core.c:868 wiphy_register.cold+0x37/0x435 [cfg80211] [ 8418.682045] Modules linked in: uinput rtl8812au(OE) nls_iso8859_1 nls_cp437 vfat fat uas usb_storage rfcomm cmac algif_hash algif_skcipher af_alg bnep x86_pkg_temp_thermal intel_powerclamp coretemp btusb kvm_intel btrtl btbcm btintel mei_hdcp cfg80211 uvcvideo bluetooth kvm snd_usb_audio ecdh_generic ecc snd_usbmidi_lib snd_rawmidi snd_seq_device irqbypass videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common rtsx_usb_ms memstick joydev mousedev snd_hda_intel intel_rapl_msr i915 ofpart cmdlinepart intel_spi_platform intel_spi crct10dif_pclmul spi_nor snd_hda_codec iTCO_wdt iTCO_vendor_support crc32_pclmul mtd ghash_clmulni_intel asus_nb_wmi asus_wmi aesni_intel sparse_keymap aes_x86_64 rfkill snd_hda_core crypto_simd cryptd i2c_algo_bit psmouse snd_hwdep snd_pcm r8169 drm_kms_helper glue_helper drm intel_cstate intel_uncore intel_gtt realtek agpgart libphy snd_timer intel_rapl_perf snd syscopyarea sysfillrect sysimgblt fb_sys_fops input_leds soundcore pcspkr [ 8418.682097] processor_thermal_device intel_rapl_common mei_me evdev i2c_i801 mei int3402_thermal intel_soc_dts_iosf intel_pch_thermal lpc_ich mac_hid int3400_thermal int340x_thermal_zone acpi_thermal_rel asus_wireless wmi battery ac videodev mc crypto_user ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 rtsx_usb_sdmmc mmc_core rtsx_usb hid_logitech_hidpp hid_logitech_dj hid_generic usbhid hid sr_mod cdrom sd_mod ahci libahci serio_raw atkbd libps2 libata xhci_pci crc32c_intel scsi_mod ehci_pci xhci_hcd ehci_hcd i8042 serio [last unloaded: rtl8812au] [ 8418.682134] CPU: 0 PID: 15 Comm: kworker/0:1 Tainted: G W OE 5.3.7-arch1-1-ARCH #1 [ 8418.682136] Hardware name: ASUSTeK COMPUTER INC. X555LA/X555LA, BIOS X555LA.307 08/06/2014 [ 8418.682143] Workqueue: usb_hub_wq hub_event [ 8418.682181] RIP: 0010:wiphy_register.cold+0x37/0x435 [cfg80211] [ 8418.682184] Code: 0b b8 ea ff ff ff e9 dc 15 fa ff 48 c7 c7 20 77 0d c1 e8 a8 e7 e2 d8 0f 0b e9 b7 1a fa ff 48 c7 c7 20 77 0d c1 e8 95 e7 e2 d8 <0f> 0b b8 ea ff ff ff e9 b1 15 fa ff 48 c7 c7 20 77 0d c1 e8 7d e7 [ 8418.682186] RSP: 0018:ffffaa3f400af8e0 EFLAGS: 00010246 [ 8418.682190] RAX: 0000000000000024 RBX: 000000000000034e RCX: 0000000000000000 [ 8418.682192] RDX: 0000000000000000 RSI: ffff914a56c17708 RDI: 00000000ffffffff [ 8418.682194] RBP: ffffaa3f400af960 R08: 0000000000000523 R09: 0000000000000001 [ 8418.682195] R10: 0000000000000000 R11: 0000000000000001 R12: ffff9149f81c0b00 [ 8418.682197] R13: ffffaa3f400af8f0 R14: ffff9149f81c4800 R15: ffff9148bd403800 [ 8418.682200] FS: 0000000000000000(0000) GS:ffff914a56c00000(0000) knlGS:0000000000000000 [ 8418.682202] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 8418.682204] CR2: 000055cad0ad6728 CR3: 00000001f527a003 CR4: 00000000001606f0 [ 8418.682206] Call Trace: [ 8418.682215] ? pm_runtime_init+0x85/0xb0 [ 8418.682274] ? rtw_5g_rates_init+0x16/0x17 [rtl8812au] [ 8418.682325] rtw_wdev_alloc+0xff/0x26e [rtl8812au] [ 8418.682374] rtw_usb_if1_init+0x130/0x1f8 [rtl8812au] [ 8418.682421] rtw_drv_init+0x235/0x2bd [rtl8812au] [ 8418.682426] usb_probe_interface+0xe0/0x280 [ 8418.682432] really_probe+0xf0/0x380 [ 8418.682436] driver_probe_device+0xb6/0x100 [ 8418.682440] ? driver_allows_async_probing+0x50/0x50 [ 8418.682443] bus_for_each_drv+0x8c/0xd0 [ 8418.682447] device_attach+0xf0/0x170 [ 8418.682451] bus_probe_device+0x8e/0xa0 [ 8418.682456] device_add+0x3cd/0x6b0 [ 8418.682461] ? preempt_count_add+0x68/0xa0 [ 8418.682465] usb_set_configuration+0x67e/0x7e0 [ 8418.682471] generic_probe+0x3c/0x57 [ 8418.682475] really_probe+0xf0/0x380 [ 8418.682479] driver_probe_device+0xb6/0x100 [ 8418.682482] ? driver_allows_async_probing+0x50/0x50 [ 8418.682485] bus_for_each_drv+0x8c/0xd0 [ 8418.682488] device_attach+0xf0/0x170 [ 8418.682492] bus_probe_device+0x8e/0xa0 [ 8418.682496] device_add+0x3cd/0x6b0 [ 8418.682502] usb_new_device.cold+0x120/0x2e3 [ 8418.682507] hub_event+0xbb2/0x15a0 [ 8418.682515] process_one_work+0x1d1/0x3a0 [ 8418.682519] worker_thread+0x4a/0x3d0 [ 8418.682523] kthread+0xfb/0x130 [ 8418.682527] ? process_one_work+0x3a0/0x3a0 [ 8418.682529] ? kthread_park+0x80/0x80 [ 8418.682535] ret_from_fork+0x35/0x40 [ 8418.682541] ---[ end trace 3f860d3fc9c6aee8 ]---

ghost commented 5 years ago

sorry about editing so many times, i am not good at markdown

jskov-jyskebank-dk commented 5 years ago

See https://github.com/abperiasamy/rtl8812AU_8821AU_linux/pull/316

ghost commented 5 years ago

See #316

I tried compiling and installing the driver from your fork in Arch linux kernel 5.3.7 and unfortunalely I got same crash

jskov-jyskebank-dk commented 5 years ago

Maybe you did not use the kernel-5.3 branch? That is my only input, I am afraid.

ghost commented 5 years ago

Yes, I compiled the correct branch 5.3... at Latest commit 822b485 - 4 days ago

first uninstalled the driver, then cloned your repo, then compiled and installed the driver. Reboot PC just in case anything wrong in memory or whatever. Finally attached the Wifi dongle, and at dmesg got again that crash log and non functional dongle.

jskov-jyskebank-dk commented 5 years ago

Sorry, no idea then.

karlkleinpaste commented 5 years ago

From #316, the small fallthrough patch doesn't apply, there is no "case WIFI_ASSOCREQ" in the file at all. I applied the 2nd patch just fine and used usual dkms procedure to re-install. The driver no longer causes failure w/stack trace but it won't associate with any AP, either.

On modprobe, it goes through typical recognition & registration, then NetworkManager gets told about it, which goes through typical stages resulting in "managed/disconnected" state. Then, trying to make a connection results in repeating sequences of rejection:

Nov 5 07:12:03 godiva wpa_supplicant[3012]: wlan1: Trying to associate with 08:bd:43:59:5f:84 (SSID='FEMA Nuclear Mediation' freq=2412 MHz) Nov 5 07:12:04 godiva kernel: RTL871X: rtw_set_802_11_connect(wlan1) fw_state=0x00000008 Nov 5 07:12:04 godiva NetworkManager[1483]: [1572955924.3218] device (wlan1): supplicant interface state: scanning -> associating Nov 5 07:12:04 godiva NetworkManager[1483]: [1572955924.3219] device (p2p-dev-wlan1): supplicant management interface state: scanning -> associating Nov 5 07:12:04 godiva kernel: RTL871X: start auth Nov 5 07:12:05 godiva wpa_supplicant[3012]: wlan1: CTRL-EVENT-ASSOC-REJECT status_code=1 Nov 5 07:12:05 godiva wpa_supplicant[3012]: wlan1: CTRL-EVENT-ASSOC-REJECT status_code=1 Nov 5 07:12:05 godiva NetworkManager[1483]: [1572955925.8961] device (wlan1): supplicant interface state: associating -> disconnected

Note CTRL-EVENT-ASSOC-REJECT code 1. This happens several times, during which NM pops a dialog to ask for password (it is correct, has not changed, and other wifi devices connect to this AP using that password just fine), eventually failing on taking too long:

Nov 5 07:12:24 godiva kernel: RTL871X: sta recv deauth reason code(0) sta:08:bd:43:59:5f:84, ignore = 0 Nov 5 07:12:25 godiva NetworkManager[1483]: [1572955945.8215] device (wlan1): Activation: (wifi) association took too long

No concrete suggestions to offer of my own, I do networks but it's been a very long time since I poked seriously at any wifi driver.