Skip to content

Instantly share code, notes, and snippets.

@iamblue
Last active November 10, 2015 14:28
Show Gist options
  • Save iamblue/00f0c5cf6e987f1b7834 to your computer and use it in GitHub Desktop.
Save iamblue/00f0c5cf6e987f1b7834 to your computer and use it in GitHub Desktop.
## 去 /etc/config/wireless 修改
## 7688 -> radio0
config wifi-device 'radio0'
option type 'ralink'
option variant 'mt7628'
option country 'TW'
option hwmode '11g'
option htmode 'HT40'
option disabled '0'
option channel '6'
## 7688 ap mode
config wifi-iface 'ap'
option device 'radio0'
option mode 'ap'
option network 'lan'
option ifname 'ra0'
option seq '1'
option key '12345678'
option encryption 'none'
option ssid 'LinkIt_Smart_7688_1234'
config wifi-iface 'sta'
option device 'radio0'
option mode 'sta'
option network 'wan'
option ifname 'apcli0'
option led 'mediatek:orange:wifi'
option ssid 'mcs' # station mode 中要連的 wifi 帳號
option key 'mcs12345' # station mode 中要連的 wifi 密碼
option encryption 'psk2'
option disabled '1'
## usb wifi adapter -> radio1
config wifi-device 'radio1'
option type 'mac80211'
option channel '11'
option hwmode '11g'
option path '101c1000.ohci/usb2/2-1/2-1:1.0'
option htmode 'HT20'
config wifi-iface
option network 'wan'
option ssid 'mcs' #要連的外網的 wifi 帳號
option encryption 'psk2'
option device 'radio1'
option mode 'sta'
option bssid 'XX:XX:XX:XX:XX:XX'
option key 'mcs12345' #要連的外網的 wifi 密碼
## bssid 取得方式:http://www.lucadentella.it/en/2014/11/08/yun-adattatore-wifi-usb/
## 參考他的解法,先去 webUI -> Network -> wifi 按照他的設定後,再回來 /etc/config/wireless 就會看到 bssid
## 目前遇到一些已知問題: iphone 開 ap 時必須先確認沒有其他連線,否則 7688 DHCP 會一直不讓連。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment