--- elwix/config/etc/uboot/rc.d/011.tdma_cli.stop 2014/01/23 09:34:55 1.1 +++ elwix/config/etc/uboot/rc.d/011.tdma_cli.stop 2014/01/23 09:34:55 1.1.2.1 @@ -0,0 +1,33 @@ +#!/bin/sh + +IFACE="wlan0" +WIFIDEV="ath0" + +REGDOMAIN="" +COUNTRY="" + +SSID="tdma" +CHAN="-1" +BINT="100" +WIFIOPTS="anywhere" + +OPT="" +IP="172.31.1.2/30" + +echo "Config wireless TDMA (Client) interface $IFACE ..." + +ifconfig $IFACE create wlandev $WIFIDEV wlanmode tdma +#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+tdma