Thread: [Madwifi-cvs] revision 1469 committed by kelmo
Status: Beta
Brought to you by:
otaku
From: kelmo <svn...@ma...> - 2006-03-10 13:12:13
|
Project : madwifi Revision : 1469 Author : kelmo Date : 2006-03-10 14:12:02 +0100 (Fri, 10 Mar 2006) Log Message : Update 'Live Monitoring and Writing Raw 802.11 Packets' subsection of README to reflect the usage of the raw mode equivalent in madwifi-ng. Signed-off-by: Kel Modderman <ke...@tp...> Affected Files: * trunk/README updated Modified: trunk/README =================================================================== --- trunk/README 2006-03-09 04:04:13 UTC (rev 1468) +++ trunk/README 2006-03-10 13:12:02 UTC (rev 1469) @@ -277,20 +277,22 @@ Live Monitoring and Writing Raw 802.11 Packets ============================================== -The driver can be used in a live "monitor" mode via the ath0raw -device. To turn on the device you must run the following: +The driver can be used in a live "monitor" mode, by creating a monitor VAP +and sending packets to it. All packets sent to a monitor mode VAP will +bypass any state machine. -sysctl -w dev.ath0.rawdev=1 # create ath0raw -ifconfig ath0raw up # start receiving packets on ath0raw +To create a monitor VAP, use: -This will create a ath0raw device. You can send packets to the device and -they will be sent directly to the card, bypassing any state machine. -Finally, you can choose to receive packets on ath0raw in a number of +wlanconfig ath1 create wlandev wifi0 wlanmode monitor +ifconfig ath1 up + +Finally, you can choose to receive packets on ath1 in a number of different packet formats: -sysctl -w dev.ath0.rawdev_type=0 # normal 802.11 frames (default) -sysctl -w dev.ath0.rawdev_type=1 # prism headers + 802.11 -sysctl -w dev.ath0.rawdev_type=2 # radiotap + 802.11 +echo '801' > /proc/sys/net/ath1/dev_type # only 802.11 headers +echo '802' > /proc/sys/net/ath1/dev_type # prism2 headers +echo '803' > /proc/sys/net/ath1/dev_type # radiotap headers +echo '804' > /proc/sys/net/ath1/dev_type # atheros descriptors Known Problems ============== |