self-diagnostics: add backhaul info

This commit is contained in:
Gouri Natarajan 2025-03-19 12:28:08 +00:00 committed by IOPSYS Dev
parent a8a2066675
commit 383dedb443
No known key found for this signature in database
2 changed files with 33 additions and 0 deletions

View file

@ -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

View file

@ -30,6 +30,15 @@
"cmd": "sh /usr/share/self-diagnostics/helper/wifi_assoclist.sh",
"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",
"cmd": "iw dev"