version 1.1, 2014/01/23 09:34:54
|
version 1.2, 2014/09/15 19:06:52
|
Line 0
|
Line 1
|
|
#!/bin/sh |
|
|
|
IFACE="wlan1" |
|
WIFIDEV="ath0" |
|
|
|
REGDOMAIN="" |
|
COUNTRY="" |
|
|
|
SSID="ap-multi" |
|
CHAN="149:a" |
|
BINT="100" |
|
WIFIOPTS="-bgscan" |
|
#WIFIOPTS="-bgscan -ampdutx -amsdu" |
|
|
|
OPT="" |
|
IP="172.31.2.1/30" |
|
|
|
echo "Config wireless AP interface $IFACE ..." |
|
|
|
ifconfig $IFACE create wlandev $WIFIDEV wlanmode hostap |
|
#ifconfig $IFACE regdomain $REGDOMAIN |
|
#ifconfig $IFACE country $COUNTRY |
|
ifconfig $IFACE $WIFIOPTS |
|
ifconfig $IFACE bintval $BINT |
|
ifconfig $IFACE channel $CHAN |
|
|
|
ifconfig $IFACE ssid $SSID |
|
ifconfig $IFACE inet ${IP} ${OPT} up |
|
|
|
[ -x /etc/sysctl.$IFACE ] && /etc/sysctl.$IFACE |
|
|
|
[ -x /etc/wifi_up.sh ] && /etc/wifi_up.sh $IFACE >/dev/null 2>&1 & |
|
|
|
#wlandebug -i $IFACE state+scan+assoc+11n |