Hi guys,
I'm currently running ASUS RT-AC68U with Asuswrt-Merlin 380.57 and I'm trying to find a way to fetch from the router the current WiFi status (on/off for each frequency) for some WiFi availability orchestration.
My personal preference is to get the information using shell and do a minimal amount of changes and addition to the firmware.
I found how one can check the radio status in code in src/router/shared/sysdeps/api-qca.c get_radio_status
and I could do some fancy grep work and get it from src/router/www/state.js that invokes router/httpd/web.c ej_radio_status function via asp (uses that same get_radio_status function) if there is not other way.
Going to the radio executable from src/router/rc/lan.c I see no hidden option to get the status (even though it's used) - BTW, that same executable does not document how to control a single interface, had to read the source for that.
Is there some ready made way to fetch the status of the radio from shell?
Any help will be appreciated, Thanks.
I'm currently running ASUS RT-AC68U with Asuswrt-Merlin 380.57 and I'm trying to find a way to fetch from the router the current WiFi status (on/off for each frequency) for some WiFi availability orchestration.
My personal preference is to get the information using shell and do a minimal amount of changes and addition to the firmware.
I found how one can check the radio status in code in src/router/shared/sysdeps/api-qca.c get_radio_status
and I could do some fancy grep work and get it from src/router/www/state.js that invokes router/httpd/web.c ej_radio_status function via asp (uses that same get_radio_status function) if there is not other way.
Going to the radio executable from src/router/rc/lan.c I see no hidden option to get the status (even though it's used) - BTW, that same executable does not document how to control a single interface, had to read the source for that.
Is there some ready made way to fetch the status of the radio from shell?
Any help will be appreciated, Thanks.