clnhub / rtl8192eu-linux

Realtek rtl8192eu official Linux driver, versions: 5.2.19.1 (master), 5.6.3.1, 5.6.4 and 5.11.2.1 (default)
442 stars 90 forks source link

Kernel freeze on adding second interface #54

Open Zur13 opened 1 year ago

Zur13 commented 1 year ago

Hi @clnhub I'm trying to use this driver for pentest and when setting up the second interface I got kernel freeze. Can you help me to solve this problem? I have some programming experience but not in C or Linux but I can do my best to provide you the information needed.

To reproduce this issue:

  1. Turn on monitor mode feature in Makefile: CONFIG_WIFI_MONITOR = y
  2. Then make and install driver $ make all and # make install
  3. Disable default driver: # echo "blacklist rtl8xxxu" >> /etc/modprobe.d/blacklist-rtl8xxxu.conf
  4. Stop networking services that might mess up the tests $ sudo systemctl stop NetworkManager and $ sudo airmon-ng check kill
  5. Attach usb dongle
  6. Switch dongle to wifi monitor mode # ifconfig wlan0 down && iw wlan0 set monitor control && ifconfig wlan0 up
  7. Kernel freezes on this step! Try to add the second network interface to the same dongle # iw dev wlan0 interface add wlan0ap type monitor

Tested on branch 5.6.4 with

