mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
self-diagnostics: add backhaul info
This commit is contained in:
parent
a8a2066675
commit
383dedb443
2 changed files with 33 additions and 0 deletions
|
|
@ -0,0 +1,24 @@
|
||||||
|
. /lib/functions.sh
|
||||||
|
|
||||||
|
handle_interface() {
|
||||||
|
local config="${1}"
|
||||||
|
config_get ifname "${config}" ifname
|
||||||
|
config_get mode ${config} mode
|
||||||
|
|
||||||
|
[ "$mode" != "sta" ] && continue
|
||||||
|
|
||||||
|
echo "Get wpa_cli status"
|
||||||
|
wpa_cli -i "${ifname}" status
|
||||||
|
|
||||||
|
echo "Get scan results"
|
||||||
|
wpa_cli -i "${ifname}" scan_res
|
||||||
|
|
||||||
|
echo "Get current networks"
|
||||||
|
wpa_cli -i "${ifname}" list_n
|
||||||
|
|
||||||
|
echo "Get supplicant file"
|
||||||
|
cat /var/run/wpa_supplicant-"${ifname}".conf
|
||||||
|
}
|
||||||
|
|
||||||
|
config_load wireless
|
||||||
|
config_foreach handle_interface wifi-iface
|
||||||
|
|
@ -30,6 +30,15 @@
|
||||||
"cmd": "sh /usr/share/self-diagnostics/helper/wifi_assoclist.sh",
|
"cmd": "sh /usr/share/self-diagnostics/helper/wifi_assoclist.sh",
|
||||||
"timeout": 10
|
"timeout": 10
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"description": "Get Scan results and status",
|
||||||
|
"cmd": "sh /usr/share/self-diagnostics/helper/wifi_sta.sh",
|
||||||
|
"timeout": 10
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Get backhaul Info",
|
||||||
|
"cmd": "cat /var/run/multiap/multiap.backhaul"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "List Wireless Devices",
|
"description": "List Wireless Devices",
|
||||||
"cmd": "iw dev"
|
"cmd": "iw dev"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue