aircrack-ng / rtl8812au

RTL8812AU/21AU and RTL8814AU driver with monitor mode and frame injection
GNU General Public License v2.0
3.58k stars 783 forks source link

USB Wifi TP-Link AC600 cannot work with newest version #1159

Open kienngd opened 6 months ago

kienngd commented 6 months ago

I use Ubuntu 24.04 Kernel: 6.8.0-31 Wifi: TP-Link AC600 wireless Realtek RTL8811AU [Archer T2U Nano] ID 2357:011e I install by command sudo make dkms_install with newest version, wifi will disconnect after init. So I cannot list wifi list. But if I reset code to commit 63cf0b4584aa8878b0fe8ab38017f31c319bde3d. Wifi works fine.

zCreeperYT commented 6 months ago

Same for me! THANK YOU VERY MUCH Greetings from Germany <3 But the problem is really existing so please fix it!

cblknittights commented 6 months ago

Same here, just got this device to replace an internal card that is not working with Kubuntu 24.04

Get a green blinking LED, no wireless networks listed in the network manager

I will gladly provide anything more:

I tried the repo rtl8812au via synpatic and refuses to build has all kinds of errors..... purged that out and did this ... and no joy...

Details: uname: Linux X 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

lsusb Bus 007 Device 002: ID 2357:011e TP-Link AC600 wireless Realtek RTL8811AU [Archer T2U Nano]

iwconfig:

wlxf0a731dc05c0 unassociated ESSID:"" Nickname:"WIFI@REALTEK" Mode:Managed Frequency=2.412 GHz Access Point: Not-Associated
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off Power Management:off Link Quality:0 Signal level:0 Noise level:0 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0

dmesg output below:

