July 8, 2016

How can I set it to monitor mode in WRTnode?

I try to change config Managed Mode to Monitor Mode.
I use Linux OpenWrt 3.18.29 - BusyBox v1.23.2
The following is my wireless configuration
|------------------------------
|config wifi-device radio0
| option type ralink
| option ht 20
|
|config wifi-iface
| option device radio0
| option network lan
| option mode monitor
| option hidden 1
|------------------------------
The following is my network configuration
|-------------------------------------
|config interface 'loopback'
| option ifname 'lo'
| option proto 'static'
| option ipaddr '127.0.0.1'
| option netmask '255.0.0.0'
|
|config globals 'globals'
| option ula_prefix ''
|
|config interface 'lan'
| option ifname 'eth0.1'
| option force_link '1'
| option macaddr ''
| option type 'bridge'
| option proto 'static'
| option ipaddr '192.168.8.1'
| option netmask '255.255.255.0'
|
|config interface 'wan'
| option ifname 'radio0'
| option force_link '1'
| option macaddr ''
| option proto 'dhcp'
|--------------------------------------
when i use 'iw reg get', i can see the changed mode
|------------------------------------------------------------------
|root@OpenWrt:/etc/config# iw reg get
|global
|country 00: DFS-UNSET
| (2402 - 2472 @ 40), (6, 20), (N/A)
| (2457 - 2482 @ 40), (6, 20), (N/A), PASSIVE-SCAN
| (2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
| (5170 - 5250 @ 160), (6, 20), (N/A), PASSIVE-SCAN
| (5250 - 5330 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
| (5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
|------------------------------------------------------------------
but, when i use 'iwconfig', it was not changed
|-------------------------------------------------
|ra0 RTWIFI SoftAP ESSID:"WRTnode1A7C"
| Mode:Managed Channel=11 Access Point:
|-------------------------------------------------
How can I set it to monitor mode?

Answer to the question

What script file are you writing this in? Also what service are you trying to change from managed to monitor, network manager or is there something else?

Is config managed mode a system service. If you can give answers to these questions we can better help

Like  (2 likes)
Click Here!