aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/fw.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/mwifiex/fw.h')
-rw-r--r--drivers/net/wireless/mwifiex/fw.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/fw.h b/drivers/net/wireless/mwifiex/fw.h
index 5a5d06659d57..6d6e5ae71eaa 100644
--- a/drivers/net/wireless/mwifiex/fw.h
+++ b/drivers/net/wireless/mwifiex/fw.h
@@ -300,6 +300,7 @@ enum MWIFIEX_802_11_PRIVACY_FILTER {
300#define HostCmd_CMD_802_11_TX_RATE_QUERY 0x007f 300#define HostCmd_CMD_802_11_TX_RATE_QUERY 0x007f
301#define HostCmd_CMD_802_11_IBSS_COALESCING_STATUS 0x0083 301#define HostCmd_CMD_802_11_IBSS_COALESCING_STATUS 0x0083
302#define HostCmd_CMD_VERSION_EXT 0x0097 302#define HostCmd_CMD_VERSION_EXT 0x0097
303#define HostCmd_CMD_MEF_CFG 0x009a
303#define HostCmd_CMD_RSSI_INFO 0x00a4 304#define HostCmd_CMD_RSSI_INFO 0x00a4
304#define HostCmd_CMD_FUNC_INIT 0x00a9 305#define HostCmd_CMD_FUNC_INIT 0x00a9
305#define HostCmd_CMD_FUNC_SHUTDOWN 0x00aa 306#define HostCmd_CMD_FUNC_SHUTDOWN 0x00aa
@@ -473,6 +474,23 @@ enum P2P_MODES {
473#define EVENT_GET_BSS_TYPE(event_cause) \ 474#define EVENT_GET_BSS_TYPE(event_cause) \
474 (((event_cause) >> 24) & 0x00ff) 475 (((event_cause) >> 24) & 0x00ff)
475 476
477#define MWIFIEX_MAX_PATTERN_LEN 20
478#define MWIFIEX_MAX_OFFSET_LEN 50
479#define STACK_NBYTES 100
480#define TYPE_DNUM 1
481#define TYPE_BYTESEQ 2
482#define MAX_OPERAND 0x40
483#define TYPE_EQ (MAX_OPERAND+1)
484#define TYPE_EQ_DNUM (MAX_OPERAND+2)
485#define TYPE_EQ_BIT (MAX_OPERAND+3)
486#define TYPE_AND (MAX_OPERAND+4)
487#define TYPE_OR (MAX_OPERAND+5)
488#define MEF_MODE_HOST_SLEEP 1
489#define MEF_ACTION_ALLOW_AND_WAKEUP_HOST 3
490#define MWIFIEX_CRITERIA_BROADCAST BIT(0)
491#define MWIFIEX_CRITERIA_UNICAST BIT(1)
492#define MWIFIEX_CRITERIA_MULTICAST BIT(3)
493
476struct mwifiex_ie_types_header { 494struct mwifiex_ie_types_header {
477 __le16 type; 495 __le16 type;
478 __le16 len; 496 __le16 len;
@@ -1503,6 +1521,19 @@ struct host_cmd_ds_802_11_ibss_status {
1503 __le16 use_g_rate_protect; 1521 __le16 use_g_rate_protect;
1504} __packed; 1522} __packed;
1505 1523
1524struct mwifiex_fw_mef_entry {
1525 u8 mode;
1526 u8 action;
1527 __le16 exprsize;
1528 u8 expr[0];
1529} __packed;
1530
1531struct host_cmd_ds_mef_cfg {
1532 __le32 criteria;
1533 __le16 num_entries;
1534 struct mwifiex_fw_mef_entry mef_entry[0];
1535} __packed;
1536
1506#define CONNECTION_TYPE_INFRA 0 1537#define CONNECTION_TYPE_INFRA 0
1507#define CONNECTION_TYPE_ADHOC 1 1538#define CONNECTION_TYPE_ADHOC 1
1508#define CONNECTION_TYPE_AP 2 1539#define CONNECTION_TYPE_AP 2
@@ -1607,6 +1638,7 @@ struct host_cmd_ds_command {
1607 struct host_cmd_ds_remain_on_chan roc_cfg; 1638 struct host_cmd_ds_remain_on_chan roc_cfg;
1608 struct host_cmd_ds_p2p_mode_cfg mode_cfg; 1639 struct host_cmd_ds_p2p_mode_cfg mode_cfg;
1609 struct host_cmd_ds_802_11_ibss_status ibss_coalescing; 1640 struct host_cmd_ds_802_11_ibss_status ibss_coalescing;
1641 struct host_cmd_ds_mef_cfg mef_cfg;
1610 struct host_cmd_ds_mac_reg_access mac_reg; 1642 struct host_cmd_ds_mac_reg_access mac_reg;
1611 struct host_cmd_ds_bbp_reg_access bbp_reg; 1643 struct host_cmd_ds_bbp_reg_access bbp_reg;
1612 struct host_cmd_ds_rf_reg_access rf_reg; 1644 struct host_cmd_ds_rf_reg_access rf_reg;