[ 1767.784649] usb 2-3: new high-speed USB device number 4 using ehci-pci
[ 1767.917670] usb 2-3: New USB device found, idVendor=2357, idProduct=011e, bcdDevice= 2.00
[ 1767.917682] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1767.917687] usb 2-3: Product: 802.11ac WLAN Adapter 
[ 1767.917691] usb 2-3: Manufacturer: Realtek 
[ 1767.917695] usb 2-3: SerialNumber: 00e04c000001
[ 1768.614733] ------------[ cut here ]------------
[ 1768.614742] WARNING: CPU: 1 PID: 9988 at /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_odm.c:62 rtw_odm_init_ic_type+0x52/0x70 [88XXau]
[ 1768.615073] Modules linked in: 88XXau(OE+) snd_seq_dummy snd_hrtimer xt_CHECKSUM xt_MASQUERADE xt_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp nft_compat nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables bridge stp llc qrtr binfmt_misc snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec wl(POE) snd_hda_core uvcvideo snd_hwdep i915 videobuf2_vmalloc uvc videobuf2_memops snd_pcm videobuf2_v4l2 snd_seq_midi videodev snd_seq_midi_event snd_rawmidi videobuf2_common drm_buddy snd_seq ttm mc drm_display_helper snd_seq_device snd_timer dell_laptop cec dell_wmi cfg80211 dell_smbios snd rc_core dcdbas ledtrig_audio sparse_keymap dell_smm_hwmon dell_wmi_descriptor i2c_algo_bit wmi_bmof i2c_i801 coretemp i2c_smbus soundcore lpc_ich joydev input_leds mac_hid serio_raw msr parport_pc ppdev lp parport efi_pstore nfnetlink dmi_sysfs ip_tables x_tables autofs4 btrfs blake2b_generic xor raid6_pq libcrc32c dm_crypt dm_mirror
[ 1768.615248]  dm_region_hash dm_log sha256_ssse3 sha1_ssse3 r8169 ahci psmouse libahci realtek ssb video wmi ums_realtek uas usb_storage crypto_simd cryptd
[ 1768.615285] CPU: 1 PID: 9988 Comm: (udev-worker) Tainted: P           OE      6.8.0-31-generic #31-Ubuntu
[ 1768.615291] Hardware name: Dell Inc. Inspiron 1470/0M7CYJ, BIOS A03 10/19/2009
[ 1768.615295] RIP: 0010:rtw_odm_init_ic_type+0x52/0x70 [88XXau]
[ 1768.615624] Code: 85 d2 74 26 be 04 00 00 00 48 89 c7 e8 97 2c 09 00 5d 31 c0 31 d2 31 f6 31 ff c3 cc cc cc cc 8b 14 95 f0 4a c1 c1 85 d2 75 da <0f> 0b be 04 00 00 00 48 89 c7 e8 6f 2c 09 00 5d 31 c0 31 d2 31 f6
[ 1768.615631] RSP: 0018:ffffba49c5f078c0 EFLAGS: 00010246
[ 1768.615637] RAX: ffffba49c086ced0 RBX: ffffba49c005b000 RCX: 0000000000000000
[ 1768.615642] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffba49c005b000
[ 1768.615645] RBP: ffffba49c5f078c0 R08: 0000000000000000 R09: 0000000000000000
[ 1768.615649] R10: 0000000000000000 R11: 0000000000000000 R12: ffff9b8886548000
[ 1768.615652] R13: ffff9b88a45c8c00 R14: 0000000000000000 R15: ffffffffc1ae0a40
[ 1768.615656] FS:  000070f68a27b8c0(0000) GS:ffff9b88bbf00000(0000) knlGS:0000000000000000
[ 1768.615661] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1768.615665] CR2: 0000784c00000020 CR3: 000000010b8ca000 CR4: 00000000000406f0
[ 1768.615670] Call Trace:
[ 1768.615675]  <TASK>
[ 1768.615681]  ? show_regs+0x6d/0x80
[ 1768.615692]  ? __warn+0x89/0x160
[ 1768.615701]  ? rtw_odm_init_ic_type+0x52/0x70 [88XXau]
[ 1768.615982]  ? report_bug+0x17e/0x1b0
[ 1768.615992]  ? handle_bug+0x51/0xa0
[ 1768.615998]  ? exc_invalid_op+0x18/0x80
[ 1768.616003]  ? asm_exc_invalid_op+0x1b/0x20
[ 1768.616011]  ? rtw_odm_init_ic_type+0x52/0x70 [88XXau]
[ 1768.616285]  rtw_hal_read_chip_version+0x21/0x30 [88XXau]
[ 1768.616594]  rtw_usb_primary_adapter_init+0x128/0xa50 [88XXau]
[ 1768.616880]  rtw_usb_primary_adapter_init+0x41c/0xa50 [88XXau]
[ 1768.617164]  ? pm_runtime_enable+0x51/0xd0
[ 1768.617171]  ? __pm_runtime_set_status+0x1b7/0x360
[ 1768.617179]  usb_probe_interface+0xee/0x300
[ 1768.617188]  really_probe+0x1c7/0x410
[ 1768.617195]  __driver_probe_device+0x8c/0x180
[ 1768.617201]  driver_probe_device+0x24/0xd0
[ 1768.617208]  __driver_attach+0x10b/0x210
[ 1768.617214]  ? __pfx___driver_attach+0x10/0x10
[ 1768.617220]  bus_for_each_dev+0x8d/0xf0
[ 1768.617229]  driver_attach+0x1e/0x30
[ 1768.617234]  bus_add_driver+0x156/0x260
[ 1768.617241]  driver_register+0x5e/0x130
[ 1768.617248]  usb_register_driver+0x83/0x170
[ 1768.617253]  ? __pfx_init_module+0x10/0x10 [88XXau]
[ 1768.617426]  init_module+0x55/0xff0 [88XXau]
[ 1768.617613]  do_one_initcall+0x5e/0x340
[ 1768.617625]  do_init_module+0xc0/0x2c0
[ 1768.617634]  load_module+0xba1/0xcf0
[ 1768.617643]  init_module_from_file+0x96/0x100
[ 1768.617648]  ? init_module_from_file+0x96/0x100
[ 1768.617657]  idempotent_init_module+0x11c/0x2b0
[ 1768.617664]  __x64_sys_finit_module+0x64/0xd0
[ 1768.617670]  x64_sys_call+0x1d6e/0x25c0
[ 1768.617676]  do_syscall_64+0x7f/0x180
[ 1768.617683]  ? __x64_sys_openat+0x55/0xa0
[ 1768.617690]  ? syscall_exit_to_user_mode+0x86/0x260
[ 1768.617699]  ? do_syscall_64+0x8c/0x180
[ 1768.617705]  ? do_syscall_64+0x8c/0x180
[ 1768.617711]  ? exc_page_fault+0x94/0x1b0
[ 1768.617719]  entry_SYSCALL_64_after_hwframe+0x73/0x7b
[ 1768.617728] RIP: 0033:0x70f68a12725d
[ 1768.617757] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 8b bb 0d 00 f7 d8 64 89 01 48
[ 1768.617762] RSP: 002b:00007fffc76f5a28 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 1768.617768] RAX: ffffffffffffffda RBX: 00005ed13cb0e340 RCX: 000070f68a12725d
[ 1768.617772] RDX: 0000000000000004 RSI: 000070f68a30407d RDI: 0000000000000012
[ 1768.617776] RBP: 00007fffc76f5ae0 R08: 0000000000000040 R09: 00007fffc76f5a70
[ 1768.617780] R10: 000070f68a203b20 R11: 0000000000000246 R12: 000070f68a30407d
[ 1768.617784] R13: 0000000000020000 R14: 00005ed13cbef970 R15: 00005ed13caed750
[ 1768.617791]  </TASK>
[ 1768.617794] ---[ end trace 0000000000000000 ]---
[ 1768.802945] usb 2-3: 88XXau f0:a7:31:dc:05:c0 hw_info[107]
[ 1768.805843] ------------[ cut here ]------------
[ 1768.805853] WARNING: CPU: 1 PID: 9988 at /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_odm.c:62 rtw_odm_init_ic_type+0x52/0x70 [88XXau]
[ 1768.806226] Modules linked in: 88XXau(OE+) snd_seq_dummy snd_hrtimer xt_CHECKSUM xt_MASQUERADE xt_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp nft_compat nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables bridge stp llc qrtr binfmt_misc snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec wl(POE) snd_hda_core uvcvideo snd_hwdep i915 videobuf2_vmalloc uvc videobuf2_memops snd_pcm videobuf2_v4l2 snd_seq_midi videodev snd_seq_midi_event snd_rawmidi videobuf2_common drm_buddy snd_seq ttm mc drm_display_helper snd_seq_device snd_timer dell_laptop cec dell_wmi cfg80211 dell_smbios snd rc_core dcdbas ledtrig_audio sparse_keymap dell_smm_hwmon dell_wmi_descriptor i2c_algo_bit wmi_bmof i2c_i801 coretemp i2c_smbus soundcore lpc_ich joydev input_leds mac_hid serio_raw msr parport_pc ppdev lp parport efi_pstore nfnetlink dmi_sysfs ip_tables x_tables autofs4 btrfs blake2b_generic xor raid6_pq libcrc32c dm_crypt dm_mirror
[ 1768.806405]  dm_region_hash dm_log sha256_ssse3 sha1_ssse3 r8169 ahci psmouse libahci realtek ssb video wmi ums_realtek uas usb_storage crypto_simd cryptd
[ 1768.806443] CPU: 1 PID: 9988 Comm: (udev-worker) Tainted: P        W  OE      6.8.0-31-generic #31-Ubuntu
[ 1768.806450] Hardware name: Dell Inc. Inspiron 1470/0M7CYJ, BIOS A03 10/19/2009
[ 1768.806453] RIP: 0010:rtw_odm_init_ic_type+0x52/0x70 [88XXau]
[ 1768.806762] Code: 85 d2 74 26 be 04 00 00 00 48 89 c7 e8 97 2c 09 00 5d 31 c0 31 d2 31 f6 31 ff c3 cc cc cc cc 8b 14 95 f0 4a c1 c1 85 d2 75 da <0f> 0b be 04 00 00 00 48 89 c7 e8 6f 2c 09 00 5d 31 c0 31 d2 31 f6
[ 1768.806768] RSP: 0000:ffffba49c5f07828 EFLAGS: 00010246
[ 1768.806774] RAX: ffffba49c086ced0 RBX: ffffba49c005b000 RCX: 0000000000000000
[ 1768.806778] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffba49c005b000
[ 1768.806782] RBP: ffffba49c5f07828 R08: 0000000000000000 R09: 0000000000000002
[ 1768.806786] R10: ffffba49c005e792 R11: 0000000000000000 R12: ffffba49c086ced0
[ 1768.806790] R13: ffffba49c0869000 R14: ffff9b8886548000 R15: ffffffffc1ae0a40
[ 1768.806793] FS:  000070f68a27b8c0(0000) GS:ffff9b88bbf00000(0000) knlGS:0000000000000000
[ 1768.806798] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1768.806802] CR2: 00007764778ffae0 CR3: 000000010b8ca000 CR4: 00000000000406f0
[ 1768.806807] Call Trace:
[ 1768.806812]  <TASK>
[ 1768.806818]  ? show_regs+0x6d/0x80
[ 1768.806828]  ? __warn+0x89/0x160
[ 1768.806838]  ? rtw_odm_init_ic_type+0x52/0x70 [88XXau]
[ 1768.807135]  ? report_bug+0x17e/0x1b0
[ 1768.807146]  ? handle_bug+0x51/0xa0
[ 1768.807151]  ? exc_invalid_op+0x18/0x80
[ 1768.807156]  ? asm_exc_invalid_op+0x1b/0x20
[ 1768.807165]  ? rtw_odm_init_ic_type+0x52/0x70 [88XXau]
[ 1768.807441]  Init_ODM_ComInfo+0x38/0x5a0 [88XXau]
[ 1768.807743]  rtl8812_init_dm_priv+0x44/0xb0 [88XXau]
[ 1768.808024]  rtw_hal_dm_init+0x22/0x50 [88XXau]
[ 1768.808313]  rtw_init_drv_sw+0x25d/0x290 [88XXau]
[ 1768.808615]  rtw_usb_primary_adapter_init+0x14c/0xa50 [88XXau]
[ 1768.808905]  rtw_usb_primary_adapter_init+0x41c/0xa50 [88XXau]
[ 1768.809189]  ? pm_runtime_enable+0x51/0xd0
[ 1768.809198]  ? __pm_runtime_set_status+0x1b7/0x360
[ 1768.809206]  usb_probe_interface+0xee/0x300
[ 1768.809215]  really_probe+0x1c7/0x410
[ 1768.809223]  __driver_probe_device+0x8c/0x180
[ 1768.809229]  driver_probe_device+0x24/0xd0
[ 1768.809235]  __driver_attach+0x10b/0x210
[ 1768.809242]  ? __pfx___driver_attach+0x10/0x10
[ 1768.809247]  bus_for_each_dev+0x8d/0xf0
[ 1768.809257]  driver_attach+0x1e/0x30
[ 1768.809262]  bus_add_driver+0x156/0x260
[ 1768.809268]  driver_register+0x5e/0x130
[ 1768.809276]  usb_register_driver+0x83/0x170
[ 1768.809281]  ? __pfx_init_module+0x10/0x10 [88XXau]
[ 1768.809456]  init_module+0x55/0xff0 [88XXau]
[ 1768.809641]  do_one_initcall+0x5e/0x340
[ 1768.809653]  do_init_module+0xc0/0x2c0
[ 1768.809663]  load_module+0xba1/0xcf0
[ 1768.809673]  init_module_from_file+0x96/0x100
[ 1768.809678]  ? init_module_from_file+0x96/0x100
[ 1768.809685]  idempotent_init_module+0x11c/0x2b0
[ 1768.809693]  __x64_sys_finit_module+0x64/0xd0
[ 1768.809699]  x64_sys_call+0x1d6e/0x25c0
[ 1768.809704]  do_syscall_64+0x7f/0x180
[ 1768.809712]  ? __x64_sys_openat+0x55/0xa0
[ 1768.809720]  ? syscall_exit_to_user_mode+0x86/0x260
[ 1768.809728]  ? do_syscall_64+0x8c/0x180
[ 1768.809735]  ? do_syscall_64+0x8c/0x180
[ 1768.809741]  ? exc_page_fault+0x94/0x1b0
[ 1768.809748]  entry_SYSCALL_64_after_hwframe+0x73/0x7b
[ 1768.809758] RIP: 0033:0x70f68a12725d
[ 1768.809789] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 8b bb 0d 00 f7 d8 64 89 01 48
[ 1768.809794] RSP: 002b:00007fffc76f5a28 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 1768.809801] RAX: ffffffffffffffda RBX: 00005ed13cb0e340 RCX: 000070f68a12725d
[ 1768.809805] RDX: 0000000000000004 RSI: 000070f68a30407d RDI: 0000000000000012
[ 1768.809809] RBP: 00007fffc76f5ae0 R08: 0000000000000040 R09: 00007fffc76f5a70
[ 1768.809813] R10: 000070f68a203b20 R11: 0000000000000246 R12: 000070f68a30407d
[ 1768.809817] R13: 0000000000020000 R14: 00005ed13cbef970 R15: 00005ed13caed750
[ 1768.809824]  </TASK>
[ 1768.809827] ---[ end trace 0000000000000000 ]---
[ 1768.820722] usbcore: registered new interface driver rtl88XXau
[ 1768.930741] rtl88XXau 2-3:1.0 wlxf0a731dc05c0: renamed from wlan0
[ 1769.333690] [Warning] Supportability Init Warning !!!
[ 1769.336808] [phydm_cck_pd_init]warning
[ 1774.006920] warning: `Qt bearer threa' uses wireless extensions which will stop working for Wi-Fi 7 hardware; use nl80211
[ 1785.758616] [phydm_cck_pd_th]warning
[ 1791.902567] [phydm_cck_pd_th]warning
[ 1791.903065] BUG: kernel NULL pointer dereference, address: 0000000000000000
[ 1791.903075] #PF: supervisor instruction fetch in kernel mode
[ 1791.903080] #PF: error_code(0x0010) - not-present page
[ 1791.903085] PGD 0 P4D 0 
[ 1791.903094] Oops: 0010 [#1] PREEMPT SMP PTI
[ 1791.903102] CPU: 1 PID: 10013 Comm: RTW_CMD_THREAD Tainted: P        W  OE      6.8.0-31-generic #31-Ubuntu
[ 1791.903110] Hardware name: Dell Inc. Inspiron 1470/0M7CYJ, BIOS A03 10/19/2009
[ 1791.903115] RIP: 0010:0x0
[ 1791.903152] Code: Unable to access opcode bytes at 0xffffffffffffffd6.
[ 1791.903156] RSP: 0018:ffffba49c08ffbd8 EFLAGS: 00010283
[ 1791.903163] RAX: 0000000000000000 RBX: ffffba49c086ced0 RCX: ffffba49c08ffc08
[ 1791.903169] RDX: ffffba49c08ffc00 RSI: ffffba49c08ffbf8 RDI: ffffba49c086ced0
[ 1791.903174] RBP: ffffba49c08ffcc0 R08: ffffba49c08ffc10 R09: 0000000000000000
[ 1791.903179] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[ 1791.903183] R13: 000000000000001d R14: 000000000000001d R15: ffffba49c08ffc48
[ 1791.903189] FS:  0000000000000000(0000) GS:ffff9b88bbf00000(0000) knlGS:0000000000000000
[ 1791.903195] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1791.903200] CR2: ffffffffffffffd6 CR3: 000000009783c000 CR4: 00000000000406f0
[ 1791.903206] Call Trace:
[ 1791.903211]  <TASK>
[ 1791.903216]  ? show_regs+0x6d/0x80
[ 1791.903228]  ? __die+0x24/0x80
[ 1791.903234]  ? page_fault_oops+0x99/0x1b0
[ 1791.903243]  ? do_user_addr_fault+0x2ee/0x6b0
[ 1791.903251]  ? exc_page_fault+0x83/0x1b0
[ 1791.903261]  ? asm_exc_page_fault+0x27/0x30
[ 1791.903276]  odm_get_tracking_table+0xf4/0x580 [88XXau]
[ 1791.903520]  odm_txpowertracking_callback_thermal_meter+0x39f/0x730 [88XXau]
[ 1791.903743]  odm_txpowertracking_check+0x5d/0xe0 [88XXau]
[ 1791.903961]  phydm_rf_watchdog+0xe/0x20 [88XXau]
[ 1791.904041]  halrf_watchdog+0xe/0x20 [88XXau]
[ 1791.904041]  phydm_watchdog+0x8c/0xf0 [88XXau]
[ 1791.904041]  rtw_phydm_watchdog+0x1df/0x3c0 [88XXau]
[ 1791.904041]  rtl8812_HalDmWatchDog+0x56/0x70 [88XXau]
[ 1791.904041]  rtw_hal_dm_watchdog+0x21/0x30 [88XXau]
[ 1791.904041]  rtw_drvextra_cmd_hdl+0x98/0x3f0 [88XXau]
[ 1791.904041]  rtw_cmd_thread+0x344/0x530 [88XXau]
[ 1791.904041]  ? __pfx_rtw_drvextra_cmd_hdl+0x10/0x10 [88XXau]
[ 1791.904041]  ? __pfx_rtw_cmd_thread+0x10/0x10 [88XXau]
[ 1791.904041]  kthread+0xf2/0x120
[ 1791.904041]  ? __pfx_kthread+0x10/0x10
[ 1791.904041]  ret_from_fork+0x47/0x70
[ 1791.904041]  ? __pfx_kthread+0x10/0x10
[ 1791.904041]  ret_from_fork_asm+0x1b/0x30
[ 1791.904041]  </TASK>
[ 1791.904041] Modules linked in: 88XXau(OE) snd_seq_dummy snd_hrtimer xt_CHECKSUM xt_MASQUERADE xt_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp nft_compat nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables bridge stp llc qrtr binfmt_misc snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec wl(POE) snd_hda_core uvcvideo snd_hwdep i915 videobuf2_vmalloc uvc videobuf2_memops snd_pcm videobuf2_v4l2 snd_seq_midi videodev snd_seq_midi_event snd_rawmidi videobuf2_common drm_buddy snd_seq ttm mc drm_display_helper snd_seq_device snd_timer dell_laptop cec dell_wmi cfg80211 dell_smbios snd rc_core dcdbas ledtrig_audio sparse_keymap dell_smm_hwmon dell_wmi_descriptor i2c_algo_bit wmi_bmof i2c_i801 coretemp i2c_smbus soundcore lpc_ich joydev input_leds mac_hid serio_raw msr parport_pc ppdev lp parport efi_pstore nfnetlink dmi_sysfs ip_tables x_tables autofs4 btrfs blake2b_generic xor raid6_pq libcrc32c dm_crypt dm_mirror dm_region_hash
[ 1791.904041]  dm_log sha256_ssse3 sha1_ssse3 r8169 ahci psmouse libahci realtek ssb video wmi ums_realtek uas usb_storage crypto_simd cryptd
[ 1791.904041] CR2: 0000000000000000
[ 1791.904041] ---[ end trace 0000000000000000 ]---
[ 1791.904041] RIP: 0010:0x0
[ 1791.904041] Code: Unable to access opcode bytes at 0xffffffffffffffd6.
[ 1791.904041] RSP: 0018:ffffba49c08ffbd8 EFLAGS: 00010283
[ 1791.904041] RAX: 0000000000000000 RBX: ffffba49c086ced0 RCX: ffffba49c08ffc08
[ 1791.904041] RDX: ffffba49c08ffc00 RSI: ffffba49c08ffbf8 RDI: ffffba49c086ced0
[ 1791.904041] RBP: ffffba49c08ffcc0 R08: ffffba49c08ffc10 R09: 0000000000000000
[ 1791.904041] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[ 1791.904041] R13: 000000000000001d R14: 000000000000001d R15: ffffba49c08ffc48
[ 1791.904041] FS:  0000000000000000(0000) GS:ffff9b88bbf00000(0000) knlGS:0000000000000000
[ 1791.904041] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1791.904041] CR2: ffffffffffffffd6 CR3: 000000009783c000 CR4: 00000000000406f0
[ 1791.904041] note: RTW_CMD_THREAD[10013] exited with irqs disabled
cblknittights commented 6 months ago

But if I reset code to commit 63cf0b4. Wifi works fine.

How did you "reset" to this, I tried git reset 63cf0b4 and compiled, and no joy... still gives the same issues I posted.

kienngd commented 6 months ago

But if I reset code to commit 63cf0b4. Wifi works fine.

How did you "reset" to this, I tried git reset 63cf0b4 and compiled, and no joy... still gives the same issues I posted.

I use command git reset to reset code. Then git status to show changed files. I remove all new files and checkout all changed files. Finally, I use command sudo make dkms_install. It works fine for me.

rajatkashyap47586 commented 6 months ago

Hi every1 I also facing the same issue but in my case the problem is I cloned this repo yesterday and get the same error. I cannot simply reset the repo as it contains only the latest clone.

Any solution on how get the working version ?

Thanks in advance.

dubhater commented 6 months ago

git checkout 63cf0b4 should do it.

rajatkashyap47586 commented 6 months ago

git checkout 63cf0b4 should do it.

post this do I need to install rtl8812au from the repo again like sudo make dkms_install ? Or only checkout is enough ?

dubhater commented 6 months ago

Oh, you're using dkms. Yes, you probably need to install again.

rajatkashyap47586 commented 6 months ago

Oh, you're using dkms. Yes, you probably need to install again.

I tried to do installation again but I'm gettting error cp -r * /usr/src/8812au-5.6.4.2_35491.20191025 dkms add -m 8812au -v 5.6.4.2_35491.20191025 Error! DKMS tree already contains: 8812au-5.6.4.2_35491.20191025 You cannot add the same module/version combo more than once. make: *** [Makefile:1789: dkms_install] Error 3

It looks like it is trying to install the same version even though in repo the git head is on 63cf0b4

Please let me know if I'm doing something wrong here.

dubhater commented 6 months ago

Uninstall it then install again.

rajatkashyap47586 commented 6 months ago

Uninstall it then install again.

I tried but getting same error

usbcore: registered new interface driver rtl88XXau [ 58.325787] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 58.325793] #PF: supervisor read access in kernel mode [ 58.325795] #PF: error_code(0x0000) - not-present page

cblknittights commented 6 months ago

But if I reset code to commit 63cf0b4. Wifi works fine.

How did you "reset" to this, I tried git reset 63cf0b4 and compiled, and no joy... still gives the same issues I posted.

I use command git reset to reset code. Then git status to show changed files. I remove all new files and checkout all changed files. Finally, I use command sudo make dkms_install. It works fine for me.

I am not a git guy.. so can you please detail the steps...

1) Pull git repo

git clone http......

2) reset to this commit

git reset 63cf0b4

3) ????????

4) ???????

5) ??????

6) sudo make dkms_install

As above, I am not git person, so more details are needed, please. Thank you.

cblknittights commented 6 months ago

Ok... based on some other replies this WORKS...

I tested in a LIVE USB setup and the device now works, I will wipe and reinstall... I think things were buggered up enough from playing with trying to get the internal card working to do this any way...

so for other NON git people like me:

git clone...... (from the readme)

git checkout 63cf0b4

sudo make dkms_install

Plug in/or replug device.. and I clicked on the network manager and it showed wireless networks!

Only glitch is the ONE 5Ghz network that I would prefer to use is not shown????? Weird....

But I an use the other AP for this...

BUT WORKS!

Whereas the internal broadcom one wont. $13 well spent.

Hope this post helps others... and the debug info gets the bug swatted.... out.

rajatkashyap47586 commented 6 months ago

6. sudo make dkms_install

what I did :-

step1) Go to the cloned git repo -> cd rtl8812au step2) Uninstall the package -> make dkms_remove step3) Removed the entire package -> rm -rf rtl8812au step4) Clone again the git repo -> git clone https://github.com/aircrack-ng/rtl8812au.git

step5) Go to the cloned git repo -> cd rtl8812au step6) Checkout to the stable version -> git checkout 63cf0b4 step7) Install again -> make dkms_install step8) reboot -> reboot step9) tested again -> selecting wifi adaptor from usb in virtual box post this I can wifi in kali and then I tried to connect to any network then I can only see loading bar, if in meanwhile I used "dmesg" then I can see the error :-

[ 87.433972] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 87.433993] #PF: supervisor read access in kernel mode [ 87.433997] #PF: error_code(0x0000) - not-present page

I'm not sure this error is corresponding to the wifi or not.

I have whole dmesg output if you want I can share that.

Also, I used the same wifi adaptor before updating the packages in my kali that time it was working perfectly.

rajatkashyap47586 commented 6 months ago

Ok... based on some other replies this WORKS...

I tested in a LIVE USB setup and the device now works, I will wipe and reinstall... I think things were buggered up enough from playing with trying to get the internal card working to do this any way...

so for other NON git people like me:

git clone...... (from the readme)

git checkout 63cf0b4

sudo make dkms_install

Plug in/or replug device.. and I clicked on the network manager and it showed wireless networks!

Only glitch is the ONE 5Ghz network that I would prefer to use is not shown????? Weird....

But I an use the other AP for this...

BUT WORKS!

Whereas the internal broadcom one wont. $13 well spent.

Hope this post helps others... and the debug info gets the bug swatted.... out.

I tried the same but no luck yet. Waiting for some help on this...

rajatkashyap47586 commented 6 months ago

dmesg output I see when wifi is trying to connect to any network

[Uploading dmesg.txt…]()

echo-lalia commented 6 months ago

I was also having this issue. I originally installed the most recent version using dkms, but it didn't work and I tried a few times with no success. But I got it working.

Ill share what I did to hopefully help others, but I'm not totally sure exactly what steps were important to fixing the issue:

kienngd commented 6 months ago

I add more detail what did I do:

Untracked files: (use "git add ..." to include in what will be committed) android/android_ref_codes_10.x/realtek_wifi_SDK_for_android_10_x_20200505.tar.gz android/android_ref_codes_10.x/supplicant_overlay_config.tar.gz android/android_ref_codes_10.x/wpa_supplicant_8_10.x_rtw_29226.20200409.tar.gz android/android_ref_codes_11.x/ save-log.sh


- `rm -rf android/android_ref_codes_10.x/realtek_wifi_SDK_for_android_10_x_20200505.tar.gz android/android_ref_codes_10.x/supplicant_overlay_config.tar.gz android/android_ref_codes_10.x/wpa_supplicant_8_10.x_rtw_29226.20200409.tar.gz android/android_ref_codes_11.x/ save-log.sh` to remove all new files.
- `git checkout Makefile android/android_ref_codes_10.x/Realtek_Wi-Fi_SDK_for_Android_10.pdf core/rtw_cmd.c core/rtw_mlme.c core/rtw_mlme_ext.c core/rtw_p2p.c core/rtw_rson.c core/rtw_wlan_util.c dkms.conf hal/hal_com.c hal/hal_halmac.h ...` (all of listed files) to reset all changed files.
- `sudo make dkms_install` to install it again using dkms.
- Don't need to restart the computer. It worked for me.
rajatkashyap47586 commented 5 months ago

I was also having this issue. I originally installed the most recent version using dkms, but it didn't work and I tried a few times with no success. But I got it working.

Ill share what I did to hopefully help others, but I'm not totally sure exactly what steps were important to fixing the issue:

  • Unplugged the USB adapter
  • Ran dkms status to find the name of the dkms module I had installed.
  • Used sudo dkms remove <module name> --all to delete the old driver (replace module name with the name from the prev step).
  • Restarted computer.
  • Fully deleted the git folder (rtl8812au) so that I could re-clone it with no changes.
  • Used git clone https://github.com/aircrack-ng/rtl8812au.git to redownload the files.
  • cd rt*
  • Then I decided to update everything just to be sure:

    • sudo apt-get update
    • sudo apt-get install bc mokutil build-essential libelf-dev linux-headers-`uname -r`
    • sudo apt-get upgrade
  • Then, I did git checkout 63cf0b4 to set it to the known working version, and a git status just to be sure there were no changed files.
  • Ran sudo make, and then sudo make install.
  • Finally, sudo service NetworkManager restart, and then I plugged in the USB adapter and it worked.

Hi I tried the steps which you mentioned exactly in the same way still it is not working

Here are the part of the output of dmesg ->

usb 1-1: new high-speed USB device number 2 using ehci-pci [ 124.485127] usb 1-1: New USB device found, idVendor=2357, idProduct=0120, bcdDevice= 2.00 [ 124.485131] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 124.485132] usb 1-1: Product: 802.11ac WLAN Adapter [ 124.485132] usb 1-1: Manufacturer: Realtek [ 124.485133] usb 1-1: SerialNumber: 00e04c000001 [ 125.061910] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 125.068207] Loaded X.509 cert 'benh@debian.org: 577e021cb980e0e820821ba7b54b4961b8b4fadf' [ 125.068296] Loaded X.509 cert 'romain.perier@gmail.com: 3abbc6ec146e09d1b6016ab9d6cf71dd233f0328' [ 125.068376] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 125.068455] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600' [ 125.074458] platform regulatory.0: firmware: direct-loading firmware regulatory.db [ 125.075875] platform regulatory.0: firmware: direct-loading firmware regulatory.db.p7s [ 125.080921] 88XXau: loading out-of-tree module taints kernel. [ 125.080950] 88XXau: module verification failed: signature and/or required key missing - tainting kernel [ 130.148611] usb 1-1: 88XXau 5c:62:8b:76:4d:ea hw_info[107] [ 130.202117] usbcore: registered new interface driver rtl88XXau [ 162.008579] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 162.008584] #PF: supervisor read access in kernel mode [ 162.008586] #PF: error_code(0x0000) - not-present page [ 162.008587] PGD 0 P4D 0 [ 162.008588] Oops: 0000 [#1] PREEMPT SMP NOPTI [ 162.008591] CPU: 6 PID: 11 Comm: kworker/u16:0 Tainted: G W OE 6.6.15-amd64 #1 Kali 6.6.15-2kali1 [ 162.008593] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006 [ 162.008613] Workqueue: cfg80211 cfg80211_event_work [cfg80211] [ 162.008658] RIP: 0010:cfg80211_connect_result+0x325/0x920 [cfg80211] [ 162.008689] Code: f6 74 1e 83 f9 0e 0f b7 d0 8d 79 01 40 0f 95 c6 48 0f a3 ca 0f 82 af 01 00 00 89 f9 66 85 c0 75 dd 41 80 8c 24 cc 00 00 00 01 <41> 8b 06 4c 89 e9 31 d2 41 89 84 24 c0 03 00 00 41 0f b7 46 04 66 [ 162.008690] RSP: 0018:ffffa57f00063d90 EFLAGS: 00010202 [ 162.008691] RAX: 0000000000000000 RBX: ffff8c7502742018 RCX: 0000000000000001 [ 162.008693] RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8c750db98f00 [ 162.008693] RBP: ffffa57f00063de0 R08: 0000000000000000 R09: 0000000000000000 [ 162.008694] R10: 0000000000000002 R11: 0000000000000000 R12: ffff8c750db98800 [ 162.008695] R13: ffff8c750db98c30 R14: 0000000000000000 R15: 0000000000000001 [ 162.008696] FS: 0000000000000000(0000) GS:ffff8c75d2780000(0000) knlGS:0000000000000000 [ 162.008697] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 162.008698] CR2: 0000000000000000 CR3: 000000010d550000 CR4: 00000000000106e0 [ 162.008699] Call Trace: [ 162.008702] [ 162.008703] ? die+0x23/0x70 [ 162.008709] ? page_fault_oops+0x171/0x4e0 [ 162.008713] ? exc_page_fault+0x7f/0x180 [ 162.008716] ? asm_exc_page_fault+0x26/0x30 [ 162.008719] ? cfg80211_connect_result+0x325/0x920 [cfg80211] [ 162.008747] ? cfg80211_process_wdev_events+0x84/0x1c0 [cfg80211] [ 162.008768] cfg80211_process_wdev_events+0x84/0x1c0 [cfg80211] [ 162.008790] cfg80211_process_rdev_events+0x2a/0x40 [cfg80211] [ 162.008811] cfg80211_event_work+0x29/0x40 [cfg80211] [ 162.008829] process_one_work+0x171/0x340 [ 162.008832] worker_thread+0x27b/0x3a0 [ 162.008834] ? pfx_worker_thread+0x10/0x10 [ 162.008835] kthread+0xe5/0x120 [ 162.008839] ? __pfx_kthread+0x10/0x10 [ 162.008841] ret_from_fork+0x31/0x50 [ 162.008844] ? __pfx_kthread+0x10/0x10 [ 162.008846] ret_from_fork_asm+0x1b/0x30 [ 162.008850] [ 162.008850] Modules linked in: 88XXau(OE) cfg80211 snd_seq_dummy snd_hrtimer snd_seq snd_seq_device rfkill qrtr vboxsf snd_intel8x0 snd_ac97_codec intel_rapl_msr ac97_bus intel_rapl_common snd_pcm intel_uncore_frequency_common snd_timer intel_pmc_core rapl snd soundcore joydev vboxguest pcspkr ac sunrpc sg serio_raw evdev binfmt_misc loop dm_mod configfs efi_pstore nfnetlink ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic hid_generic usbhid hid sd_mod t10_pi crc32_pclmul crc64_rocksoft_generic crc32c_intel crc64_rocksoft crc_t10dif sr_mod crct10dif_generic cdrom crct10dif_pclmul ghash_clmulni_intel crc64 crct10dif_common sha512_ssse3 ata_generic ahci sha256_ssse3 libahci sha1_ssse3 ata_piix ohci_pci vboxvideo libata drm_vram_helper ohci_hcd drm_ttm_helper ehci_pci ttm aesni_intel ehci_hcd scsi_mod drm_kms_helper crypto_simd usbcore video cryptd drm psmouse e1000 scsi_common i2c_piix4 usb_common battery wmi button [ 162.008891] CR2: 0000000000000000

rajatkashyap47586 commented 5 months ago
  • make dkms_install

Hey I tried this as well but when I done with the steps you mentioned it works well but when I shutdown and open the system again I get the same error

[ 56.644359] usbcore: registered new interface driver rtl88XXau [ 87.985508] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 87.985514] #PF: supervisor read access in kernel mode [ 87.985515] #PF: error_code(0x0000) - not-present page

This causing my whole kali system freeze after some couple of minutes.

cblknittights commented 5 months ago

This was a "rebuild" of an old laptop for me... so I just wiped it clean since the install worked in the live USB...and did the following

git clone (repo listed in readme.md)

git checkout 63cf0b4

sudo make dkms_install

Plugged in the device, picked the AP.. done... No issues since.

This was on Kubuntu 24.04 ESR using 6.8.0 kernel.

Mefist0 commented 5 months ago

Same here. Huge thanks to everybody who suggested the solution with git checkout 63cf0b4 ! make dkms_install takes too long, so I used make && sudo make install approach.

cblknittights commented 5 months ago

Here is some more possible info the issue(s) with latest v. 63cf0b4 branch

Wireless DOES WORK using this device on 63cf0b4, but I get this in dmesg on bootup:


[   94.785789] ------------[ cut here ]------------
[   94.785800] UBSAN: array-index-out-of-bounds in /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_wlan_util.c:1905:48
[   94.785812] index 1 is out of range for type 'u8 [1]'
[   94.785818] CPU: 0 PID: 0 Comm: swapper/0 Tainted: P           OE      6.8.0-31-generic #31-Ubuntu
[   94.785825] Hardware name: Dell Inc. Inspiron 1470/0M7CYJ, BIOS A03 10/19/2009
[   94.785828] Call Trace:
[   94.785833]  <IRQ>
[   94.785839]  dump_stack_lvl+0x48/0x70
[   94.785856]  dump_stack+0x10/0x20
[   94.785863]  __ubsan_handle_out_of_bounds+0xc6/0x110
[   94.785872]  HT_caps_handler+0x339/0x350 [88XXau]
[   94.786133]  OnAssocRsp+0x222/0x290 [88XXau]
[   94.786349]  mgt_dispatcher+0x181/0x250 [88XXau]
[   94.786558]  validate_recv_mgnt_frame+0x203/0x3f0 [88XXau]
[   94.786725]  validate_recv_frame+0x146/0x1e0 [88XXau]
[   94.786725]  recv_func+0x50/0x2e0 [88XXau]
[   94.786725]  pre_recv_entry+0x59/0x140 [88XXau]
[   94.786725]  recvbuf2recvframe+0x4b/0x1e0 [88XXau]
[   94.786725]  usb_recv_tasklet+0x54/0x100 [88XXau]
[   94.786725]  tasklet_action_common.isra.0+0xfd/0x1e0
[   94.786725]  tasklet_action+0x22/0x30
[   94.786725]  __do_softirq+0xe1/0x363
[   94.786725]  ? ioapic_ack_level+0x57/0x140
[   94.786725]  __irq_exit_rcu+0xd7/0x100
[   94.786725]  irq_exit_rcu+0xe/0x20
[   94.786725]  common_interrupt+0xa4/0xb0
[   94.786725]  </IRQ>
[   94.786725]  <TASK>
[   94.786725]  asm_common_interrupt+0x27/0x40
[   94.786725] RIP: 0010:cpuidle_enter_state+0xda/0x730
[   94.786725] Code: d2 f6 fe e8 38 ee ff ff 8b 53 04 49 89 c7 0f 1f 44 00 00 31 ff e8 f6 69 f5 fe 80 7d d0 00 0f 85 61 02 00 00 fb 0f 1f 44 00 00 <45> 85 f6 0f 88 f7 01 00 00 4d 63 ee 49 83 fd 0a 0f 83 17 05 00 00
[   94.786725] RSP: 0000:ffffffffb2e03db8 EFLAGS: 00000246
[   94.786725] RAX: 0000000000000000 RBX: ffff9524f7e40810 RCX: 0000000000000000
[   94.786725] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[   94.786725] RBP: ffffffffb2e03e08 R08: 0000000000000000 R09: 0000000000000000
[   94.786725] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffffb30e5ba0
[   94.786725] R13: 0000000000000003 R14: 0000000000000003 R15: 0000001611ab5026
[   94.786725]  ? cpuidle_enter_state+0x33c/0x730
[   94.786725]  ? finish_task_switch.isra.0+0x93/0x300
[   94.786725]  cpuidle_enter+0x2e/0x50
[   94.786725]  call_cpuidle+0x23/0x60
[   94.786725]  cpuidle_idle_call+0x11d/0x190
[   94.786725]  do_idle+0x87/0xf0
[   94.786725]  cpu_startup_entry+0x2a/0x30
[   94.786725]  rest_init+0xde/0x100
[   94.786725]  ? acpi_enable_subsystem+0xe6/0x2a0
[   94.786725]  ? static_key_disable+0x1f/0x30
[   94.786725]  arch_call_rest_init+0xe/0x30
[   94.786725]  start_kernel+0x354/0x450
[   94.786725]  x86_64_start_reservations+0x18/0x30
[   94.786725]  x86_64_start_kernel+0xbf/0x110
[   94.786725]  secondary_startup_64_no_verify+0x184/0x18b
[   94.786725]  </TASK>
[   94.788414] ---[ end trace ]---
[   94.788419] ------------[ cut here ]------------
[   94.788421] UBSAN: array-index-out-of-bounds in /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_wlan_util.c:1910:75
[   94.788428] index 2 is out of range for type 'u8 [1]'
[   94.788433] CPU: 0 PID: 0 Comm: swapper/0 Tainted: P           OE      6.8.0-31-generic #31-Ubuntu
[   94.788439] Hardware name: Dell Inc. Inspiron 1470/0M7CYJ, BIOS A03 10/19/2009
[   94.788442] Call Trace:
[   94.788445]  <IRQ>
[   94.788448]  dump_stack_lvl+0x48/0x70
[   94.788457]  dump_stack+0x10/0x20
[   94.788463]  __ubsan_handle_out_of_bounds+0xc6/0x110
[   94.788471]  HT_caps_handler+0x205/0x350 [88XXau]
[   94.788713]  OnAssocRsp+0x222/0x290 [88XXau]
[   94.788931]  mgt_dispatcher+0x181/0x250 [88XXau]
[   94.789140]  validate_recv_mgnt_frame+0x203/0x3f0 [88XXau]
[   94.789384]  validate_recv_frame+0x146/0x1e0 [88XXau]
[   94.789384]  recv_func+0x50/0x2e0 [88XXau]
[   94.789384]  pre_recv_entry+0x59/0x140 [88XXau]
[   94.789384]  recvbuf2recvframe+0x4b/0x1e0 [88XXau]
[   94.789384]  usb_recv_tasklet+0x54/0x100 [88XXau]
[   94.789384]  tasklet_action_common.isra.0+0xfd/0x1e0
[   94.789384]  tasklet_action+0x22/0x30
[   94.789384]  __do_softirq+0xe1/0x363
[   94.789384]  ? ioapic_ack_level+0x57/0x140
[   94.789384]  __irq_exit_rcu+0xd7/0x100
[   94.789384]  irq_exit_rcu+0xe/0x20
[   94.789384]  common_interrupt+0xa4/0xb0
[   94.789384]  </IRQ>
[   94.789384]  <TASK>
[   94.789384]  asm_common_interrupt+0x27/0x40
[   94.789384] RIP: 0010:cpuidle_enter_state+0xda/0x730
[   94.789384] Code: d2 f6 fe e8 38 ee ff ff 8b 53 04 49 89 c7 0f 1f 44 00 00 31 ff e8 f6 69 f5 fe 80 7d d0 00 0f 85 61 02 00 00 fb 0f 1f 44 00 00 <45> 85 f6 0f 88 f7 01 00 00 4d 63 ee 49 83 fd 0a 0f 83 17 05 00 00
[   94.789384] RSP: 0000:ffffffffb2e03db8 EFLAGS: 00000246
[   94.789384] RAX: 0000000000000000 RBX: ffff9524f7e40810 RCX: 0000000000000000
[   94.789384] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[   94.789384] RBP: ffffffffb2e03e08 R08: 0000000000000000 R09: 0000000000000000
[   94.789384] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffffb30e5ba0
[   94.789384] R13: 0000000000000003 R14: 0000000000000003 R15: 0000001611ab5026
[   94.789384]  ? cpuidle_enter_state+0x33c/0x730
[   94.789384]  ? finish_task_switch.isra.0+0x93/0x300
[   94.789384]  cpuidle_enter+0x2e/0x50
[   94.789384]  call_cpuidle+0x23/0x60
[   94.789384]  cpuidle_idle_call+0x11d/0x190
[   94.789384]  do_idle+0x87/0xf0
[   94.789384]  cpu_startup_entry+0x2a/0x30
[   94.789384]  rest_init+0xde/0x100
[   94.789384]  ? acpi_enable_subsystem+0xe6/0x2a0
[   94.789384]  ? static_key_disable+0x1f/0x30
[   94.789384]  arch_call_rest_init+0xe/0x30
[   94.789384]  start_kernel+0x354/0x450
[   94.789384]  x86_64_start_reservations+0x18/0x30
[   94.789384]  x86_64_start_kernel+0xbf/0x110
[   94.789384]  secondary_startup_64_no_verify+0x184/0x18b
[   94.789384]  </TASK>
[   94.790964] ---[ end trace ]---
[   94.790968] ------------[ cut here ]------------
[   94.790971] UBSAN: array-index-out-of-bounds in /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_wlan_util.c:1916:76
[   94.790978] index 2 is out of range for type 'u8 [1]'
[   94.790983] CPU: 0 PID: 0 Comm: swapper/0 Tainted: P           OE      6.8.0-31-generic #31-Ubuntu
[   94.790988] Hardware name: Dell Inc. Inspiron 1470/0M7CYJ, BIOS A03 10/19/2009
[   94.790991] Call Trace:
[   94.790994]  <IRQ>
[   94.790998]  dump_stack_lvl+0x48/0x70
[   94.791006]  dump_stack+0x10/0x20
[   94.791013]  __ubsan_handle_out_of_bounds+0xc6/0x110
[   94.791021]  HT_caps_handler+0x253/0x350 [88XXau]
[   94.791260]  OnAssocRsp+0x222/0x290 [88XXau]
[   94.791477]  mgt_dispatcher+0x181/0x250 [88XXau]
[   94.791686]  validate_recv_mgnt_frame+0x203/0x3f0 [88XXau]
[   94.791941]  validate_recv_frame+0x146/0x1e0 [88XXau]
[   94.791951]  recv_func+0x50/0x2e0 [88XXau]
[   94.791951]  pre_recv_entry+0x59/0x140 [88XXau]
[   94.791951]  recvbuf2recvframe+0x4b/0x1e0 [88XXau]
[   94.791951]  usb_recv_tasklet+0x54/0x100 [88XXau]
[   94.791951]  tasklet_action_common.isra.0+0xfd/0x1e0
[   94.791951]  tasklet_action+0x22/0x30
[   94.791951]  __do_softirq+0xe1/0x363
[   94.791951]  ? ioapic_ack_level+0x57/0x140
[   94.791951]  __irq_exit_rcu+0xd7/0x100
[   94.791951]  irq_exit_rcu+0xe/0x20
[   94.791951]  common_interrupt+0xa4/0xb0
[   94.791951]  </IRQ>
[   94.791951]  <TASK>
[   94.791951]  asm_common_interrupt+0x27/0x40
[   94.791951] RIP: 0010:cpuidle_enter_state+0xda/0x730
[   94.791951] Code: d2 f6 fe e8 38 ee ff ff 8b 53 04 49 89 c7 0f 1f 44 00 00 31 ff e8 f6 69 f5 fe 80 7d d0 00 0f 85 61 02 00 00 fb 0f 1f 44 00 00 <45> 85 f6 0f 88 f7 01 00 00 4d 63 ee 49 83 fd 0a 0f 83 17 05 00 00
[   94.791951] RSP: 0000:ffffffffb2e03db8 EFLAGS: 00000246
[   94.791951] RAX: 0000000000000000 RBX: ffff9524f7e40810 RCX: 0000000000000000
[   94.791951] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[   94.791951] RBP: ffffffffb2e03e08 R08: 0000000000000000 R09: 0000000000000000
[   94.791951] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffffb30e5ba0
[   94.791951] R13: 0000000000000003 R14: 0000000000000003 R15: 0000001611ab5026
[   94.791951]  ? cpuidle_enter_state+0x33c/0x730
[   94.791951]  ? finish_task_switch.isra.0+0x93/0x300
[   94.791951]  cpuidle_enter+0x2e/0x50
[   94.791951]  call_cpuidle+0x23/0x60
[   94.791951]  cpuidle_idle_call+0x11d/0x190
[   94.791951]  do_idle+0x87/0xf0
[   94.791951]  cpu_startup_entry+0x2a/0x30
[   94.791951]  rest_init+0xde/0x100
[   94.791951]  ? acpi_enable_subsystem+0xe6/0x2a0
[   94.791951]  ? static_key_disable+0x1f/0x30
[   94.791951]  arch_call_rest_init+0xe/0x30
[   94.791951]  start_kernel+0x354/0x450
[   94.791951]  x86_64_start_reservations+0x18/0x30
[   94.791951]  x86_64_start_kernel+0xbf/0x110
[   94.791951]  secondary_startup_64_no_verify+0x184/0x18b
[   94.791951]  </TASK>
[   94.793491] ---[ end trace ]---
[   94.793495] ------------[ cut here ]------------
[   94.793497] UBSAN: array-index-out-of-bounds in /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_wlan_util.c:1919:34
[   94.793504] index 2 is out of range for type 'u8 [1]'
[   94.793509] CPU: 0 PID: 0 Comm: swapper/0 Tainted: P           OE      6.8.0-31-generic #31-Ubuntu
[   94.793514] Hardware name: Dell Inc. Inspiron 1470/0M7CYJ, BIOS A03 10/19/2009
[   94.793517] Call Trace:
[   94.793520]  <IRQ>
[   94.793523]  dump_stack_lvl+0x48/0x70
[   94.793532]  dump_stack+0x10/0x20
[   94.793538]  __ubsan_handle_out_of_bounds+0xc6/0x110
[   94.793546]  HT_caps_handler+0x273/0x350 [88XXau]
[   94.793785]  OnAssocRsp+0x222/0x290 [88XXau]
[   94.794001]  mgt_dispatcher+0x181/0x250 [88XXau]
[   94.794211]  validate_recv_mgnt_frame+0x203/0x3f0 [88XXau]
[   94.794468]  validate_recv_frame+0x146/0x1e0 [88XXau]
[   94.794488]  recv_func+0x50/0x2e0 [88XXau]
[   94.794488]  pre_recv_entry+0x59/0x140 [88XXau]
[   94.794488]  recvbuf2recvframe+0x4b/0x1e0 [88XXau]
[   94.794488]  usb_recv_tasklet+0x54/0x100 [88XXau]
[   94.794488]  tasklet_action_common.isra.0+0xfd/0x1e0
[   94.794488]  tasklet_action+0x22/0x30
[   94.794488]  __do_softirq+0xe1/0x363
[   94.794488]  ? ioapic_ack_level+0x57/0x140
[   94.794488]  __irq_exit_rcu+0xd7/0x100
[   94.794488]  irq_exit_rcu+0xe/0x20
[   94.794488]  common_interrupt+0xa4/0xb0
[   94.794488]  </IRQ>
[   94.794488]  <TASK>
[   94.794488]  asm_common_interrupt+0x27/0x40
[   94.794488] RIP: 0010:cpuidle_enter_state+0xda/0x730
[   94.794488] Code: d2 f6 fe e8 38 ee ff ff 8b 53 04 49 89 c7 0f 1f 44 00 00 31 ff e8 f6 69 f5 fe 80 7d d0 00 0f 85 61 02 00 00 fb 0f 1f 44 00 00 <45> 85 f6 0f 88 f7 01 00 00 4d 63 ee 49 83 fd 0a 0f 83 17 05 00 00
[   94.794488] RSP: 0000:ffffffffb2e03db8 EFLAGS: 00000246
[   94.794488] RAX: 0000000000000000 RBX: ffff9524f7e40810 RCX: 0000000000000000
[   94.794488] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[   94.794488] RBP: ffffffffb2e03e08 R08: 0000000000000000 R09: 0000000000000000
[   94.794488] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffffb30e5ba0
[   94.794488] R13: 0000000000000003 R14: 0000000000000003 R15: 0000001611ab5026
[   94.794488]  ? cpuidle_enter_state+0x33c/0x730
[   94.794488]  ? finish_task_switch.isra.0+0x93/0x300
[   94.794488]  cpuidle_enter+0x2e/0x50
[   94.794488]  call_cpuidle+0x23/0x60
[   94.794488]  cpuidle_idle_call+0x11d/0x190
[   94.794488]  do_idle+0x87/0xf0
[   94.794488]  cpu_startup_entry+0x2a/0x30
[   94.794488]  rest_init+0xde/0x100
[   94.794488]  ? acpi_enable_subsystem+0xe6/0x2a0
[   94.794488]  ? static_key_disable+0x1f/0x30
[   94.794488]  arch_call_rest_init+0xe/0x30
[   94.794488]  start_kernel+0x354/0x450
[   94.794488]  x86_64_start_reservations+0x18/0x30
[   94.794488]  x86_64_start_kernel+0xbf/0x110
[   94.794488]  secondary_startup_64_no_verify+0x184/0x18b
[   94.794488]  </TASK>
[   94.796032] ---[ end trace ]---
[  106.642651] warning: `kded5' uses wireless extensions which will stop working for Wi-Fi 7 hardware; use nl80211
[  376.699403] perf: interrupt took too long (2514 > 2500), lowering kernel.perf_event_max_sample_rate to 79000
koku17 commented 5 months ago

