aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/fw.h
diff options
context:
space:
mode:
authorAvinash Patil <patila@marvell.com>2012-05-08 21:30:28 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-05-16 12:46:36 -0400
commitede98bfa914ec3285761da4bb9c25d1e160ea85b (patch)
tree5be00b8cd4bdf8b9f3d46ea1325b046700118479 /drivers/net/wireless/mwifiex/fw.h
parente76268da22f9dbe8794d68e6a504a781dfd36998 (diff)
mwifiex: add custom IE framework
1. support for setting custom IE from application hostapd etc. Custom IE addition using auto-indexing and Custom IE deletion using static indices (which are allocated during IE addition and stored in driver) are supported. 2. Separate file for handling IE related execution. Signed-off-by: Avinash Patil <patila@marvell.com> Signed-off-by: Kiran Divekar <dkiran@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/fw.h')
-rw-r--r--drivers/net/wireless/mwifiex/fw.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/fw.h b/drivers/net/wireless/mwifiex/fw.h
index 4fd7a05fee18..0cb2b0cc3ee8 100644
--- a/drivers/net/wireless/mwifiex/fw.h
+++ b/drivers/net/wireless/mwifiex/fw.h
@@ -94,6 +94,9 @@ enum MWIFIEX_802_11_PRIVACY_FILTER {
94#define CAL_SNR(RSSI, NF) ((s16)((s16)(RSSI)-(s16)(NF))) 94#define CAL_SNR(RSSI, NF) ((s16)((s16)(RSSI)-(s16)(NF)))
95 95
96#define UAP_BSS_PARAMS_I 0 96#define UAP_BSS_PARAMS_I 0
97#define UAP_CUSTOM_IE_I 1
98#define MWIFIEX_AUTO_IDX_MASK 0xffff
99#define MWIFIEX_DELETE_MASK 0x0000
97 100
98#define TLV_TYPE_UAP_SSID 0x0000 101#define TLV_TYPE_UAP_SSID 0x0000
99 102
@@ -1299,6 +1302,20 @@ struct host_cmd_ds_802_11_subsc_evt {
1299 __le16 events; 1302 __le16 events;
1300} __packed; 1303} __packed;
1301 1304
1305struct mwifiex_ie {
1306 __le16 ie_index;
1307 __le16 mgmt_subtype_mask;
1308 __le16 ie_length;
1309 u8 ie_buffer[IEEE_MAX_IE_SIZE];
1310} __packed;
1311
1312#define MAX_MGMT_IE_INDEX 16
1313struct mwifiex_ie_list {
1314 __le16 type;
1315 __le16 len;
1316 struct mwifiex_ie ie_list[MAX_MGMT_IE_INDEX];
1317} __packed;
1318
1302struct host_cmd_ds_command { 1319struct host_cmd_ds_command {
1303 __le16 command; 1320 __le16 command;
1304 __le16 size; 1321 __le16 size;