Open Zur13 opened 1 year ago
This is probably a not-implemented freeze.
You can try iw list
to see the supported (software) modes/interfaces.
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?
You could try the default (rtl8xxxu) driver.
My advice however would be to get a wifi chip that mentions support for interface combinations.
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.
I wonder if #59 might fix this.
happens to me too .
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:
CONFIG_WIFI_MONITOR = y
$ make all
and# make install
# echo "blacklist rtl8xxxu" >> /etc/modprobe.d/blacklist-rtl8xxxu.conf
$ sudo systemctl stop NetworkManager
and$ sudo airmon-ng check kill
# ifconfig wlan0 down && iw wlan0 set monitor control && ifconfig wlan0 up
# iw dev wlan0 interface add wlan0ap type monitor
Tested on branch 5.6.4 with
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]Thanks!