patch v2 causes monitor mode to crash (on ioctl() system calls: [ 602.100650] usb 1-2: BOGUS urb flags, 208 --> 200 [ 602.100691] WARNING: CPU: 10 PID: 15060 at drivers/usb/core/urb.c:517 usb_submit_urb+0x1c9/0x5e0 [ 602.100692] Modules linked in: mt7601u rt2800usb(OE) rt2x00usb(OE) rt2800lib(OE) rt2x00lib(OE) mac80211 libarc4 nvidia_drm(POE) nvidia_modeset(POE) nvidia(POE) cfg80211 snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi ledtrig_audio snd_hda_intel snd_intel_dspcfg rfkill soundwire_intel soundwire_generic_allocation soundwire_cadence 8021q snd_hda_codec garp mrp edac_mce_amd stp llc snd_hda_core snd_hwdep soundwire_bus r8169 snd_soc_core kvm realtek snd_compress nls_iso8859_1 ac97_bus snd_pcm_dmaengine vfat mdio_devres irqbypass mousedev crct10dif_pclmul fat ppdev snd_pcm crc32_pclmul ghash_clmulni_intel wmi_bmof mxm_wmi drm_kms_helper aesni_intel snd_timer cec ccp snd syscopyarea crypto_simd sysfillrect sp5100_tco cryptd usbhid sysimgblt glue_helper libphy soundcore fb_sys_fops pcspkr i2c_piix4 rng_core k10temp rapl parport_pc parport wmi pinctrl_amd gpio_amdpt gpio_generic mac_hid acpi_cpufreq drm sg fuse crypto_user agpgart bpf_preload ip_tables x_tables ext4 crc32c_generic [ 602.100876] crc16 mbcache jbd2 crc32c_intel sr_mod xhci_pci cdrom xhci_pci_renesas [ 602.100879] CPU: 10 PID: 15060 Comm: hcxdumptool Tainted: P W OE 5.10.9-arch1-1 #1 [ 602.100880] Hardware name: Micro-Star International Co., Ltd. MS-7A33/X370 KRAIT GAMING (MS-7A33), BIOS 1.F0 11/06/2018 [ 602.100881] RIP: 0010:usb_submit_urb+0x1c9/0x5e0 [ 602.100882] Code: bc 24 a0 00 00 00 48 89 54 24 08 e8 01 c1 f3 ff 48 8b 54 24 08 45 89 f0 44 89 f9 48 89 c6 48 c7 c7 f8 47 bf b9 e8 51 99 2c 00 <0f> 0b 83 e3 01 0f 85 f1 00 00 00 8b 74 24 04 48 83 c4 18 48 89 ef [ 602.100882] RSP: 0018:ffffb69648f5fb10 EFLAGS: 00010282 [ 602.100883] RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffff88a90ee98bb8 [ 602.100884] RDX: 00000000ffffffd8 RSI: 0000000000000027 RDI: ffff88a90ee98bb0 [ 602.100884] RBP: ffff88a60f3fb500 R08: 0000000000000000 R09: ffffb69648f5f948 [ 602.100926] R10: ffffb69648f5f940 R11: ffffffffba2c0500 R12: ffff88a6152db800 [ 602.100926] R13: 0000000000000002 R14: 0000000000000200 R15: 0000000000000208 [ 602.100927] FS: 00007fef23ab0280(0000) GS:ffff88a90ee80000(0000) knlGS:0000000000000000 [ 602.101008] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 602.101009] CR2: 00007fef2403eff8 CR3: 000000014b076000 CR4: 00000000003506e0 [ 602.101050] Call Trace: [ 602.101132] rt2x00usb_kick_rx_entry+0xa0/0x100 [rt2x00usb] [ 602.101175] rt2x00queue_init_queues+0xb3/0x100 [rt2x00lib] [ 602.101257] rt2x00lib_enable_radio+0x25/0xa0 [rt2x00lib] [ 602.101300] rt2x00lib_start+0x7c/0xc0 [rt2x00lib] [ 602.101391] drv_start+0x3d/0x100 [mac80211] [ 602.101444] ieee80211_do_open+0x1c4/0x9c0 [mac80211] [ 602.101536] ? ieee80211_check_concurrent_iface+0x14f/0x1c0 [mac80211] [ 602.101577] __dev_open+0xfb/0x1b0 [ 602.101658] __dev_change_flags+0x1a6/0x210 [ 602.101699] ? enqueue_task_fair+0x8a/0x5d0 [ 602.101780] dev_change_flags+0x21/0x60 [ 602.101821] devinet_ioctl+0x641/0x810 [ 602.101823] ? preempt_schedule_thunk+0x16/0x18 [ 602.101904] inet_ioctl+0x1d7/0x210 [ 602.102026] sock_do_ioctl+0x82/0x180 [ 602.102067] sock_ioctl+0x272/0x3e0 [ 602.102068] __x64_sys_ioctl+0x83/0xb0 [ 602.102150] do_syscall_64+0x33/0x40 [ 602.102191] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 602.102272] RIP: 0033:0x7fef23bcff6b [ 602.102273] Code: 89 d8 49 8d 3c 1c 48 f7 d8 49 39 c4 72 b5 e8 1c ff ff ff 85 c0 78 ba 4c 89 e0 5b 5d 41 5c c3 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d d5 ae 0c 00 f7 d8 64 89 01 48 [ 602.102314] RSP: 002b:00007ffecf9e65a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 602.102315] RAX: ffffffffffffffda RBX: 000055f706b51d18 RCX: 00007fef23bcff6b [ 602.102396] RDX: 000055f706bce140 RSI: 0000000000008914 RDI: 0000000000000003 [ 602.102396] RBP: 00007ffecf9e6620 R08: 0000000000000004 R09: 0032753066307333 [ 602.102437] R10: 0000000000000020 R11: 0000000000000246 R12: 0000000000000004 [ 602.102438] R13: 00007ffecf9e6718 R14: 0000000000000000 R15: 0000000000000000 [ 602.102519] ---[ end trace 42333ce669cb71ea ]--- [ 607.450006] device wlp3s0f0u2 left promiscuous mode