OSDN Git Service

[PATCH] zd1211rw: monitor all packets
authorUlrich Kunitz <kune@deine-taler.de>
Sat, 21 Jul 2007 21:42:13 +0000 (22:42 +0100)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:49:34 +0000 (16:49 -0700)
commitc5691235cf70ae2bd71c1f445eb991191530ec6c
tree9ef5650cca1e85fce72c8d441036cd15dad62e0c
parentcc0b88cf5ecf13cdd750f08e201ce8fadcdb601f
[PATCH] zd1211rw: monitor all packets

While in monitor mode the zd1211rw received only a limited
set of packets. This patch forwards now all packets the device
receives. Notify that while monitoring no FCS checks are done; so
strange packets might appear in the network sniffer of your
choice.

ATTENTION: Support for multiple interfaces on a single ZD1211
device is currently broken. So this code works only on the first
interface.

Here is an example to put the device in monitor mode.

iwconfig wlan0 mode monitor
ifconfig wlan0 up
iwconfig wlan0 channel 10

[dsd@gentoo.org: backport to mainline]
Signed-off-by: Ulrich Kunitz <kune@deine-taler.de>
Signed-off-by: Daniel Drake <dsd@gentoo.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/zd1211rw/zd_chip.h
drivers/net/wireless/zd1211rw/zd_mac.c