#! /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: src/tools/tools/net80211/scripts/setup.wdsmain,v 1.2 2009/04/15 22:11:04 sam Exp $ # 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 <