I had same issue in Archer T2U Nano

$ lsusb | cut -d ":" -f 3 | grep Archer
0xxx TP-Link AC600 wireless Realtek RTL8811AU [Archer T2U Nano]

I have partial solution discussed in issue #1155
After changing to commit d8ad927
I haven't got any ---[ cut here ]--- in dmesg

I have a got a temporary solution, but not good for bleeding edge kernels

Get all the commits done before

$ git log --oneline > ../rtl8812au.commits

Grab a cofee and read them and select what you want :

$ less git ../rtl*.commits

Replace <commit> with what you selected,

$ git reset <commit> --hard
HEAD is now at d8ad927 Fix build on 6.x kernels.

In my case I have selected d8ad927

$ git reset d8ad927 --hard

Remove the module if exist (for more info see installation instructions)

$ cd rtl* ; sudo make dkms_remove

After that follow installation instructions.

 0 0      ---- I didn't wonder git had this feature ----
\___/

It just works fine for 6.x kernels as confirmed by others in issue #1155

achille54 commented 5 months ago

Hi, i've tried to use git checkout 63cf0b4 but is not working.

the steps i've done: 1) git clone https://github.com/aircrack-ng/rtl8812au.git 2) cd rtl8812au/ 3) git checkout 63cf0b4 4) make 5) sudo make install

