Hello All,
I have monitor mode working great on my Dell laptop running ubuntu 18.04. Using insmod with con_mode=4.
Is there a way to have it keep this configuration through a power cycle?
When I do cycle power on the Dell, the QCA9377-7 seems to load and run ok, just not in monitor mode.
Then, the only way to change from non-monitor mode to monitor mode, is to
rmmod wlan
remove the USB module from the USB slot immediately after rmmod wlan above
type in the insmod ... con_mode=4
place the USB module back into the USB slow, and IMMEDIATELY hit enter on the insmod, before linux can detect and load.
Easy to do, but, won't be a usable method for my user.
I'm hoping it is just a config.ini file setting I'm missing.
Thanks in advance.
John
Hi John,
The insmod with con_mode is only available option.
Alternatively, you can modify driver's code to always insmod with con_mode option set. You can study the driver code and make changes.
I have never tried it but you can give a try with below code change:
//wlan_hdd_main_module.c
static int __init hdd_module_init ( void)
Thanks.
Thank you very much....
I made that modification to the driver, recompiled, and I don't have to do the remove device / reinsert device anymore.
For some reason it doesn't default to sniffer mode (con_mode=4) even though I am forcing it, but, that is ok, because I can power up the unit, do an insmod xxxx con_mode=4 and sniffer works like a champ.
This is more than sufficient for my testing, and even demo on a hand held unit for now.
Thanks so much for the most excellent support.
I might change how it works to reading an ini file, and if con_mode=x is present, use that mode, else just boot 'em up as is.
Best
John
Hi John,
Great.
Glad that it helped.
Thanks.