]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - tools/tools/net80211/scripts/setup.tdma-slave
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.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$
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