6.5.0-35-generic #35~22.04.1-Ubuntu

running the command to check if it is present: find /lib/modules/uname -r/ -name "88XXau.ko" /lib/modules/6.5.0-35-generic/kernel/drivers/net/wireless/88XXau.ko

can someone help me?

koku17 commented 5 months ago

You can try to remove the existing driver

cd rtl*/ ; sudo dkms_remove

Then select the git commit version

git reset d8ad927 --hard

Then try to install

make dkms_install
Chandan-thakur commented 5 months ago

The trick is to download the driver into /usr/src cause when dkms tries to build the firmware it looks for the source code in that folder. Here is the complete command:

cd /usr/src sudo git clone https://github.com/aircrack-ng/rtl8812au.git cd /usr/src/rtl8812au sudo git checkout 63cf0b4 sudo make dkms_install

Note: if you have previous failed attempt, uninstall it first:

cd rtl8812au sudo make clean sudo make dkms_remove sudo dkms remove -m realtek-rtl88xxau -v 5.6.4.2~20240509 --all sudo dkms remove -m rtl8812au -v 5.6.4.2 --all

alb3rt-on commented 5 months ago

If that doesn't work and you're using Virtual Machine, check out this fix that worked for me.

https://github.com/aircrack-ng/rtl8812au/issues/1157#issuecomment-2176550393

