--- elwix/config/etc/uboot/rc.d/011.ap_multi.stop 2014/01/23 09:34:54 1.1 +++ elwix/config/etc/uboot/rc.d/011.ap_multi.stop 2014/09/15 19:06:52 1.2 @@ -0,0 +1,34 @@ +#!/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