r4902 - developers/werner/wlan/owrt
werner at docs.openmoko.org
werner at docs.openmoko.org
Mon Jan 26 04:19:25 CET 2009
Author: werner
Date: 2009-01-26 04:19:24 +0100 (Mon, 26 Jan 2009)
New Revision: 4902
Modified:
developers/werner/wlan/owrt/NOTES
developers/werner/wlan/owrt/genconf
Log:
More struggling with OpenWRT ...
Modified: developers/werner/wlan/owrt/NOTES
===================================================================
--- developers/werner/wlan/owrt/NOTES 2009-01-25 15:56:11 UTC (rev 4901)
+++ developers/werner/wlan/owrt/NOTES 2009-01-26 03:19:24 UTC (rev 4902)
@@ -1,3 +1,5 @@
+Setup:
+
http://downloads.openwrt.org/kamikaze/8.09_RC2/brcm47xx/openwrt-wrt54g-squashfs.bin
http://192.168.1.1/Upgrade.asp
telnet 192.168.1.1
@@ -5,3 +7,24 @@
wget http://downloads.openwrt.org/kamikaze/8.09_RC2/brcm47xx/openwrt-brcm47xx-squashfs.trx
mtd -r write firmware.trx linux
+
+
+Listen:
+killall -9 hostapd
+### ad-hoc kills monitoring. monitor mode crashes the AP.
+# ifconfig wlan0 down
+# iwconfig wlan0 mode ad-hoc
+# ifconfig wlan0 up
+tcpdump -i mon.wlan0 -s0 -w cap
+
+
+Silence:
+iwconfig wlan0 txpower auto
+iwconfig wlan0 txpower off
+
+
+Fix MAC (https://dev.openwrt.org/ticket/4505):
+
+ifconfig wlan0 down
+ip link set wlan0 address 00:90:4c:5f:00:2a
+ifconfig wlan0 up
Modified: developers/werner/wlan/owrt/genconf
===================================================================
--- developers/werner/wlan/owrt/genconf 2009-01-25 15:56:11 UTC (rev 4901)
+++ developers/werner/wlan/owrt/genconf 2009-01-26 03:19:24 UTC (rev 4902)
@@ -3,12 +3,16 @@
dev=wrt$1
ip=192.168.`expr $1 + 1`.1
nat=192.168.`expr $1 + 1`.2
+chan=`expr $1 \* 3 - 2`
+# 1 4 7 10
+
echo "# Configuration for $dev"
echo "passwd"
echo "uci set network.lan.ipaddr=$ip"
echo "uci set system. at system[0].hostname=$dev"
echo "uci set wireless.wlan0.disabled=0"
+echo "uci set wireless.wlan0.channel=$chan"
echo "uci set wireless. at wifi-iface[0].ssid=$dev"
echo "uci commit network"
echo "uci commit system"
@@ -21,5 +25,5 @@
echo "scp $nat:/etc/resolv.conf /etc/resolv.conf"
echo
echo "opkg update"
-echo "opkg install tcpdump strace ip ntpdatentpdate"
+echo "opkg install tcpdump strace ip ntpdate"
echo "/sbin/reboot"
More information about the commitlog
mailing list