rajatkashyap47586 commented 5 months ago

I tried all mentioned solution but nothing works for me.

cblknittights commented 5 months ago

I tried all mentioned solution but nothing works for me.

Try this:

Get a LIVE ISO of your current distro, burn to USB.. Boot to the LIVE USB.

Then do the install process:

sudo apt-get install git build-essential

git clone (repo listed in readme.md)

cd rtl***

git checkout 63cf0b4

sudo make dkms_install

Plug in the device, or unplug, replug if you left it in...

IF it WORKS IN THE LIVE USB test.. Then this is a issue with YOUR INSTALL. Likely leftover earlier versions of the code or something..

IF it does NOT WORK in the live USB, then its likely a hardware issue with the device you have.

mazzi commented 5 months ago

With 63cf0b4 in Ubuntu 24.04 LTS (GNU/Linux 6.8.0-35-generic x86_64) worked for me. Some array-index-out-of-bounds errors in dmesg but the board and wifi configuration worked. I have some doubts about the ping times but I need to test. So far the connection drops via ssh to the host with the device. Thank you very much for this driver and the tips.

mazzi commented 5 months ago

Follow up to my comment, debug info on dmesg

[    8.003646] ------------[ cut here ]------------
[    8.003650] UBSAN: array-index-out-of-bounds in /root/rtl8812au/core/rtw_wlan_util.c:1905:48
[    8.003654] index 1 is out of range for type 'u8 [1]'
[    8.003656] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G           OE      6.8.0-35-generic #35-Ubuntu
[    8.003659] Hardware name: Apple Inc. Macmini7,1/Mac-35C5E08120C7EEAF, BIOS 431.140.6.0.0 06/13/2021
[    8.003661] Call Trace:
[    8.003666]  <IRQ>
[    8.003669]  dump_stack_lvl+0x48/0x70
[    8.003684]  dump_stack+0x10/0x20
[    8.003687]  __ubsan_handle_out_of_bounds+0xc6/0x110
[    8.003693]  HT_caps_handler+0x339/0x350 [88XXau]
[    8.003822]  OnAssocRsp+0x222/0x290 [88XXau]
[    8.003924]  mgt_dispatcher+0x181/0x250 [88XXau]
[    8.004013]  validate_recv_mgnt_frame+0x203/0x3f0 [88XXau]
[    8.006420]  validate_recv_frame+0x146/0x1e0 [88XXau]
[    8.006537]  recv_func+0x50/0x2e0 [88XXau]
[    8.006638]  pre_recv_entry+0x59/0x140 [88XXau]
[    8.006737]  recvbuf2recvframe+0x4b/0x1e0 [88XXau]
[    8.006847]  usb_recv_tasklet+0x54/0x100 [88XXau]
[    8.006967]  tasklet_action_common.isra.0+0xfd/0x1e0
[    8.006973]  tasklet_action+0x22/0x30
[    8.006976]  __do_softirq+0xe1/0x363
[    8.006981]  __irq_exit_rcu+0xd7/0x100
[    8.006984]  irq_exit_rcu+0xe/0x20
[    8.006987]  common_interrupt+0xa4/0xb0
[    8.006992]  </IRQ>
[    8.006994]  <TASK>
[    8.006996]  asm_common_interrupt+0x27/0x40
[    8.007001] RIP: 0010:cpuidle_enter_state+0xda/0x730
[    8.007006] Code: b2 f6 fe e8 38 ee ff ff 8b 53 04 49 89 c7 0f 1f 44 00 00 31 ff e8 c6 4a f5 fe 80 7d d0 00 0f 85 61 02 00 00 fb 0f 1f 44 00 00 <45> 85 f6 0f 88 f7 01 00 00 4d 63 ee 49 83 fd 0a 0f 83 17 05 00 00
[    8.007009] RSP: 0018:ffffb0ca000dfe18 EFLAGS: 00000246
[    8.007013] RAX: 0000000000000000 RBX: ffffd0c9ffd1bdf0 RCX: 0000000000000000
[    8.007015] RDX: 0000000000000002 RSI: 0000000000000000 RDI: 0000000000000000
[    8.007017] RBP: ffffb0ca000dfe68 R08: 0000000000000000 R09: 0000000000000000
[    8.007019] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff9c0e5bc0
[    8.007021] R13: 0000000000000003 R14: 0000000000000003 R15: 00000001dd0d23fb
[    8.007026]  ? cpuidle_enter_state+0xca/0x730
[    8.007029]  ? finish_task_switch.isra.0+0x93/0x300
[    8.007034]  cpuidle_enter+0x2e/0x50
[    8.007040]  call_cpuidle+0x23/0x60
[    8.007044]  cpuidle_idle_call+0x11d/0x190
[    8.007048]  do_idle+0x87/0xf0
[    8.007052]  cpu_startup_entry+0x2a/0x30
[    8.007056]  start_secondary+0x129/0x160
[    8.007063]  secondary_startup_64_no_verify+0x184/0x18b
[    8.007070]  </TASK>
[    8.007089] ---[ end trace ]---
[    8.007092] ------------[ cut here ]------------
[    8.007093] UBSAN: array-index-out-of-bounds in /root/rtl8812au/core/rtw_wlan_util.c:1910:75
[    8.008260] index 2 is out of range for type 'u8 [1]'
[    8.008264] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G           OE      6.8.0-35-generic #35-Ubuntu
[    8.008267] Hardware name: Apple Inc. Macmini7,1/Mac-35C5E08120C7EEAF, BIOS 431.140.6.0.0 06/13/2021
[    8.008268] Call Trace:
[    8.008270]  <IRQ>
[    8.008273]  dump_stack_lvl+0x48/0x70
[    8.008281]  dump_stack+0x10/0x20
[    8.008285]  __ubsan_handle_out_of_bounds+0xc6/0x110
[    8.008290]  HT_caps_handler+0x205/0x350 [88XXau]
[    8.009458]  OnAssocRsp+0x222/0x290 [88XXau]
[    8.009529]  mgt_dispatcher+0x181/0x250 [88XXau]
[    8.009604]  validate_recv_mgnt_frame+0x203/0x3f0 [88XXau]
[    8.009708]  validate_recv_frame+0x146/0x1e0 [88XXau]
[    8.009811]  recv_func+0x50/0x2e0 [88XXau]
[    8.009903]  pre_recv_entry+0x59/0x140 [88XXau]
[    8.010004]  recvbuf2recvframe+0x4b/0x1e0 [88XXau]
[    8.010115]  usb_recv_tasklet+0x54/0x100 [88XXau]
[    8.010229]  tasklet_action_common.isra.0+0xfd/0x1e0
[    8.010236]  tasklet_action+0x22/0x30
[    8.010239]  __do_softirq+0xe1/0x363
[    8.010244]  __irq_exit_rcu+0xd7/0x100
[    8.010247]  irq_exit_rcu+0xe/0x20
[    8.010250]  common_interrupt+0xa4/0xb0
[    8.010256]  </IRQ>
[    8.010257]  <TASK>
[    8.010259]  asm_common_interrupt+0x27/0x40
[    8.010264] RIP: 0010:cpuidle_enter_state+0xda/0x730
[    8.010268] Code: b2 f6 fe e8 38 ee ff ff 8b 53 04 49 89 c7 0f 1f 44 00 00 31 ff e8 c6 4a f5 fe 80 7d d0 00 0f 85 61 02 00 00 fb 0f 1f 44 00 00 <45> 85 f6 0f 88 f7 01 00 00 4d 63 ee 49 83 fd 0a 0f 83 17 05 00 00
[    8.010272] RSP: 0018:ffffb0ca000dfe18 EFLAGS: 00000246
[    8.010275] RAX: 0000000000000000 RBX: ffffd0c9ffd1bdf0 RCX: 0000000000000000
[    8.010277] RDX: 0000000000000002 RSI: 0000000000000000 RDI: 0000000000000000
[    8.010279] RBP: ffffb0ca000dfe68 R08: 0000000000000000 R09: 0000000000000000
[    8.010281] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff9c0e5bc0
[    8.010283] R13: 0000000000000003 R14: 0000000000000003 R15: 00000001dd0d23fb
[    8.010288]  ? cpuidle_enter_state+0xca/0x730
[    8.010290]  ? finish_task_switch.isra.0+0x93/0x300
[    8.010295]  cpuidle_enter+0x2e/0x50
[    8.010301]  call_cpuidle+0x23/0x60
[    8.010304]  cpuidle_idle_call+0x11d/0x190
[    8.010309]  do_idle+0x87/0xf0
[    8.010313]  cpu_startup_entry+0x2a/0x30
[    8.010316]  start_secondary+0x129/0x160
[    8.010322]  secondary_startup_64_no_verify+0x184/0x18b
[    8.010329]  </TASK>
[    8.010343] ---[ end trace ]---
[    8.010345] ------------[ cut here ]------------
[    8.010346] UBSAN: array-index-out-of-bounds in /root/rtl8812au/core/rtw_wlan_util.c:1916:76
[    8.011557] index 2 is out of range for type 'u8 [1]'
[    8.012624] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G           OE      6.8.0-35-generic #35-Ubuntu
[    8.012629] Hardware name: Apple Inc. Macmini7,1/Mac-35C5E08120C7EEAF, BIOS 431.140.6.0.0 06/13/2021
[    8.012631] Call Trace:
[    8.012633]  <IRQ>
[    8.012636]  dump_stack_lvl+0x48/0x70
[    8.012646]  dump_stack+0x10/0x20
[    8.012651]  __ubsan_handle_out_of_bounds+0xc6/0x110
[    8.012657]  HT_caps_handler+0x253/0x350 [88XXau]
[    8.012766]  OnAssocRsp+0x222/0x290 [88XXau]
[    8.012856]  mgt_dispatcher+0x181/0x250 [88XXau]
[    8.012941]  validate_recv_mgnt_frame+0x203/0x3f0 [88XXau]
[    8.013039]  validate_recv_frame+0x146/0x1e0 [88XXau]
[    8.013138]  recv_func+0x50/0x2e0 [88XXau]
[    8.013243]  pre_recv_entry+0x59/0x140 [88XXau]
[    8.013351]  recvbuf2recvframe+0x4b/0x1e0 [88XXau]
[    8.013465]  usb_recv_tasklet+0x54/0x100 [88XXau]
[    8.013583]  tasklet_action_common.isra.0+0xfd/0x1e0
[    8.013590]  tasklet_action+0x22/0x30
[    8.013593]  __do_softirq+0xe1/0x363
[    8.013598]  __irq_exit_rcu+0xd7/0x100
[    8.013602]  irq_exit_rcu+0xe/0x20
[    8.013604]  common_interrupt+0xa4/0xb0
[    8.013609]  </IRQ>
[    8.013610]  <TASK>
[    8.013612]  asm_common_interrupt+0x27/0x40
[    8.013617] RIP: 0010:cpuidle_enter_state+0xda/0x730
[    8.013623] Code: b2 f6 fe e8 38 ee ff ff 8b 53 04 49 89 c7 0f 1f 44 00 00 31 ff e8 c6 4a f5 fe 80 7d d0 00 0f 85 61 02 00 00 fb 0f 1f 44 00 00 <45> 85 f6 0f 88 f7 01 00 00 4d 63 ee 49 83 fd 0a 0f 83 17 05 00 00
[    8.013626] RSP: 0018:ffffb0ca000dfe18 EFLAGS: 00000246
[    8.013630] RAX: 0000000000000000 RBX: ffffd0c9ffd1bdf0 RCX: 0000000000000000
[    8.013632] RDX: 0000000000000002 RSI: 0000000000000000 RDI: 0000000000000000
[    8.013635] RBP: ffffb0ca000dfe68 R08: 0000000000000000 R09: 0000000000000000
[    8.013636] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff9c0e5bc0
[    8.013638] R13: 0000000000000003 R14: 0000000000000003 R15: 00000001dd0d23fb
[    8.013643]  ? cpuidle_enter_state+0xca/0x730
[    8.013646]  ? finish_task_switch.isra.0+0x93/0x300
[    8.013651]  cpuidle_enter+0x2e/0x50
[    8.013657]  call_cpuidle+0x23/0x60
[    8.013662]  cpuidle_idle_call+0x11d/0x190
[    8.013666]  do_idle+0x87/0xf0
[    8.013670]  cpu_startup_entry+0x2a/0x30
[    8.013674]  start_secondary+0x129/0x160
[    8.013679]  secondary_startup_64_no_verify+0x184/0x18b
[    8.013686]  </TASK>
[    8.013700] ---[ end trace ]---
[    8.113583] ------------[ cut here ]------------
[    8.113589] UBSAN: array-index-out-of-bounds in /root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:1677:110
[    8.114522] index 16 is out of range for type 'u8 [*]'
[    8.115414] CPU: 1 PID: 772 Comm: iwd Tainted: G           OE      6.8.0-35-generic #35-Ubuntu
[    8.115418] Hardware name: Apple Inc. Macmini7,1/Mac-35C5E08120C7EEAF, BIOS 431.140.6.0.0 06/13/2021
[    8.115420] Call Trace:
[    8.115423]  <TASK>
[    8.115426]  dump_stack_lvl+0x48/0x70
[    8.115435]  dump_stack+0x10/0x20
[    8.115437]  __ubsan_handle_out_of_bounds+0xc6/0x110
[    8.115441]  cfg80211_rtw_set_default_mgmt_key+0x2b64/0x4660 [88XXau]
[    8.115545]  cfg80211_rtw_set_default_mgmt_key+0x3032/0x4660 [88XXau]
[    8.115639]  nl80211_new_key+0x1da/0x380 [cfg80211]
[    8.115708]  genl_family_rcv_msg_doit+0xfa/0x160
[    8.115715]  genl_family_rcv_msg+0x184/0x250
[    8.115718]  ? __pfx_nl80211_pre_doit+0x10/0x10 [cfg80211]
[    8.115774]  ? __pfx_nl80211_new_key+0x10/0x10 [cfg80211]
[    8.115827]  ? __pfx_nl80211_post_doit+0x10/0x10 [cfg80211]
[    8.115879]  genl_rcv_msg+0x4c/0xb0
[    8.115882]  ? __pfx_genl_rcv_msg+0x10/0x10
[    8.115885]  netlink_rcv_skb+0x5d/0x110
[    8.115889]  genl_rcv+0x28/0x50
[    8.115891]  netlink_unicast+0x24d/0x390
[    8.115894]  netlink_sendmsg+0x214/0x470
[    8.115897]  __sys_sendto+0x21e/0x230
[    8.115902]  __x64_sys_sendto+0x24/0x40
[    8.115905]  x64_sys_call+0x1c33/0x25c0
[    8.115908]  do_syscall_64+0x7f/0x180
[    8.115912]  ? __x64_sys_epoll_wait+0x6f/0x110
[    8.115916]  ? syscall_exit_to_user_mode+0x86/0x260
[    8.115919]  ? do_syscall_64+0x8c/0x180
[    8.115922]  ? __fput_sync+0x1c/0x30
[    8.115925]  ? syscall_exit_to_user_mode+0x86/0x260
[    8.115927]  ? do_syscall_64+0x8c/0x180
[    8.115929]  ? do_syscall_64+0x8c/0x180
[    8.115932]  ? do_syscall_64+0x8c/0x180
[    8.115934]  ? common_interrupt+0x54/0xb0
[    8.115937]  entry_SYSCALL_64_after_hwframe+0x78/0x80
[    8.115941] RIP: 0033:0x7607d032bead
[    8.115958] Code: c3 ff ff ff ff 64 89 02 eb b9 0f 1f 00 f3 0f 1e fa 80 3d a5 f1 0d 00 00 41 89 ca 74 20 45 31 c9 45 31 c0 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 6b c3 66 2e 0f 1f 84 00 00 00 00 00 55 48 89
[    8.115960] RSP: 002b:00007ffd097ae568 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
[    8.115962] RAX: ffffffffffffffda RBX: 000062fa9680ca40 RCX: 00007607d032bead
[    8.115964] RDX: 0000000000000060 RSI: 000062fa9682d840 RDI: 0000000000000004
[    8.115965] RBP: 00007ffd097ae580 R08: 0000000000000000 R09: 0000000000000000
[    8.115966] R10: 0000000000000000 R11: 0000000000000246 R12: 000062fa9682e740
[    8.115967] R13: 00007ffd097ae5dc R14: 000062fa96816620 R15: 000062fa9680c7a0
[    8.115970]  </TASK>
[    8.115979] ---[ end trace ]---
[    8.115981] ------------[ cut here ]------------
[    8.115982] UBSAN: array-index-out-of-bounds in /root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:1678:110
[    8.117189] index 24 is out of range for type 'u8 [*]'
[    8.118015] CPU: 1 PID: 772 Comm: iwd Tainted: G           OE      6.8.0-35-generic #35-Ubuntu
[    8.118020] Hardware name: Apple Inc. Macmini7,1/Mac-35C5E08120C7EEAF, BIOS 431.140.6.0.0 06/13/2021
[    8.118022] Call Trace:
[    8.118023]  <TASK>
[    8.118025]  dump_stack_lvl+0x48/0x70
[    8.118031]  dump_stack+0x10/0x20
[    8.118035]  __ubsan_handle_out_of_bounds+0xc6/0x110
[    8.118041]  cfg80211_rtw_set_default_mgmt_key+0x2ba3/0x4660 [88XXau]
[    8.118142]  cfg80211_rtw_set_default_mgmt_key+0x3032/0x4660 [88XXau]
[    8.118229]  nl80211_new_key+0x1da/0x380 [cfg80211]
[    8.118283]  genl_family_rcv_msg_doit+0xfa/0x160
[    8.118288]  genl_family_rcv_msg+0x184/0x250
[    8.118291]  ? __pfx_nl80211_pre_doit+0x10/0x10 [cfg80211]
[    8.118340]  ? __pfx_nl80211_new_key+0x10/0x10 [cfg80211]
[    8.118389]  ? __pfx_nl80211_post_doit+0x10/0x10 [cfg80211]
[    8.118437]  genl_rcv_msg+0x4c/0xb0
[    8.118440]  ? __pfx_genl_rcv_msg+0x10/0x10
[    8.118443]  netlink_rcv_skb+0x5d/0x110
[    8.118446]  genl_rcv+0x28/0x50
[    8.118449]  netlink_unicast+0x24d/0x390
[    8.118452]  netlink_sendmsg+0x214/0x470
[    8.118455]  __sys_sendto+0x21e/0x230
[    8.118460]  __x64_sys_sendto+0x24/0x40
[    8.118462]  x64_sys_call+0x1c33/0x25c0
[    8.118465]  do_syscall_64+0x7f/0x180
[    8.118469]  ? __x64_sys_epoll_wait+0x6f/0x110
[    8.118473]  ? syscall_exit_to_user_mode+0x86/0x260
[    8.118476]  ? do_syscall_64+0x8c/0x180
[    8.118479]  ? __fput_sync+0x1c/0x30
[    8.118481]  ? syscall_exit_to_user_mode+0x86/0x260
[    8.118483]  ? do_syscall_64+0x8c/0x180
[    8.118486]  ? do_syscall_64+0x8c/0x180
[    8.118488]  ? do_syscall_64+0x8c/0x180
[    8.118491]  ? common_interrupt+0x54/0xb0
[    8.118494]  entry_SYSCALL_64_after_hwframe+0x78/0x80
[    8.118497] RIP: 0033:0x7607d032bead
[    8.118506] Code: c3 ff ff ff ff 64 89 02 eb b9 0f 1f 00 f3 0f 1e fa 80 3d a5 f1 0d 00 00 41 89 ca 74 20 45 31 c9 45 31 c0 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 6b c3 66 2e 0f 1f 84 00 00 00 00 00 55 48 89
[    8.118508] RSP: 002b:00007ffd097ae568 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
[    8.118511] RAX: ffffffffffffffda RBX: 000062fa9680ca40 RCX: 00007607d032bead
[    8.118512] RDX: 0000000000000060 RSI: 000062fa9682d840 RDI: 0000000000000004
[    8.118514] RBP: 00007ffd097ae580 R08: 0000000000000000 R09: 0000000000000000
[    8.118515] R10: 0000000000000000 R11: 0000000000000246 R12: 000062fa9682e740
[    8.118516] R13: 00007ffd097ae5dc R14: 000062fa96816620 R15: 000062fa9680c7a0
[    8.118518]  </TASK>
[    8.118519] ---[ end trace ]---
mazzi commented 5 months ago