$ uname -a
Linux kali 5.18.0-kali2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.5-1kali1 (2022-06-20) x86_64 GNU/Linux
This is what I found in dmesg ``` [ 605.192743] INFO: task vminfo:788 blocked for more than 120 seconds. [ 605.192749] Tainted: G W OE 5.18.0-kali2-amd64 #1 Debian 5.18.5-1kali1 [ 605.192750] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 605.192751] task:vminfo state:D stack: 0 pid: 788 ppid: 1 flags:0x00000000 [ 605.192754] Call Trace: [ 605.192755] [ 605.192758] __schedule+0x30b/0x9e0 [ 605.192763] schedule+0x4e/0xb0 [ 605.192764] schedule_preempt_disabled+0x14/0x20 [ 605.192766] __mutex_lock.constprop.0+0x2b8/0x460 [ 605.192767] dev_ifconf+0xa0/0x150 [ 605.192770] sock_ioctl+0x1c8/0x300 [ 605.192773] __x64_sys_ioctl+0x82/0xb0 [ 605.192776] do_syscall_64+0x3b/0xc0 [ 605.192778] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 605.192780] RIP: 0033:0x7fee3b46d397 [ 605.192781] RSP: 002b:00007fee39efab28 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 605.192783] RAX: ffffffffffffffda RBX: 0000000000000100 RCX: 00007fee3b46d397 [ 605.192784] RDX: 00007fee39efac90 RSI: 0000000000008912 RDI: 0000000000000004 [ 605.192784] RBP: 00007fee39eface0 R08: 00007fee30008be0 R09: 00007fee30000080 [ 605.192785] R10: 00007fee30008ce0 R11: 0000000000000246 R12: 00007fee39efac90 [ 605.192786] R13: 00007fee30008be0 R14: 000000000069b821 R15: 0000000000000004 [ 605.192787] [ 605.192799] INFO: task iw:1615 blocked for more than 120 seconds. [ 605.192800] Tainted: G W OE 5.18.0-kali2-amd64 #1 Debian 5.18.5-1kali1 [ 605.192801] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 605.192802] task:iw state:D stack: 0 pid: 1615 ppid: 1372 flags:0x00004000 [ 605.192803] Call Trace: [ 605.192804] [ 605.192805] __schedule+0x30b/0x9e0 [ 605.192806] schedule+0x4e/0xb0 [ 605.192807] schedule_preempt_disabled+0x14/0x20 [ 605.192808] __mutex_lock.constprop.0+0x2b8/0x460 [ 605.192811] cfg80211_netdev_notifier_call+0xf1/0x4e0 [cfg80211] [ 605.192827] ? __ipv6_dev_mc_inc+0x127/0x380 [ 605.192829] ? netlink_broadcast+0x13a/0x480 [ 605.192832] ? kmem_cache_alloc_trace+0x177/0x2a0 [ 605.192833] ? igmp6_group_added+0xc0/0x100 [ 605.192835] ? __ipv6_dev_mc_inc+0x241/0x380 [ 605.192836] ? ipv6_add_dev+0x2c6/0x510 [ 605.192838] ? addrconf_notify+0x2bf/0x930 [ 605.192840] ? _raw_spin_lock_irqsave+0x24/0x50 [ 605.192842] raw_notifier_call_chain+0x44/0x60 [ 605.192856] register_netdevice+0x491/0x5d0 [ 605.192858] cfg80211_rtw_add_virtual_intf+0x170/0x23e [8192eu] [ 605.192886] nl80211_new_interface+0x1b5/0x4c0 [cfg80211] [ 605.192901] genl_family_rcv_msg_doit+0xea/0x150 [ 605.192907] genl_rcv_msg+0xdc/0x1e0 [ 605.192908] ? nl80211_get_interface+0xa0/0xa0 [cfg80211] [ 605.192920] ? genl_get_cmd+0xd0/0xd0 [ 605.192921] netlink_rcv_skb+0x51/0xf0 [ 605.192923] genl_rcv+0x24/0x40 [ 605.192924] netlink_unicast+0x23a/0x360 [ 605.192925] netlink_sendmsg+0x24f/0x4b0 [ 605.192927] sock_sendmsg+0x5e/0x60 [ 605.192928] ____sys_sendmsg+0x22c/0x270 [ 605.192929] ? import_iovec+0x2d/0x30 [ 605.192931] ? sendmsg_copy_msghdr+0x79/0xa0 [ 605.192932] ___sys_sendmsg+0x81/0xc0 [ 605.192933] ? memcg_slab_free_hook+0xcc/0x1b0 [ 605.192935] ? __sk_destruct+0x155/0x230 [ 605.192936] ? kmem_cache_free+0x135/0x360 [ 605.192937] ? mod_objcg_state+0xc6/0x2e0 [ 605.192939] ? memcg_slab_free_hook+0xcc/0x1b0 [ 605.192940] __sys_sendmsg+0x59/0xa0 [ 605.192942] ? fpregs_assert_state_consistent+0x1f/0x40 [ 605.192943] do_syscall_64+0x3b/0xc0 [ 605.192944] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 605.192946] RIP: 0033:0x7f037d543e03 [ 605.192947] RSP: 002b:00007ffd60bdc598 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 605.192948] RAX: ffffffffffffffda RBX: 000056305fe25390 RCX: 00007f037d543e03 [ 605.192948] RDX: 0000000000000000 RSI: 00007ffd60bdc5d0 RDI: 0000000000000003 [ 605.192949] RBP: 000056305fe2a8c0 R08: 0000000000000007 R09: 000056305fe252a0 [ 605.192949] R10: 000056305e793fc0 R11: 0000000000000246 R12: 000056305fe2a780 [ 605.192950] R13: 00007ffd60bdc5d0 R14: 000056305fe2a7d0 R15: 000056305fe2a8c0 [ 605.192951] [ 605.192952] INFO: task systemd-udevd:1616 blocked for more than 120 seconds. [ 605.192953] Tainted: G W OE 5.18.0-kali2-amd64 #1 Debian 5.18.5-1kali1 [ 605.192954] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 605.192954] task:systemd-udevd state:D stack: 0 pid: 1616 ppid: 399 flags:0x00004000 [ 605.192956] Call Trace: [ 605.192956] [ 605.192957] __schedule+0x30b/0x9e0 [ 605.192958] schedule+0x4e/0xb0 [ 605.192959] schedule_preempt_disabled+0x14/0x20 [ 605.192960] __mutex_lock.constprop.0+0x2b8/0x460 [ 605.192961] ? xa_load+0x70/0xa0 [ 605.192963] rtnetlink_rcv_msg+0xf7/0x380 [ 605.192966] ? dput+0x17b/0x2e0 [ 605.192967] ? rtnl_calcit.isra.0+0x130/0x130 [ 605.192968] netlink_rcv_skb+0x51/0xf0 [ 605.192970] netlink_unicast+0x23a/0x360 [ 605.192971] netlink_sendmsg+0x24f/0x4b0 [ 605.192972] sock_sendmsg+0x5e/0x60 [ 605.192973] __sys_sendto+0xf0/0x160 [ 605.192975] ? __seccomp_filter+0x386/0x590 [ 605.192978] __x64_sys_sendto+0x20/0x30 [ 605.192979] do_syscall_64+0x3b/0xc0 [ 605.192979] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 605.192981] RIP: 0033:0x7fa1293c55c6 [ 605.192981] RSP: 002b:00007ffd71649d98 EFLAGS: 00000246 ORIG_RAX: 000000000000002c [ 605.192982] RAX: ffffffffffffffda RBX: 000000001a0e6553 RCX: 00007fa1293c55c6 [ 605.192983] RDX: 0000000000000020 RSI: 000055e173bf7f80 RDI: 0000000000000006 [ 605.192983] RBP: 000055e173c710f0 R08: 00007ffd71649e10 R09: 0000000000000080 [ 605.192984] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 605.192984] R13: 0000000000000000 R14: 0000000000000000 R15: 000055e173bef730 [ 605.192985] [ 605.192986] INFO: task sudo:1622 blocked for more than 120 seconds. [ 605.192987] Tainted: G W OE 5.18.0-kali2-amd64 #1 Debian 5.18.5-1kali1 [ 605.192987] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 605.192988] task:sudo state:D stack: 0 pid: 1622 ppid: 1427 flags:0x00000000 [ 605.192989] Call Trace: [ 605.192989] [ 605.192990] __schedule+0x30b/0x9e0 [ 605.192991] schedule+0x4e/0xb0 [ 605.192992] schedule_preempt_disabled+0x14/0x20 [ 605.192993] __mutex_lock.constprop.0+0x2b8/0x460 [ 605.192994] ? __netlink_lookup+0xc8/0x100 [ 605.192995] __netlink_dump_start+0xc2/0x2d0 [ 605.192997] ? rtnl_fill_ifinfo+0x1320/0x1320 [ 605.192998] rtnetlink_rcv_msg+0x283/0x380 [ 605.192999] ? rtnl_fill_ifinfo+0x1320/0x1320 [ 605.193001] ? rtnl_calcit.isra.0+0x130/0x130 [ 605.193002] netlink_rcv_skb+0x51/0xf0 [ 605.193004] netlink_unicast+0x23a/0x360 [ 605.193005] netlink_sendmsg+0x24f/0x4b0 [ 605.193006] sock_sendmsg+0x5e/0x60 [ 605.193007] __sys_sendto+0xf0/0x160 [ 605.193008] ? handle_mm_fault+0xb2/0x280 [ 605.193010] ? do_user_addr_fault+0x1e9/0x690 [ 605.193013] __x64_sys_sendto+0x20/0x30 [ 605.193014] do_syscall_64+0x3b/0xc0 [ 605.193014] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 605.193016] RIP: 0033:0x7feb2385cea6 [ 605.193016] RSP: 002b:00007ffdcb5fe288 EFLAGS: 00000246 ORIG_RAX: 000000000000002c [ 605.193017] RAX: ffffffffffffffda RBX: 00007ffdcb5ff3e0 RCX: 00007feb2385cea6 [ 605.193017] RDX: 0000000000000014 RSI: 00007ffdcb5ff320 RDI: 0000000000000003 [ 605.193018] RBP: 00007ffdcb5ff370 R08: 00007ffdcb5ff2e0 R09: 000000000000000c [ 605.193018] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffdcb5ff2e0 [ 605.193019] R13: 00007ffdcb5ff320 R14: 0000555dd668b639 R15: 00007ffdcb5fe290 [ 605.193020] [ 726.025144] INFO: task kworker/6:1:80 blocked for more than 120 seconds. [ 726.025149] Tainted: G W OE 5.18.0-kali2-amd64 #1 Debian 5.18.5-1kali1 [ 726.025151] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 726.025152] task:kworker/6:1 state:D stack: 0 pid: 80 ppid: 2 flags:0x00004000 [ 726.025155] Workqueue: ipv6_addrconf addrconf_verify_work [ 726.025160] Call Trace: [ 726.025161] [ 726.025164] __schedule+0x30b/0x9e0 [ 726.025167] schedule+0x4e/0xb0 [ 726.025168] schedule_preempt_disabled+0x14/0x20 [ 726.025170] __mutex_lock.constprop.0+0x2b8/0x460 [ 726.025171] addrconf_verify_work+0xe/0x20 [ 726.025178] process_one_work+0x1e5/0x3b0 [ 726.025181] ? rescuer_thread+0x390/0x390 [ 726.025185] worker_thread+0x50/0x3a0 [ 726.025186] ? rescuer_thread+0x390/0x390 [ 726.025187] kthread+0xe8/0x110 [ 726.025188] ? kthread_complete_and_exit+0x20/0x20 [ 726.025189] ret_from_fork+0x22/0x30 [ 726.025196] [ 726.025202] INFO: task kworker/0:2:523 blocked for more than 120 seconds. [ 726.025203] Tainted: G W OE 5.18.0-kali2-amd64 #1 Debian 5.18.5-1kali1 [ 726.025204] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 726.025204] task:kworker/0:2 state:D stack: 0 pid: 523 ppid: 2 flags:0x00004000 [ 726.025207] Workqueue: ipv6_addrconf addrconf_verify_work [ 726.025208] Call Trace: [ 726.025209] [ 726.025209] __schedule+0x30b/0x9e0 [ 726.025211] schedule+0x4e/0xb0 [ 726.025212] schedule_preempt_disabled+0x14/0x20 [ 726.025213] __mutex_lock.constprop.0+0x2b8/0x460 [ 726.025214] addrconf_verify_work+0xe/0x20 [ 726.025215] process_one_work+0x1e5/0x3b0 [ 726.025217] ? rescuer_thread+0x390/0x390 [ 726.025218] worker_thread+0x50/0x3a0 [ 726.025219] ? rescuer_thread+0x390/0x390 [ 726.025220] kthread+0xe8/0x110 [ 726.025220] ? kthread_complete_and_exit+0x20/0x20 [ 726.025221] ret_from_fork+0x22/0x30 [ 726.025223] [ 726.025226] INFO: task vminfo:788 blocked for more than 241 seconds. [ 726.025227] Tainted: G W OE 5.18.0-kali2-amd64 #1 Debian 5.18.5-1kali1 [ 726.025227] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 726.025228] task:vminfo state:D stack: 0 pid: 788 ppid: 1 flags:0x00000000 [ 726.025229] Call Trace: [ 726.025230] [ 726.025230] __schedule+0x30b/0x9e0 [ 726.025232] schedule+0x4e/0xb0 [ 726.025233] schedule_preempt_disabled+0x14/0x20 [ 726.025234] __mutex_lock.constprop.0+0x2b8/0x460 [ 726.025235] dev_ifconf+0xa0/0x150 [ 726.025237] sock_ioctl+0x1c8/0x300 [ 726.025240] __x64_sys_ioctl+0x82/0xb0 [ 726.025243] do_syscall_64+0x3b/0xc0 [ 726.025245] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 726.025247] RIP: 0033:0x7fee3b46d397 [ 726.025249] RSP: 002b:00007fee39efab28 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 726.025250] RAX: ffffffffffffffda RBX: 0000000000000100 RCX: 00007fee3b46d397 [ 726.025251] RDX: 00007fee39efac90 RSI: 0000000000008912 RDI: 0000000000000004 [ 726.025252] RBP: 00007fee39eface0 R08: 00007fee30008be0 R09: 00007fee30000080 [ 726.025252] R10: 00007fee30008ce0 R11: 0000000000000246 R12: 00007fee39efac90 [ 726.025253] R13: 00007fee30008be0 R14: 000000000069b821 R15: 0000000000000004 [ 726.025254] [ 726.025255] INFO: task kworker/7:3:800 blocked for more than 120 seconds. [ 726.025256] Tainted: G W OE 5.18.0-kali2-amd64 #1 Debian 5.18.5-1kali1 [ 726.025257] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 726.025257] task:kworker/7:3 state:D stack: 0 pid: 800 ppid: 2 flags:0x00004000 [ 726.025258] Workqueue: ipv6_addrconf addrconf_verify_work [ 726.025260] Call Trace: [ 726.025260] [ 726.025261] __schedule+0x30b/0x9e0 [ 726.025262] schedule+0x4e/0xb0 [ 726.025263] schedule_preempt_disabled+0x14/0x20 [ 726.025264] __mutex_lock.constprop.0+0x2b8/0x460 [ 726.025266] addrconf_verify_work+0xe/0x20 [ 726.025267] process_one_work+0x1e5/0x3b0 [ 726.025268] ? rescuer_thread+0x390/0x390 [ 726.025269] worker_thread+0x50/0x3a0 [ 726.025270] ? rescuer_thread+0x390/0x390 [ 726.025271] kthread+0xe8/0x110 [ 726.025272] ? kthread_complete_and_exit+0x20/0x20 [ 726.025273] ret_from_fork+0x22/0x30 [ 726.025275] [ 726.025286] INFO: task iw:1615 blocked for more than 241 seconds. [ 726.025287] Tainted: G W OE 5.18.0-kali2-amd64 #1 Debian 5.18.5-1kali1 [ 726.025288] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 726.025288] task:iw state:D stack: 0 pid: 1615 ppid: 1372 flags:0x00004000 [ 726.025289] Call Trace: [ 726.025290] [ 726.025290] __schedule+0x30b/0x9e0 [ 726.025292] schedule+0x4e/0xb0 [ 726.025293] schedule_preempt_disabled+0x14/0x20 [ 726.025293] __mutex_lock.constprop.0+0x2b8/0x460 [ 726.025297] cfg80211_netdev_notifier_call+0xf1/0x4e0 [cfg80211] [ 726.025312] ? __ipv6_dev_mc_inc+0x127/0x380 [ 726.025315] ? netlink_broadcast+0x13a/0x480 [ 726.025317] ? kmem_cache_alloc_trace+0x177/0x2a0 [ 726.025319] ? igmp6_group_added+0xc0/0x100 [ 726.025321] ? __ipv6_dev_mc_inc+0x241/0x380 [ 726.025322] ? ipv6_add_dev+0x2c6/0x510 [ 726.025323] ? addrconf_notify+0x2bf/0x930 [ 726.025325] ? _raw_spin_lock_irqsave+0x24/0x50 [ 726.025326] raw_notifier_call_chain+0x44/0x60 [ 726.025328] register_netdevice+0x491/0x5d0 [ 726.025330] cfg80211_rtw_add_virtual_intf+0x170/0x23e [8192eu] [ 726.025358] nl80211_new_interface+0x1b5/0x4c0 [cfg80211] [ 726.025373] genl_family_rcv_msg_doit+0xea/0x150 [ 726.025375] genl_rcv_msg+0xdc/0x1e0 [ 726.025376] ? nl80211_get_interface+0xa0/0xa0 [cfg80211] [ 726.025388] ? genl_get_cmd+0xd0/0xd0 [ 726.025389] netlink_rcv_skb+0x51/0xf0 [ 726.025391] genl_rcv+0x24/0x40 [ 726.025392] netlink_unicast+0x23a/0x360 [ 726.025393] netlink_sendmsg+0x24f/0x4b0 [ 726.025395] sock_sendmsg+0x5e/0x60 [ 726.025396] ____sys_sendmsg+0x22c/0x270 [ 726.025397] ? import_iovec+0x2d/0x30 [ 726.025399] ? sendmsg_copy_msghdr+0x79/0xa0 [ 726.025401] ___sys_sendmsg+0x81/0xc0 [ 726.025402] ? memcg_slab_free_hook+0xcc/0x1b0 [ 726.025403] ? __sk_destruct+0x155/0x230 [ 726.025404] ? kmem_cache_free+0x135/0x360 [ 726.025406] ? mod_objcg_state+0xc6/0x2e0 [ 726.025407] ? memcg_slab_free_hook+0xcc/0x1b0 [ 726.025409] __sys_sendmsg+0x59/0xa0 [ 726.025410] ? fpregs_assert_state_consistent+0x1f/0x40 [ 726.025412] do_syscall_64+0x3b/0xc0 [ 726.025413] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 726.025414] RIP: 0033:0x7f037d543e03 [ 726.025415] RSP: 002b:00007ffd60bdc598 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 726.025416] RAX: ffffffffffffffda RBX: 000056305fe25390 RCX: 00007f037d543e03 [ 726.025416] RDX: 0000000000000000 RSI: 00007ffd60bdc5d0 RDI: 0000000000000003 [ 726.025417] RBP: 000056305fe2a8c0 R08: 0000000000000007 R09: 000056305fe252a0 [ 726.025418] R10: 000056305e793fc0 R11: 0000000000000246 R12: 000056305fe2a780 [ 726.025418] R13: 00007ffd60bdc5d0 R14: 000056305fe2a7d0 R15: 000056305fe2a8c0 [ 726.025419] [ 726.025420] INFO: task systemd-udevd:1616 blocked for more than 241 seconds. [ 726.025421] Tainted: G W OE 5.18.0-kali2-amd64 #1 Debian 5.18.5-1kali1 [ 726.025422] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 726.025422] task:systemd-udevd state:D stack: 0 pid: 1616 ppid: 399 flags:0x00004004 [ 726.025423] Call Trace: [ 726.025424] [ 726.025425] __schedule+0x30b/0x9e0 [ 726.025426] schedule+0x4e/0xb0 [ 726.025427] schedule_preempt_disabled+0x14/0x20 [ 726.025428] __mutex_lock.constprop.0+0x2b8/0x460 [ 726.025429] ? xa_load+0x70/0xa0 [ 726.025431] rtnetlink_rcv_msg+0xf7/0x380 [ 726.025433] ? dput+0x17b/0x2e0 [ 726.025435] ? rtnl_calcit.isra.0+0x130/0x130 [ 726.025436] netlink_rcv_skb+0x51/0xf0 [ 726.025438] netlink_unicast+0x23a/0x360 [ 726.025439] netlink_sendmsg+0x24f/0x4b0 [ 726.025440] sock_sendmsg+0x5e/0x60 [ 726.025441] __sys_sendto+0xf0/0x160 [ 726.025442] ? __seccomp_filter+0x386/0x590 [ 726.025445] __x64_sys_sendto+0x20/0x30 [ 726.025446] do_syscall_64+0x3b/0xc0 [ 726.025447] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 726.025448] RIP: 0033:0x7fa1293c55c6 [ 726.025449] RSP: 002b:00007ffd71649d98 EFLAGS: 00000246 ORIG_RAX: 000000000000002c [ 726.025449] RAX: ffffffffffffffda RBX: 000000001a0e6553 RCX: 00007fa1293c55c6 [ 726.025450] RDX: 0000000000000020 RSI: 000055e173bf7f80 RDI: 0000000000000006 [ 726.025451] RBP: 000055e173c710f0 R08: 00007ffd71649e10 R09: 0000000000000080 [ 726.025451] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 726.025452] R13: 0000000000000000 R14: 0000000000000000 R15: 000055e173bef730 [ 726.025453] ```

