SmartAudio/package/testtools/tinatest/testcase/base/wifi/wifiscan/wifi_scan.sh

15 lines
353 B
Bash
Raw Normal View History

2018-07-13 01:31:50 +00:00
#!/bin/sh
/bin/wifi_scan_results_test > /tmp/wifi_scan.info
grep "Wifi get_scan_results: Success!" /tmp/wifi_scan.info
if [ $? -eq 0 ];then
sed -n '/bssid/,$p' /tmp/wifi_scan.info | \
awk '{print}'
exit 0
else
echo "======== WIFI SCAN FAILED ==========================="
echo "======== For details, see /tmp/wifi_scan.info ========"
exit 1
fi