diff options
author | Zhu Yi <yi.zhu@intel.com> | 2006-04-13 05:20:27 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-04-24 16:15:56 -0400 |
commit | d685b8c226727bf5db907c7241f55461e7f1f008 (patch) | |
tree | 698e2194daef4c065ccbfd22802e7214caf6ea93 /drivers/net/wireless/Kconfig | |
parent | c6c33a779dfe7aa8254be4da08c217914f1390a0 (diff) |
[PATCH] ipw2200: Enable rtap interface for RF promiscuous mode while associated
With this patch, a new promiscuous mode is enabled. If the module is loaded
with the rtap_iface=1 module parameter, two interfaces will be created
(instead of just one).
The second interface is prefixed 'rtap' and provides received 802.11 frames
on the current channel to user space in a radiotap header format.
Example usage:
% modprobe ipw2200 rtap_iface=1
% iwconfig eth1 essid MyNetwork
% dhcpcd eth1
% tcpdump -i rtap0
If you do not specify 'rtap_iface=1' then the rtap interface will
not be created and you will need to turn it on via:
% echo 1 > /sys/bus/pci/drivers/ipw2200/*/rtap_iface
You can filter out what type of information is passed to user space via
the rtap_filter sysfs entry. Currently you can tell the driver to
transmit just the headers (which will provide the RADIOTAP and IEEE
802.11 header but not the payload), to filter based on frame control
type (Management, Control, or Data), and whether to report transmitted
frames, received frames, or both.
The transmit frame reporting is based on a patch by Stefan Rompf.
Filters can be get and set via a sysfs interface. For example, set the
filter to only send headers (0x7), don't report Tx'd frames (0x10), and
don't report data frames (0x100):
% echo 0x117 > /sys/bus/pci/drivers/ipw2200/*/rtap_filter
All your packets are belong to us:
% tethereal -n -i rtap0
Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/Kconfig')
-rw-r--r-- | drivers/net/wireless/Kconfig | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/net/wireless/Kconfig b/drivers/net/wireless/Kconfig index e0874cbfefea..c04971a8e4a8 100644 --- a/drivers/net/wireless/Kconfig +++ b/drivers/net/wireless/Kconfig | |||
@@ -263,6 +263,30 @@ config IPW2200_DEBUG | |||
263 | If you are not trying to debug or develop the IPW2200 driver, you | 263 | If you are not trying to debug or develop the IPW2200 driver, you |
264 | most likely want to say N here. | 264 | most likely want to say N here. |
265 | 265 | ||
266 | config IPW2200_PROMISCUOUS | ||
267 | bool "Enable creation of a RF radiotap promiscuous interface." | ||
268 | depends on IPW2200 | ||
269 | select IEEE80211_RADIOTAP | ||
270 | ---help--- | ||
271 | Enables the creation of a second interface prefixed 'rtap'. | ||
272 | This second interface will provide every received in radiotap | ||
273 | format. | ||
274 | |||
275 | This is useful for performing wireless network analysis while | ||
276 | maintaining an active association. | ||
277 | |||
278 | Example usage: | ||
279 | |||
280 | % modprobe ipw2200 rtap_iface=1 | ||
281 | % ifconfig rtap0 up | ||
282 | % tethereal -i rtap0 | ||
283 | |||
284 | If you do not specify 'rtap_iface=1' as a module parameter then | ||
285 | the rtap interface will not be created and you will need to turn | ||
286 | it on via sysfs: | ||
287 | |||
288 | % echo 1 > /sys/bus/pci/drivers/ipw2200/*/rtap_iface | ||
289 | |||
266 | config AIRO | 290 | config AIRO |
267 | tristate "Cisco/Aironet 34X/35X/4500/4800 ISA and PCI cards" | 291 | tristate "Cisco/Aironet 34X/35X/4500/4800 ISA and PCI cards" |
268 | depends on NET_RADIO && ISA_DMA_API && (PCI || BROKEN) | 292 | depends on NET_RADIO && ISA_DMA_API && (PCI || BROKEN) |