]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - tools/tools/net80211/scripts/setup.wds
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / tools / tools / net80211 / scripts / setup.wds
1 #! /bin/sh
2 #
3 # Script for setting up a legacy WDS vap.
4 # Assumes an ap vap is already setup.
5 # Can be run multiple times to create multiple WDS vaps.
6 #
7 # $FreeBSD$
8 #
9 PATH=.:$PATH
10 . config
11
12 BRIDGE=bridge0
13 #BSSID='00:50:43:20:64:83'
14 #BSSID='00:50:43:20:64:8d'
15 BSSID='00:50:43:20:6f:a9'
16
17 WLAN=`ifconfig wlan create wlanmode wds wlandev $WIRELESS wlanbssid $BSSID wdslegacy`
18 ifconfig $BRIDGE addm $WLAN
19 wlandebug -i $WLAN output+inact+node+11n
20 #ifconfig $WLAN wepkey 1:0x0123456789 deftxkey 1 wep
21 ifconfig $WLAN up