i need to start wifi scan every day at 8am ,how can i do that with single comand that i will put in cron?
There is the button on luci interface "SCAN" so how can i start stor scan usuing luci commands?
ubus -v list
i see many parametrs with the command you gave , all posible command as i understand so i guess i have to use
ubus call hostapd.wlan0 "scan":{"device":"wlan0"}
but it doesnt work
also if i start scan i need to end it or it will ends itself?
Cron isn’t that complex to begin with and you only have one small line to write on.
You could use a script that is started by cron to get more advanced functions.
Like where do you put the result?
i know cron , all i need is correct command that start/stop scaning via ubus.
the example i wrote doesnt work cause i dont know how to create correct commnad
If your wireless interface is phy0-ap0 (the usual OpenWrt default, but substitute your own), the following command will write a scan to /tmp
iw dev phy0-ap0 scan > /tmp/wireless_scan
Edit: This scan ends itself....
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </>
" button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/wireless
iwinfo phyX scan
where x == correct_radio
Yup, that works too. See my previous comment about using iw
.
that is exacly what i need ,thanks a lot ,now i can put it in cron i guess
iw dev wlan0 scan
i dont need result ,just scan , you prbaly wander why
but for some reason it helps o restore abylity to STA to connect via 802.11k to other station in one mpbile domane after some time
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.