Annotation of elwix/config/etc/uboot/rc.d/011.ap_multi.stop, revision 1.3

1.2       misho       1: #!/bin/sh
                      2: 
                      3: IFACE="wlan1"
                      4: WIFIDEV="ath0"
1.3     ! misho       5: CLONEOPTS=""
1.2       misho       6: 
                      7: REGDOMAIN=""
                      8: COUNTRY=""
                      9: 
                     10: SSID="ap-multi"
                     11: CHAN="149:a"
                     12: BINT="100"
                     13: WIFIOPTS="-bgscan"
                     14: #WIFIOPTS="-bgscan -ampdutx -amsdu"
                     15: 
1.3     ! misho      16: OPTS=""
1.2       misho      17: IP="172.31.2.1/30"
1.3     ! misho      18: IP6=""
        !            19: 
        !            20: [ -z "$IFACE" -o -z "$WIFIDEV" ] && exit
1.2       misho      21: 
                     22: echo "Config wireless AP interface $IFACE ..."
                     23: 
1.3     ! misho      24: ifconfig $IFACE create wlandev $WIFIDEV $CLONEOPTS wlanmode hostap || exit
        !            25: if [ -n "$REGDOMAIN" ]; then
        !            26:        ifconfig $IFACE regdomain $REGDOMAIN
        !            27: fi
        !            28: if [ -n "$COUNTRY" ]; then
        !            29:        ifconfig $IFACE country $COUNTRY
        !            30: fi
        !            31: if [ -n "$WIFIOPTS" ]; then
        !            32:        ifconfig $IFACE $WIFIOPTS
        !            33: fi
        !            34: if [ -n "$BINT" ]; then
        !            35:        ifconfig $IFACE bintval $BINT
        !            36: fi
        !            37: if [ -n "$CHAN" ]; then
        !            38:        ifconfig $IFACE channel $CHAN
        !            39: fi
        !            40: if [ -n "$SSID" ]; then
        !            41:        ifconfig $IFACE ssid $SSID
        !            42: fi
        !            43: if [ -n "$IP" ]; then
        !            44:        ifconfig $IFACE inet $IP
        !            45: fi
        !            46: if [ -n "$IP6" ]; then
        !            47:        ifconfig $IFACE inet6 $IP6
        !            48: fi
        !            49: ifconfig $IFACE $OPTS up
1.2       misho      50: 
                     51: [ -x /etc/sysctl.$IFACE ] && /etc/sysctl.$IFACE
                     52: 
                     53: [ -x /etc/wifi_up.sh ] && /etc/wifi_up.sh $IFACE >/dev/null 2>&1 &
                     54: 
                     55: #wlandebug -i $IFACE state+scan+assoc+11n

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>