RT-IPC_camera/bin/vslocal/cgi-bin/scanwifi.cgi

21 lines
299 B
Bash

#!/bin/sh
. /bin/vs/cgi-bin/netenv.conf
. /bin/vs/cgi-bin/net_func.sh
#. $wifi_config
wifim=$(wifi_getmode)
#wpa_cli -i $iface scan > /dev/null 2>&1
if [ $wifim = NONE ]
then
wifi_sta_start
wifi_scan
outputwifiscanresult
wifi_sta_stop
else
wifi_scan
outputwifiscanresult
fi