3 # Script for testing TSN support.
5 # $FreeBSD: src/tools/tools/net80211/scripts/setup.tsn,v 1.1 2008/04/20 20:43:42 sam Exp $
13 CONF=$TMPDIR/tsn-$WLAN.conf
29 wpa_passphrase=$WPA_PASSPHRASE
35 trap "ifconfig $BRIDGE destroy; ifconfig $WLAN destroy; \
38 ifconfig $WLAN create wlandev $WIRELESS wlanmode hostap
39 #wlandebug -i $WLAN assoc+crypto
40 wlandebug -i $WLAN state+assoc+11n+crypto
41 ifconfig $WLAN ssid $SSID
42 ifconfig $WLAN channel $CHANNEL
43 ifconfig $WLAN mtu 1500 # NB: if_bridge requires matching mtu's
46 ifconfig $BRIDGE create
47 ifconfig $BRIDGE addm $WIRED addm $WLAN up
54 #mwldebug -i $WIRELESS keycache
55 start_hostapd -K $CONF