version 1.1.1.1, 2011/07/05 23:43:00
|
version 1.1.1.1.4.2, 2011/11/02 02:05:43
|
Line 7 REGDOMAIN=""
|
Line 7 REGDOMAIN=""
|
COUNTRY="" |
COUNTRY="" |
|
|
SSID="ap" |
SSID="ap" |
CHAN="-1" | BINT="100" |
SPEED="" | |
WIFIOPTS="" |
WIFIOPTS="" |
|
|
OPT="" |
OPT="" |
IP="172.31.1.2/30" |
IP="172.31.1.2/30" |
|
|
[ -r /etc/rc.wifi ] && . /etc/rc.wifi |
|
|
|
echo "Config wireless Station interface $IFACE ..." |
echo "Config wireless Station interface $IFACE ..." |
|
|
createwlan $IFACE $WIFIDEV sta | ifconfig $IFACE create wlandev $WIFIDEV wlanmode sta |
regdomain $IFACE $REGDOMAIN | #ifconfig $IFACE regdomain $REGDOMAIN |
country $IFACE $COUNTRY | #ifconfig $IFACE country $COUNTRY |
speedset $IFACE $SPEED | ifconfig $IFACE $WIFIOPTS |
setwifiopts $IFACE $WIFIOPTS | ifconfig $IFACE bintval $BINT |
setchan $IFACE $CHAN | |
|
|
ifconfig $IFACE ssid $SSID |
ifconfig $IFACE ssid $SSID |
ifconfig $IFACE inet ${IP} ${OPT} up |
ifconfig $IFACE inet ${IP} ${OPT} up |