svn commit: r187255 - head/tools/tools/net80211/scripts

Sam Leffler sam at FreeBSD.org
Wed Jan 14 15:53:07 PST 2009


Author: sam
Date: Wed Jan 14 23:53:06 2009
New Revision: 187255
URL: http://svn.freebsd.org/changeset/base/187255

Log:
  simple scripts to demonstrate tdma setup

Added:
  head/tools/tools/net80211/scripts/setup.tdma-master   (contents, props changed)
  head/tools/tools/net80211/scripts/setup.tdma-slave   (contents, props changed)

Added: head/tools/tools/net80211/scripts/setup.tdma-master
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/tools/tools/net80211/scripts/setup.tdma-master	Wed Jan 14 23:53:06 2009	(r187255)
@@ -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

Added: head/tools/tools/net80211/scripts/setup.tdma-slave
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/tools/tools/net80211/scripts/setup.tdma-slave	Wed Jan 14 23:53:06 2009	(r187255)
@@ -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


More information about the svn-src-head mailing list