Ads 468x60px

##EasyReadMore##

17 5月, 2016

[Quark] MI 設定無線網路

//scan wireless device
iwlist wlan0 scanning | grep ESSID
 //Error:wlan0     Interface doesn't support scanning : Operation not supported
 vim /etc/config/wireless
 option mode     ap
 //改成 sta
 //刪掉 key

 //Error:wlan0     Interface doesn't support scanning : Network is down
 ifconfig wlan0 up

//choose wireless information
uci set wireless.@wifi-iface[-1].mode=sta  //station
uci set wireless.@wifi-iface[-1].ssid=Buffalo-G-IoT //can't use "Buffalo-A-IoT" that is 5G not support
uci set wireless.@wifi-iface[-1].key=123456789
uci commit wireless

//set wireless
uci set network.lan.ifname=wlan0
uci set network.lan.proto=dhcp
uci del network.lan.type
uci commit network

//you can check setting is right?
vi /etc/config/network
vi /etc/config/wireless

//restart network
/etc/init.d/network reload
/etc/init.d/network restart

//check wireless state
iwconfig

0 意見:

張貼留言

 
Blogger Templates