Initial import of binutils 2.22 on the new vendor branch
[dragonfly.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: src/tools/tools/net80211/scripts/setup.wds,v 1.1 2008/04/20 20:43:42 sam Exp $
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