Initial import of binutils 2.22 on the new vendor branch
[dragonfly.git] / tools / tools / net80211 / scripts / setup.tdma-slave
1 #! /bin/sh
2 #
3 # Setup a TDMA slave and hook it into a bridge.
4 #
5 # $FreeBSD: src/tools/tools/net80211/scripts/setup.tdma-slave,v 1.2 2009/05/18 18:12:45 sam Exp $
6 #
7 PATH=.:$PATH
8 . config
9
10 SSID='freebsd+tdma'
11
12 WLAN=`ifconfig wlan create wlanmode tdma wlandev $WIRELESS`
13 ifconfig $WLAN ssid "$SSID"
14 wlandebug -i $WLAN state+scan+tdma
15
16 BRIDGE=`ifconfig bridge create`
17 ifconfig $BRIDGE addm $WLAN 192.168.2.2/24
18
19 ifconfig $WLAN up