Current Path : /usr/src/tools/tools/net80211/scripts/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/src/tools/tools/net80211/scripts/setup.dfs |
#! /bin/sh # # Script for testing DFS; setup an AP vap on a DFS channel # then simulate a radar event and verify operation. # # $FreeBSD: release/9.1.0/tools/tools/net80211/scripts/setup.dfs 181195 2008-08-02 18:01:58Z sam $ # PATH=.:$PATH . config COUNTRY=dk CHANNEL=64:a sysctl net.wlan.nol_timeout=60 #mwldebug state+node+reset+xmit+recv+beacon+hal+hal2 WLAN=`ifconfig wlan create wlanmode hostap wlandev $WIRELESS` ifconfig $WLAN country $COUNTRY ifconfig $WLAN ssid $SSID-$COUNTRY channel $CHANNEL mtu 1500 BRIDGE=`ifconfig bridge create` ifconfig $BRIDGE addm $WLAN addm $WIRED up ifconfig $WIRED up wlandebug -i $WLAN state+scan+assoc+11n ifconfig $WLAN up unit=`echo $WLAN | sed 's/wlan//'` sleep 5; sysctl net.wlan.$unit.radar=1