关于WiFi 使用异常无法进行扫描问题

执行wifi -s 扫描异常

1.提示wifi deamon server服务问题

root@TinaLinux:/# wifi -s
Cannot connect to the wifi deamon server: No such file or directory

解决办法:
手动输入:

wifi_daemon

2 .wifi 获取状态报错

root@TinaLinux:/# wifi -s
root@TinaLinux:/# 1970-01-01 00:05:14:000: WMG_DEBUG [wifi_daemon.c:cmd_handle_thread:702]:  get cmd: s
1970-01-01 00:05:14:000: WMG_DEBUG [wifi_daemon.c:cmd_handle_s:196]:  cmd handle s:
1970-01-01 00:05:14:000: WMG_ERROR [src/wifimg.c:__wifi_get_scan_results:448]:  wifi manager is not running
1970-01-01 00:05:14:001: WMG_WARNG [wifi_daemon.c:cmd_handle_s:225]:  ===Wi-Fi scan failed, time 0.000000 ms===

解决办法:输入

wifi -o sta

3.其他异常问题
重新获取最新的BSP补丁包

git clone https://gitee.com/GloomyGhost/Yuzukilizard

将获取的补丁包拷贝到tina-v853-open目录下

cp Yuzukilizard/Software/BSP/* tina-v853-open/ -rfvd

wifi启动问题

需按顺序执行如下命令:

ifconfig wlan0 up
wifi_daemon
wifi -o sta
wifi -s

如果是论坛 100ask 提供的 SDK ,只需要修正启动脚本的 wifi_daemon 单词拼写错误就行了。

openwrt\target\v851s\v851s-lizard\busybox-init-base-files\etc\init.d\S50wifideamon

#!/bin/sh
#
# Start wifi_daemon....
#

start() {
    printf "Starting wifi_daemon....: "
	wifi_daemon
    sleep 2
	wifi -o sta
}

stop() {
	printf "Stopping wifi_daemon: "
}

case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart|reload)
	stop
	start
	;;
  *)
	echo "Usage: $0 {start|stop|restart}"
	exit 1
esac

exit $?