Here is some more possible info the issue(s) with latest v. 63cf0b4 branch

Wireless DOES WORK using this device on 63cf0b4, but I get this in dmesg on bootup:

Do you get (DUP!) packets when you ping another host inside your WLAN?

rajatkashyap47586 commented 5 months ago

I tried all solution mentioned above nothing works yet.

Can someone please help

I'm using :- OS - Kali 6.8.11-1kali2 (2024-05-30) x86_64 GNU/Linux Container - Virtual Box (Version 7.0.18 r162988 (Qt5.15.2)) Wifi adaptor - TP-Link AC600

Also just an observation - When I delete the kali machine from virtual box and I reinstalled it again that for the first time wifi adaptor works perfectly fine post that when I turned the kali machine off and switch on again the issue again came.

The error message I can see from dmesg output

88XXau: loading out-of-tree module taints kernel. [ 369.641833] 88XXau: module verification failed: signature and/or required key missing - tainting kernel [ 375.488887] usb 1-1: 88XXau 5c:62:8b:76:4d:ea hw_info[107] [ 375.536102] usbcore: registered new interface driver rtl88XXau [ 408.101264] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 408.101272] #PF: supervisor read access in kernel mode [ 408.101275] #PF: error_code(0x0000) - not-present page

nuketech9 commented 5 months ago

