diff options
author | Luis Carlos Cobo <luisca@cozybit.com> | 2007-08-02 13:16:55 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:50:13 -0400 |
commit | 965f8bbc6c92233600b176f4c80299f6766df9bd (patch) | |
tree | 85043fb97112a148d69171b744568fa78de2e05d /drivers/net/wireless/libertas/dev.h | |
parent | 9483f03150cbfa1f706355b7f9d218d6086c6fce (diff) |
[PATCH] libertas: monitor mode support for OLPC firmware
Driver support for the monitor mode support that will be available in the next
OLPC 'bleeding edge' Marvell firmware release (most likely, 5.110.16.p2).
To activate monitor mode,
echo mode > /sys/class/net/{ethX,mshX}/device/libertas_rtap
where mode is the hex mask that specifies which frames to sniff (in short, 0x1
for data, 0x2 for all management but beacons, 0x4 for beacons). Any non zero
mode will activate the monitor mode, inhibiting transmission in ethX and mshX
interfaces and routing all the incoming traffic to a new rtapX interface that
will output the packets in 802.11+radiotap headers format.
Signed-off-by: Luis Carlos Cobo <luisca@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/dev.h')
-rw-r--r-- | drivers/net/wireless/libertas/dev.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/libertas/dev.h b/drivers/net/wireless/libertas/dev.h index 397c5fca0ff5..5697fec0cb1d 100644 --- a/drivers/net/wireless/libertas/dev.h +++ b/drivers/net/wireless/libertas/dev.h | |||
@@ -112,7 +112,9 @@ struct _wlan_private { | |||
112 | struct net_device *dev; | 112 | struct net_device *dev; |
113 | 113 | ||
114 | struct net_device_stats stats; | 114 | struct net_device_stats stats; |
115 | struct net_device *mesh_dev ; /* Virtual device */ | 115 | struct net_device *mesh_dev; /* Virtual device */ |
116 | struct net_device *rtap_net_dev; | ||
117 | struct ieee80211_device *ieee; | ||
116 | 118 | ||
117 | struct iw_statistics wstats; | 119 | struct iw_statistics wstats; |
118 | struct wlan_mesh_stats mstats; | 120 | struct wlan_mesh_stats mstats; |
@@ -362,8 +364,7 @@ struct _wlan_adapter { | |||
362 | 364 | ||
363 | struct cmd_ds_802_11_get_log logmsg; | 365 | struct cmd_ds_802_11_get_log logmsg; |
364 | 366 | ||
365 | u32 linkmode; | 367 | u32 monitormode; |
366 | u32 radiomode; | ||
367 | u8 fw_ready; | 368 | u8 fw_ready; |
368 | 369 | ||
369 | u8 last_scanned_channel; | 370 | u8 last_scanned_channel; |