21: Configuring a WiFi connection
_______________________________________________________________________________________________________
_____________________________________________________________________________________________________
© Virtual Access 2017
GW1000 Series User Manual
Issue: 1.9
Page 158 of 350
21.4
Configuring WiFi using UCI
The configuration files are stored on:
Network file /etc/config/network
Wireless file /etc/config/wireless
21.4.1
AP modem on a new Ethernet interface using package options
root@VA_router:~# uci export network
package network
config interface 'newwifilan'
option proto 'static'
option ipaddr '192.168.111.1'
option netmask '255.255.255.0'
root@VA_router:~# uci export wireless
package wireless
config wifi-device 'radio0'
option type 'mac80211'
option channel '11'
option phy 'phy0'
option hwmode '11ng'
option htmode 'HT20'
list ht_capab 'SHORT-GI-40'
list ht_capab 'TX-STBC'
list ht_capab 'RX-STBC1'
list ht_capab 'DSSS_CCK-40'
option txpower '17'
option country 'US'
config wifi-iface
option device 'radio0'
option mode 'ap'
option disabled '1'
option ssid 'Test_AP'
option network 'newwifilan'
option encryption 'psk'
option key 'secretkey'