Just want to thank everyone for their efforts in figuring this out and taking the time to put all these steps up. Even after changing to the latest v. [63cf0b4] branch it wouldn't work until I cloned to and installed from the /src/rtl8812au folder. That finally fixed it for me and continues to work after a reboot. I know just enough to be dangerous, I would have never figured this all out on my own. Back up and running again. Thanks all.

mazzi commented 5 months ago

Just want to thank everyone for their efforts in figuring this out and taking the time to put all these steps up. Even after changing to the latest v. [63cf0b4] branch it wouldn't work until I cloned to and installed from the /src/rtl8812au folder. That finally fixed it for me and continues to work after a reboot. I know just enough to be dangerous, I would have never figured this all out on my own. Back up and running again. Thanks all.

Thanks for sharing!

Distro? Kernel?

Just being curious. Already returned the device and plugged an Ethernet cable...

nuketech9 commented 5 months ago

Just want to thank everyone for their efforts in figuring this out and taking the time to put all these steps up. Even after changing to the latest v. [63cf0b4] branch it wouldn't work until I cloned to and installed from the /src/rtl8812au folder. That finally fixed it for me and continues to work after a reboot. I know just enough to be dangerous, I would have never figured this all out on my own. Back up and running again. Thanks all.

Thanks for sharing!

