3 # Script for testing DFS; setup an AP vap on a DFS channel
4 # then simulate a radar event and verify operation.
14 sysctl net.wlan.nol_timeout=60
15 #mwldebug state+node+reset+xmit+recv+beacon+hal+hal2
16 WLAN=`ifconfig wlan create wlanmode hostap wlandev $WIRELESS`
17 ifconfig $WLAN country $COUNTRY
18 ifconfig $WLAN ssid $SSID-$COUNTRY channel $CHANNEL mtu 1500
19 BRIDGE=`ifconfig bridge create`
20 ifconfig $BRIDGE addm $WLAN addm $WIRED up
22 wlandebug -i $WLAN state+scan+assoc+11n
25 unit=`echo $WLAN | sed 's/wlan//'`
26 sleep 5; sysctl net.wlan.$unit.radar=1