Current Path : /usr/src/tools/tools/net80211/scripts/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/src/tools/tools/net80211/scripts/setup.wdsmain |
#! /bin/sh # # Setup an ap that accepts wds traffic from associated stations. # This can be used as the "back end" for setup.extender and/or # setup.repeater. Note that the wds vap's are created by the # wlanwds program that listens for wds discovery events (to create # wds vaps) and for sta leave events (to destroy wds vaps it # created). The WDSUP script is invoked for each wds vap that # gets created--to add the vap to a bridge. # # $FreeBSD: release/9.1.0/tools/tools/net80211/scripts/setup.wdsmain 191128 2009-04-15 22:11:04Z sam $ # PATH=.:$PATH . config SSID='freebsd+wdsmain' WDSUP=$TMPDIR/wdsup$$ #mwldebug state+node+reset+xmit+recv+beacon+hal+hal2 WLAN_AP=`ifconfig wlan create wlanmode hostap wlandev $WIRELESS` ifconfig $WLAN_AP ssid "$SSID" channel $CHANNEL mtu 1500 ifconfig $WLAN_AP dwds -apbridge wlandebug -i $WLAN_AP state+scan+assoc+auth+wds+11n BRIDGE=`ifconfig bridge create` # NB: start wlanwds first to avoid races. rm -f $WDSUP cat >$WDSUP <<EOF #! /bin/sh DEV=\$1 ifconfig $BRIDGE addm \$DEV ifconfig \$DEV up EOF chmod +x $WDSUP $WLANWDS -v -s $WDSUP & ifconfig $BRIDGE addm $WLAN_AP addm $WIRED up ifconfig $WIRED up ifconfig $WLAN_AP up