simple scripts to demonstrate tdma setup
This commit is contained in:
parent
d6f3751eea
commit
19af62e535
20
tools/tools/net80211/scripts/setup.tdma-master
Normal file
20
tools/tools/net80211/scripts/setup.tdma-master
Normal 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
|
19
tools/tools/net80211/scripts/setup.tdma-slave
Normal file
19
tools/tools/net80211/scripts/setup.tdma-slave
Normal 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
|
Loading…
x
Reference in New Issue
Block a user