aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/hostcmd.h
diff options
context:
space:
mode:
authorLuis Carlos Cobo <luisca@cozybit.com>2007-08-02 13:16:55 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:50:13 -0400
commit965f8bbc6c92233600b176f4c80299f6766df9bd (patch)
tree85043fb97112a148d69171b744568fa78de2e05d /drivers/net/wireless/libertas/hostcmd.h
parent9483f03150cbfa1f706355b7f9d218d6086c6fce (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/hostcmd.h')
-rw-r--r--drivers/net/wireless/libertas/hostcmd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/hostcmd.h b/drivers/net/wireless/libertas/hostcmd.h
index 44cf39c8d1b8..52884eaf2edd 100644
--- a/drivers/net/wireless/libertas/hostcmd.h
+++ b/drivers/net/wireless/libertas/hostcmd.h
@@ -405,6 +405,11 @@ struct cmd_ds_802_11_rf_antenna {
405 405
406}; 406};
407 407
408struct cmd_ds_802_11_monitor_mode {
409 u16 action;
410 u16 mode;
411};
412
408struct cmd_ds_802_11_ps_mode { 413struct cmd_ds_802_11_ps_mode {
409 __le16 action; 414 __le16 action;
410 __le16 nullpktinterval; 415 __le16 nullpktinterval;
@@ -623,6 +628,7 @@ struct cmd_ds_command {
623 struct cmd_ds_802_11_snmp_mib smib; 628 struct cmd_ds_802_11_snmp_mib smib;
624 struct cmd_ds_802_11_rf_tx_power txp; 629 struct cmd_ds_802_11_rf_tx_power txp;
625 struct cmd_ds_802_11_rf_antenna rant; 630 struct cmd_ds_802_11_rf_antenna rant;
631 struct cmd_ds_802_11_monitor_mode monitor;
626 struct cmd_ds_802_11_data_rate drate; 632 struct cmd_ds_802_11_data_rate drate;
627 struct cmd_ds_802_11_rate_adapt_rateset rateset; 633 struct cmd_ds_802_11_rate_adapt_rateset rateset;
628 struct cmd_ds_mac_multicast_adr madr; 634 struct cmd_ds_mac_multicast_adr madr;