]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - tools/tools/net80211/scripts/setup.simple2
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / tools / tools / net80211 / scripts / setup.simple2
1 #! /bin/sh
2 #
3 # Script for testing multi-bss ap operation.
4 #
5 # $FreeBSD$
6 #
7 PATH=.:$PATH
8 . config
9
10 athdebug state
11 WLAN=`ifconfig wlan create wlanmode hostap wlandev $WIRELESS`
12 ifconfig $WLAN ssid $SSID-1 channel $CHANNEL mtu 1500
13 BRIDGE=`ifconfig bridge create`
14 ifconfig $BRIDGE addm $WLAN addm $WIRED up
15 ifconfig $WIRED up
16 wlandebug -i $WLAN state+scan+assoc
17 ifconfig $WLAN up
18
19 WLAN=`ifconfig wlan create wlanmode hostap wlandev $WIRELESS bssid`
20 #ifconfig $WLAN ssid $SSID-2 channel $CHANNEL mtu 1500
21 ifconfig $WLAN ssid $SSID-2 mtu 1500 -ht
22 ifconfig $BRIDGE addm $WLAN
23 wlandebug -i $WLAN state+scan+assoc
24 ifconfig $WLAN up