Distro? Kernel?

Just being curious. Already returned the device and plugged an Ethernet cable...

Kubuntu 24.04 6.8.0-36-generic

Had just done an upgrade from Kubuntu 22 where it was working fine. Could see it in lsusb and iwconfig but would not show up in NetworkManager. Was using dkms. uninstall/removed/reinstalled several times but wouldn't work till I moved the clone to \src

mazzi commented 5 months ago

Try to check if you have DUP! when you do a ping. Was my case despite was detected and configured with an IP.

nuketech9 commented 5 months ago

No DUP!s Doing a quick search someone mentions that could also be caused by having duplicate MAC addresses in the MAC table as well as duplicate IP's FWIW

mazzi commented 5 months ago

I've read that the MAC address can be forced on netplan. Thanks for the replies @nuketech9 ! Good luck.

neestzjov commented 5 months ago

It works, it makes it display all SSIDs around now.

honkingantelope commented 4 months ago

ran into the same issue on a full-upgrade'd Kali raspberry PI image, RPI4. resetting to 63cf0b4 and remove-build-install did the trick. Soooo frustrating!

JoViOc commented 4 months ago

Hi, I was able to enable the tp-link using git reset in 63cf0b4. However, now i am facing another problem: it does not scan the networks. Check attached image. Screenshot from 2024-07-21 10-14-00

Details: Linux 6.5.0-44-generic #44~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Jun 18 14:36:16 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

lsusb: Bus 001 Device 004: ID 2357:011f TP-Link 802.11ac WLAN Adapter

iwconfig: wlx3c52a18608bd unassociated ESSID:"" Nickname:"WIFI@REALTEK" Mode:Managed Frequency=2.412 GHz Access Point: Not-Associated
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off Power Management:off Link Quality:0 Signal level:0 Noise level:0 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0

dmesg: [ 4.108400] WARNING: CPU: 18 PID: 539 at /home/XXXX/rtl8812au/core/rtw_odm.c:110 rtw_odm_init_ic_type+0x5e/0x70 [88XXau] [ 4.108496] Modules linked in: intel_rapl_msr intel_rapl_common snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi snd_hda_intel edac_mce_amd snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec kvm_amd snd_hda_core snd_hwdep binfmt_misc kvm snd_pcm irqbypass crct10dif_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha256_ssse3 snd_seq_midi sha1_ssse3 snd_seq_midi_event 88XXau(OE+) aesni_intel snd_rawmidi crypto_simd cryptd nls_iso8859_1 snd_seq rapl snd_seq_device cfg80211 input_leds snd_timer joydev wmi_bmof snd k10temp ccp soundcore mac_hid sch_fq_codel msr parport_pc ppdev lp parport drm efi_pstore ip_tables x_tables autofs4 uas usb_storage hid_generic usbhid hid nvme crc32_pclmul igb i2c_piix4 ahci i2c_algo_bit nvme_core xhci_pci libahci dca xhci_pci_renesas nvme_common wmi [ 4.108575] RIP: 0010:rtw_odm_init_ic_type+0x5e/0x70 [88XXau] [ 4.108666] ? rtw_odm_init_ic_type+0x5e/0x70 [88XXau] [ 4.108741] ? rtw_odm_init_ic_type+0x5e/0x70 [88XXau] [ 4.108799] Init_ODM_ComInfo+0x38/0x5a0 [88XXau] [ 4.108867] rtl8812_init_dm_priv+0x50/0xb0 [88XXau] [ 4.108917] rtw_hal_dm_init+0x22/0x50 [88XXau] [ 4.108970] rtw_init_drv_sw+0x25d/0x290 [88XXau] [ 4.109023] rtw_usb_primary_adapter_init+0x14c/0xa50 [88XXau] [ 4.109072] rtw_usb_primary_adapter_init+0x41c/0xa50 [88XXau] [ 4.109157] ? __pfx_init_module+0x10/0x10 [88XXau] [ 4.109193] init_module+0x55/0xff0 [88XXau] [ 4.109772] usbcore: registered new interface driver rtl88XXau [ 4.114004] rtl88XXau 1-2.1:1.0 wlx3c52a18608bd: renamed from wlan0 [ 29.759274] odm_get_tracking_table+0xf4/0x590 [88XXau] [ 29.759366] odm_txpowertracking_callback_thermal_meter+0x3b7/0x740 [88XXau] [ 29.759441] odm_txpowertracking_check+0x5d/0xe0 [88XXau] [ 29.759512] phydm_rf_watchdog+0xe/0x20 [88XXau] [ 29.759582] halrf_watchdog+0xe/0x20 [88XXau] [ 29.759654] phydm_watchdog+0x8c/0xf0 [88XXau] [ 29.759740] rtw_phydm_watchdog+0x1d8/0x230 [88XXau] [ 29.759846] rtl8812_HalDmWatchDog+0x56/0x70 [88XXau] [ 29.759943] rtw_hal_dm_watchdog+0x21/0x30 [88XXau] [ 29.760051] rtw_drvextra_cmd_hdl+0x16d/0x3e0 [88XXau] [ 29.760115] rtw_cmd_thread+0x344/0x530 [88XXau] [ 29.760169] ? pfx_rtw_drvextra_cmd_hdl+0x10/0x10 [88XXau] [ 29.760227] ? pfx_rtw_cmd_thread+0x10/0x10 [88XXau] [ 29.760321] Modules linked in: xt_conntrack nft_chain_nat xt_MASQUERADE nf_nat nf_conntrack_netlink nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xfrm_user xfrm_algo xt_addrtype nft_compat br_netfilter bridge stp llc nf_tables libcrc32c nfnetlink overlay intel_rapl_msr intel_rapl_common snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi snd_hda_intel edac_mce_amd snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec kvm_amd snd_hda_core snd_hwdep binfmt_misc kvm snd_pcm irqbypass crct10dif_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha256_ssse3 snd_seq_midi sha1_ssse3 snd_seq_midi_event 88XXau(OE) aesni_intel snd_rawmidi crypto_simd cryptd nls_iso8859_1 snd_seq rapl snd_seq_device cfg80211 input_leds snd_timer joydev wmi_bmof snd k10temp ccp soundcore mac_hid sch_fq_codel msr parport_pc ppdev lp parport drm efi_pstore ip_tables x_tables autofs4 uas usb_storage hid_generic usbhid hid nvme crc32_pclmul igb i2c_piix4 ahci i2c_algo_bit nvme_core xhci_pci libahci dca xhci_pci_renesas

According to the error: the chipset seems to be different from those available in the driver.

JoViOc commented 4 months ago

I solved using the description from achille54.

I worked, Thanks

neelabalan commented 3 months ago

Doesn't detect 5 GHz network for me in both

TP-Link Archer T9UH v1 [Realtek RTL8814AU]
TP-Link Archer T4U v2 [Realtek RTL8812AU]

This is after checking out this commit and running sudo make, sudo make install

Inklare commented 2 months ago

I was also having this issue. I originally installed the most recent version using dkms, but it didn't work and I tried a few times with no success. But I got it working.

Ill share what I did to hopefully help others, but I'm not totally sure exactly what steps were important to fixing the issue:

  • Unplugged the USB adapter
  • Ran dkms status to find the name of the dkms module I had installed.
  • Used sudo dkms remove <module name> --all to delete the old driver (replace module name with the name from the prev step).
  • Restarted computer.
  • Fully deleted the git folder (rtl8812au) so that I could re-clone it with no changes.
  • Used git clone https://github.com/aircrack-ng/rtl8812au.git to redownload the files.
  • cd rt*
  • Then I decided to update everything just to be sure:

    • sudo apt-get update
    • sudo apt-get install bc mokutil build-essential libelf-dev linux-headers-`uname -r`
    • sudo apt-get upgrade
  • Then, I did git checkout 63cf0b4 to set it to the known working version, and a git status just to be sure there were no changed files.
  • Ran sudo make, and then sudo make install.
  • Finally, sudo service NetworkManager restart, and then I plugged in the USB adapter and it worked.

BROOO THANK YOU VRY MUCH!!!

maniban commented 2 months ago

Hi All,

I have tried the following as per my history snippet i.e.

574 git clone https://github.com/aircrack-ng/rtl8812au.git 575 cd rt* 578 sudo apt-get update -y 579 sudo apt-get install bc mokutil build-essential libelf-dev linux-headers-uname -r 580 sudo apt-get upgrade 581 git checkout 63cf0b4 582 ls -ltr 583 cat README.md 584 sudo make dkms_install 585 sudo service NetworkManager restart

But still the same isn't working for me. Could anyone please help as installed kubuntu 24.04 with 6.8.0-41-generic.

my dmesg logs attached dmesg.log

Please help me with this

Bus 001 Device 002: ID 2357:011e TP-Link AC600 wireless Realtek RTL8811AU [Archer T2U Nano]

neestzjov commented 2 months ago

Hi All,

I have tried the following as per my history snippet i.e.

574 git clone https://github.com/aircrack-ng/rtl8812au.git 575 cd rt* 578 sudo apt-get update -y 579 sudo apt-get install bc mokutil build-essential libelf-dev linux-headers-uname -r 580 sudo apt-get upgrade 581 git checkout 63cf0b4 582 ls -ltr 583 cat README.md 584 sudo make dkms_install 585 sudo service NetworkManager restart

But still the same isn't working for me. Could anyone please help as installed kubuntu 24.04 with 6.8.0-41-generic.

my dmesg logs attached dmesg.log

Please help me with this

Bus 001 Device 002: ID 2357:011e TP-Link AC600 wireless Realtek RTL8811AU [Archer T2U Nano]

git clone...... (from the readme)

git checkout 63cf0b4

sudo make dkms_install

Plug in/or replug device.. and I clicked on the network manager and it showed wireless networks!



Try this 
CursedOddity commented 2 months ago

None of this worked for me either...

I spent over $100 on a AWUS036ACH after my old one died. used it for 2 days then stupidly updated. Now i cant get it to work. I have scoured the internet and used every step by step possible. Sucks cause i also bought a new Pi 5 specifically to use with this card...

It just DOES NOT WORK for Raspberry Pi 5 and though i haven't spent much time on the VM i didn't get it to work there either.

I feel sick knowing i just spend that much money on absolutely nothing... UGHHH

matthew11 commented 2 months ago

It just DOES NOT WORK for Raspberry Pi 5 and though i haven't spent much time on the VM i didn't get it to work there either.

Pi 5 is an ARM64-based computer, you likely need to do some additional steps as described in the readme.