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# 8PATH=.:$PATH 9. config 10 11BRIDGE=bridge0 12#BSSID='00:50:43:20:64:83' 13#BSSID='00:50:43:20:64:8d' 14BSSID='00:50:43:20:6f:a9' 15 16WLAN=`ifconfig wlan create wlanmode wds wlandev $WIRELESS wlanbssid $BSSID wdslegacy` 17ifconfig $BRIDGE addm $WLAN 18wlandebug -i $WLAN output+inact+node+11n 19#ifconfig $WLAN wepkey 1:0x0123456789 deftxkey 1 wep 20ifconfig $WLAN up 21