wifi 驱动配置 wpa_supplicant的方法
mkdir -p /data/run
echo 'ctrl_interface=/data/run/wpa_supplicant' > /etc/wpa_supplicant.conf
echo 'ctrl_interface=/data/run/wpa_supplicant' > /data/wpa_supplicant.conf
/vendor/bin/hw/wpa_supplicant -D nl80211 -i wlan0 -c /etc/wpa_supplicant.conf -B
/vendor/bin/hw/wpa_supplicant -D nl80211 -i wlan0 -c /data/wpa_supplicant.conf -B
/vendor/bin/wpa_cli -p /data/run/wpa_supplicant -i wlan0 scan
/vendor/bin/wpa_cli -p /data/run/wpa_supplicant -i wlan0 scan_result
/vendor/bin/wpa_cli -p /data/run/wpa_supplicant -i wlan0 add_network
/vendor/bin/wpa_cli -p /data/run/wpa_supplicant -i wlan0 set_network 0 ssid '"HUAWEI-K95AYA"'
/vendor/bin/wpa_cli -p /data/run/wpa_supplicant -i wlan0 set_network 0 psk '"12345678"'
/vendor/bin/wpa_cli -p /data/run/wpa_supplicant -i wlan0 set_network 0 priority 2
/vendor/bin/wpa_cli -p /data/run/wpa_supplicant -i wlan0 set_network 0 scan_ssid 1
/vendor/bin/wpa_cli -p /data/run/wpa_supplicant -i wlan0 enable_network 0
udhcpc -i wlan0 或 ifconfig wlan0 192.168.3.111
ping -I wlan0 192.168.3.24
支付宝扫一扫捐赠
微信公众号: 共鸣圈
欢迎讨论,邮件: 924948$qq.com 请把$改成@
QQ群:263132197
QQ: 924948