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