1#! /bin/sh 2# 3# Script for test vap create+destroy. Also used to verify 4# resources are reclaimed properly on destroy. 5# 6# $FreeBSD$ 7# 8PATH=.:$PATH 9. config 10 11$WLANWATCH& 12 13#mwldebug state+node+reset+xmit+recv+beacon+hal+hal2 14while true 15do 16 WLAN=`ifconfig wlan create wlanmode hostap wlandev $WIRELESS` 17 ifconfig $WLAN ssid $SSID channel $CHANNEL mtu 1500 18 BRIDGE=`ifconfig bridge create` 19 ifconfig $BRIDGE addm $WLAN addm $WIRED up 20 ifconfig $WIRED up 21 wlandebug -i $WLAN state+scan+assoc 22 ifconfig $WLAN up 23 read x 24 ifconfig $WLAN destroy 25 ifconfig $BRIDGE destroy 26done 27