]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - tools/tools/net80211/scripts/setup.local
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / tools / tools / net80211 / scripts / setup.local
1 #! /bin/sh
2 #
3 # Script for testing traffic to the local host (as opposed to bridged).
4 #
5 # $FreeBSD$
6 #
7 PATH=.:$PATH
8 . config
9
10 WLAN=`ifconfig wlan create wlanmode hostap wlandev $WIRELESS`
11 ifconfig $WLAN ssid $SSID channel $CHANNEL mtu 1500
12 ifconfig $WIRED down delete
13 route flush
14 wlandebug -i $WLAN state+scan+assoc+11n
15 #mwldebug tso
16 ifconfig $WLAN 192.168.0.21/24