Thanks!

clnhub commented 1 year ago

This is probably a not-implemented freeze.

You can try iw list to see the supported (software) modes/interfaces.

Zur13 commented 1 year ago

The monitor mode itself works fine after Makefile changes from step 1 CONFIG_WIFI_MONITOR = y. Command on step 6 successfully switches dongle to wifi monitor mode and I've tested device in this mode and it works as it should.

The problem is the command on step 7. Before executing step 7 system and device are fully functional. Step 7 is needed to assign the second software interface named wlan0ap to the same hardware so the single usb dongle would have wlan0 and wlan0ap interfaces at the same time. As I understand from tutorial I follow it should be supported by most chipsets.

Is it possible to know which function is required and was not implemented for this feature?

clnhub commented 1 year ago

You could try the default (rtl8xxxu) driver.

My advice however would be to get a wifi chip that mentions support for interface combinations.

Zur13 commented 1 year ago

Yes I've tried default driver rtl8xxxu before and it has a problem with monitor mode (it is possible to turn it on but it does not work at all).

I've spend quite a lot of time trying to understand what is going on here but unfortunately I have no more time to spend so this is what I've found. As far as I understand the problem is not in the chipset capabilities but in driver code which stops in some mutex forever which might be related to the rtnl_lock or it might be related to this change in the kernel.

Thanks for your help anyway.

jameshilliard commented 1 year ago

I wonder if #59 might fix this.

oddsito commented 1 year ago

happens to me too .