]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - tools/tools/net80211/scripts/setup.simple
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / tools / tools / net80211 / scripts / setup.simple
1 #! /bin/sh
2 #
3 # Script for testing simple (single bss) ap operation.
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 BRIDGE=`ifconfig bridge create`
13 ifconfig $BRIDGE addm $WLAN addm $WIRED up
14 ifconfig $WIRED up
15 wlandebug -i $WLAN state+scan+assoc+11n
16 ifconfig $WLAN up