]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - tools/tools/net80211/scripts/setup.dfs
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / tools / tools / net80211 / scripts / setup.dfs
1 #! /bin/sh
2 #
3 # Script for testing DFS; setup an AP vap on a DFS channel
4 # then simulate a radar event and verify operation.
5 #
6 # $FreeBSD$
7 #
8 PATH=.:$PATH
9 . config
10
11 COUNTRY=dk
12 CHANNEL=64:a
13
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
21 ifconfig $WIRED up
22 wlandebug -i $WLAN state+scan+assoc+11n
23 ifconfig $WLAN up
24
25 unit=`echo $WLAN | sed 's/wlan//'`
26 sleep 5; sysctl net.wlan.$unit.radar=1