simple scripts to demonstrate tdma setup

This commit is contained in:
sam 2009-01-14 23:53:06 +00:00
parent d6f3751eea
commit 19af62e535
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,20 @@
#! /bin/sh
#
# Setup a TDMA master and bridge it to a wired NIC.
#
# $FreeBSD$
#
PATH=.:$PATH
. config
SSID='freebsd+tdma'
WLAN=`ifconfig wlan create wlanmode tdma wlandev $WIRELESS`
ifconfig $WLAN ssid "$SSID" tdmaslot 0 channel $CHANNEL
wlandebug -i $WLAN state+scan+tdma
BRIDGE=`ifconfig bridge create`
ifconfig $BRIDGE addm $WLAN addm $WIRED 192.168.2.1/24
ifconfig $WIRED up
ifconfig $WLAN up

View File

@ -0,0 +1,19 @@
#! /bin/sh
#
# Setup a TDMA slave and hook it into a bridge.
#
# $FreeBSD$
#
PATH=.:$PATH
. config
SSID='freebsd+tdma'
WLAN=`ifconfig wlan create wlanmode tdma wlandev $WIRELESS`
ifconfig $WLAN ssid "$SSID" 0
wlandebug -i $WLAN state+scan+tdma
BRIDGE=`ifconfig bridge create`
ifconfig $BRIDGE addm $WLAN 192.168.2.2/24
ifconfig $WLAN up