r4911 - in developers/werner/wlan/freeze: . 4if

werner at docs.openmoko.org werner at docs.openmoko.org
Thu Feb 5 03:22:07 CET 2009


Author: werner
Date: 2009-02-05 03:22:05 +0100 (Thu, 05 Feb 2009)
New Revision: 4911

Added:
   developers/werner/wlan/freeze/4if/
   developers/werner/wlan/freeze/4if/HW
   developers/werner/wlan/freeze/4if/run
Log:
After the AP setup didn't pan out, replace them with PCI cards all in
the same PC. This is much better but still has some quirks ...



Added: developers/werner/wlan/freeze/4if/HW
===================================================================
--- developers/werner/wlan/freeze/4if/HW	                        (rev 0)
+++ developers/werner/wlan/freeze/4if/HW	2009-02-05 02:22:05 UTC (rev 4911)
@@ -0,0 +1,22 @@
+wlan0	00:06:4f:5f:0a:1a	Blument	BNNC-03	RTL-8185L	rtl8180
+wlan4	00:21:29:ec:90:4f	Linksys WMP54G	RaLink RT2561	rt61pci
+-	-			Netgear	WG311v3	Marvell 88w8335	-
+wlan5	00:21:91:59:60:ce	D-Link	DWA-510	RaLink RT2561	rt61pci
+wlan6	00:21:27:e7:08:41	TP-Link	TL-WN551G Atheros AR2413 ath5k
+
+
+	Master	Monitor	Beacon	Strength Stations
+				Beacon	Scan (*)
+wlan0	-	ok	ok	-	9-14	8-14
+wlan4	ok	ok	ok	-32dB	9-11
+wlan5	ok	ok	ok	-56dB	1	4-7	7-12
+wlan6	-	ok	ok	-45	7-9
+
+Neo	-	-	-	-	2-9
+
+(*) Original order, swapping wlan0 and wlan5, with big antenna from Linksys
+
+Features that need checking/debugging:
+- injection
+- passive scan
+- txpower on/off

Added: developers/werner/wlan/freeze/4if/run
===================================================================
--- developers/werner/wlan/freeze/4if/run	                        (rev 0)
+++ developers/werner/wlan/freeze/4if/run	2009-02-05 02:22:05 UTC (rev 4911)
@@ -0,0 +1,80 @@
+#!/bin/sh -x
+
+hostapd()
+{
+    /home/moko/git/hostap/hostapd/hostapd "$@"
+}
+
+
+# wlan0 = Blument BNNC-03, excellent reception but no master mode
+# wlan4 = Linksys WMP54G, good reception, master mode
+# wlan5 = D-Link DWA-510, good reception,  master mode
+# wlan6 = TP-Link TL-WN551G, tolerable reception, no master mode
+
+AP="wlan4 wlan5"
+SNIFF="wlan0 wlan6"
+
+FROM=1
+TO=2
+
+ROUNDS=100
+
+
+killall hostapd
+killall airodump-ng
+
+for n in $AP $SNIFF; do
+    ifconfig $n down
+done
+
+chan=$FROM
+tx=auto
+for n in $AP; do
+    cat <<EOF >_$n.conf
+interface=$n
+driver=nl80211
+ssid=wtest
+hw_mode=g
+channel=$chan
+EOF
+    iwconfig $n txpower $tx
+    hostapd -B _$n.conf
+    chan=$TO
+    tx=off
+done
+
+chan=$FROM
+for n in $SNIFF; do
+    iwconfig $n mode monitor chan $chan
+    ifconfig $n up
+    chan=$TO
+done
+
+i=0
+set - $AP
+a=$1
+b=$2
+while [ $i -lt $ROUNDS ]; do
+    echo round $i
+    chan=$FROM
+    for n in $SNIFF; do
+        airodump-ng --beacons --channel $chan -w ch$chan-`printf %03d $i` $n \
+	  >/dev/null 2>/dev/null &
+	chan=$TO
+    done
+
+    sleep 1
+    iwconfig $a txpower off
+    # @@@ ha ha, doesn't work :-( only restarting hostapd brings it back to life
+    iwconfig $b txpower auto
+    sleep 2
+
+    killall airodump-ng
+    tmp=$a
+    a=$b
+    b=$tmp
+    i=`expr $i + 1`
+done
+
+killall hostapd
+killall airodump-ng


Property changes on: developers/werner/wlan/freeze/4if/run
___________________________________________________________________
Name: svn:executable
   + *




More information about the commitlog mailing list