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.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/fw.h b/drivers/net/wireless/mwifiex/fw.h
index b8ce78e2ba47..dda588b35570 100644
--- a/drivers/net/wireless/mwifiex/fw.h
+++ b/drivers/net/wireless/mwifiex/fw.h
@@ -94,6 +94,7 @@ enum MWIFIEX_802_11_PRIVACY_FILTER {
94}; 94};
95 95
96#define CAL_SNR(RSSI, NF) ((s16)((s16)(RSSI)-(s16)(NF))) 96#define CAL_SNR(RSSI, NF) ((s16)((s16)(RSSI)-(s16)(NF)))
97#define CAL_RSSI(SNR, NF) ((s16)((s16)(SNR)+(s16)(NF)))
97 98
98#define UAP_BSS_PARAMS_I 0 99#define UAP_BSS_PARAMS_I 0
99#define UAP_CUSTOM_IE_I 1 100#define UAP_CUSTOM_IE_I 1
@@ -127,6 +128,7 @@ enum MWIFIEX_802_11_PRIVACY_FILTER {
127#define TLV_TYPE_UAP_DTIM_PERIOD (PROPRIETARY_TLV_BASE_ID + 45) 128#define TLV_TYPE_UAP_DTIM_PERIOD (PROPRIETARY_TLV_BASE_ID + 45)
128#define TLV_TYPE_UAP_BCAST_SSID (PROPRIETARY_TLV_BASE_ID + 48) 129#define TLV_TYPE_UAP_BCAST_SSID (PROPRIETARY_TLV_BASE_ID + 48)
129#define TLV_TYPE_UAP_RTS_THRESHOLD (PROPRIETARY_TLV_BASE_ID + 51) 130#define TLV_TYPE_UAP_RTS_THRESHOLD (PROPRIETARY_TLV_BASE_ID + 51)
131#define TLV_TYPE_UAP_AO_TIMER (PROPRIETARY_TLV_BASE_ID + 57)
130#define TLV_TYPE_UAP_WEP_KEY (PROPRIETARY_TLV_BASE_ID + 59) 132#define TLV_TYPE_UAP_WEP_KEY (PROPRIETARY_TLV_BASE_ID + 59)
131#define TLV_TYPE_UAP_WPA_PASSPHRASE (PROPRIETARY_TLV_BASE_ID + 60) 133#define TLV_TYPE_UAP_WPA_PASSPHRASE (PROPRIETARY_TLV_BASE_ID + 60)
132#define TLV_TYPE_UAP_ENCRY_PROTOCOL (PROPRIETARY_TLV_BASE_ID + 64) 134#define TLV_TYPE_UAP_ENCRY_PROTOCOL (PROPRIETARY_TLV_BASE_ID + 64)
@@ -141,6 +143,7 @@ enum MWIFIEX_802_11_PRIVACY_FILTER {
141#define TLV_TYPE_MGMT_IE (PROPRIETARY_TLV_BASE_ID + 105) 143#define TLV_TYPE_MGMT_IE (PROPRIETARY_TLV_BASE_ID + 105)
142#define TLV_TYPE_AUTO_DS_PARAM (PROPRIETARY_TLV_BASE_ID + 113) 144#define TLV_TYPE_AUTO_DS_PARAM (PROPRIETARY_TLV_BASE_ID + 113)
143#define TLV_TYPE_PS_PARAM (PROPRIETARY_TLV_BASE_ID + 114) 145#define TLV_TYPE_PS_PARAM (PROPRIETARY_TLV_BASE_ID + 114)
146#define TLV_TYPE_UAP_PS_AO_TIMER (PROPRIETARY_TLV_BASE_ID + 123)
144#define TLV_TYPE_PWK_CIPHER (PROPRIETARY_TLV_BASE_ID + 145) 147#define TLV_TYPE_PWK_CIPHER (PROPRIETARY_TLV_BASE_ID + 145)
145#define TLV_TYPE_GWK_CIPHER (PROPRIETARY_TLV_BASE_ID + 146) 148#define TLV_TYPE_GWK_CIPHER (PROPRIETARY_TLV_BASE_ID + 146)
146 149
@@ -260,9 +263,12 @@ enum MWIFIEX_802_11_PRIVACY_FILTER {
260#define HostCmd_CMD_TX_RATE_CFG 0x00d6 263#define HostCmd_CMD_TX_RATE_CFG 0x00d6
261#define HostCmd_CMD_802_11_PS_MODE_ENH 0x00e4 264#define HostCmd_CMD_802_11_PS_MODE_ENH 0x00e4
262#define HostCmd_CMD_802_11_HS_CFG_ENH 0x00e5 265#define HostCmd_CMD_802_11_HS_CFG_ENH 0x00e5
266#define HostCmd_CMD_P2P_MODE_CFG 0x00eb
263#define HostCmd_CMD_CAU_REG_ACCESS 0x00ed 267#define HostCmd_CMD_CAU_REG_ACCESS 0x00ed
264#define HostCmd_CMD_SET_BSS_MODE 0x00f7 268#define HostCmd_CMD_SET_BSS_MODE 0x00f7
265#define HostCmd_CMD_PCIE_DESC_DETAILS 0x00fa 269#define HostCmd_CMD_PCIE_DESC_DETAILS 0x00fa
270#define HostCmd_CMD_MGMT_FRAME_REG 0x010c
271#define HostCmd_CMD_REMAIN_ON_CHAN 0x010d
266 272
267#define PROTOCOL_NO_SECURITY 0x01 273#define PROTOCOL_NO_SECURITY 0x01
268#define PROTOCOL_STATIC_WEP 0x02 274#define PROTOCOL_STATIC_WEP 0x02
@@ -288,9 +294,17 @@ enum ENH_PS_MODES {
288 DIS_AUTO_PS = 0xfe, 294 DIS_AUTO_PS = 0xfe,
289}; 295};
290 296
297enum P2P_MODES {
298 P2P_MODE_DISABLE = 0,
299 P2P_MODE_DEVICE = 1,
300 P2P_MODE_GO = 2,
301 P2P_MODE_CLIENT = 3,
302};
303
291#define HostCmd_RET_BIT 0x8000 304#define HostCmd_RET_BIT 0x8000
292#define HostCmd_ACT_GEN_GET 0x0000 305#define HostCmd_ACT_GEN_GET 0x0000
293#define HostCmd_ACT_GEN_SET 0x0001 306#define HostCmd_ACT_GEN_SET 0x0001
307#define HostCmd_ACT_GEN_REMOVE 0x0004
294#define HostCmd_ACT_BITWISE_SET 0x0002 308#define HostCmd_ACT_BITWISE_SET 0x0002
295#define HostCmd_ACT_BITWISE_CLR 0x0003 309#define HostCmd_ACT_BITWISE_CLR 0x0003
296#define HostCmd_RESULT_OK 0x0000 310#define HostCmd_RESULT_OK 0x0000
@@ -388,6 +402,7 @@ enum ENH_PS_MODES {
388#define EVENT_BW_CHANGE 0x00000048 402#define EVENT_BW_CHANGE 0x00000048
389#define EVENT_UAP_MIC_COUNTERMEASURES 0x0000004c 403#define EVENT_UAP_MIC_COUNTERMEASURES 0x0000004c
390#define EVENT_HOSTWAKE_STAIE 0x0000004d 404#define EVENT_HOSTWAKE_STAIE 0x0000004d
405#define EVENT_REMAIN_ON_CHAN_EXPIRED 0x0000005f
391 406
392#define EVENT_ID_MASK 0xffff 407#define EVENT_ID_MASK 0xffff
393#define BSS_NUM_MASK 0xf 408#define BSS_NUM_MASK 0xf
@@ -1331,11 +1346,35 @@ struct host_cmd_tlv_channel_band {
1331 u8 channel; 1346 u8 channel;
1332} __packed; 1347} __packed;
1333 1348
1349struct host_cmd_tlv_ageout_timer {
1350 struct host_cmd_tlv tlv;
1351 __le32 sta_ao_timer;
1352} __packed;
1353
1334struct host_cmd_ds_version_ext { 1354struct host_cmd_ds_version_ext {
1335 u8 version_str_sel; 1355 u8 version_str_sel;
1336 char version_str[128]; 1356 char version_str[128];
1337} __packed; 1357} __packed;
1338 1358
1359struct host_cmd_ds_mgmt_frame_reg {
1360 __le16 action;
1361 __le32 mask;
1362} __packed;
1363
1364struct host_cmd_ds_p2p_mode_cfg {
1365 __le16 action;
1366 __le16 mode;
1367} __packed;
1368
1369struct host_cmd_ds_remain_on_chan {
1370 __le16 action;
1371 u8 status;
1372 u8 reserved;
1373 u8 band_cfg;
1374 u8 channel;
1375 __le32 duration;
1376} __packed;
1377
1339struct host_cmd_ds_802_11_ibss_status { 1378struct host_cmd_ds_802_11_ibss_status {
1340 __le16 action; 1379 __le16 action;
1341 __le16 enable; 1380 __le16 enable;
@@ -1347,6 +1386,7 @@ struct host_cmd_ds_802_11_ibss_status {
1347 1386
1348#define CONNECTION_TYPE_INFRA 0 1387#define CONNECTION_TYPE_INFRA 0
1349#define CONNECTION_TYPE_ADHOC 1 1388#define CONNECTION_TYPE_ADHOC 1
1389#define CONNECTION_TYPE_AP 2
1350 1390
1351struct host_cmd_ds_set_bss_mode { 1391struct host_cmd_ds_set_bss_mode {
1352 u8 con_type; 1392 u8 con_type;
@@ -1444,6 +1484,9 @@ struct host_cmd_ds_command {
1444 struct host_cmd_ds_wmm_get_status get_wmm_status; 1484 struct host_cmd_ds_wmm_get_status get_wmm_status;
1445 struct host_cmd_ds_802_11_key_material key_material; 1485 struct host_cmd_ds_802_11_key_material key_material;
1446 struct host_cmd_ds_version_ext verext; 1486 struct host_cmd_ds_version_ext verext;
1487 struct host_cmd_ds_mgmt_frame_reg reg_mask;
1488 struct host_cmd_ds_remain_on_chan roc_cfg;
1489 struct host_cmd_ds_p2p_mode_cfg mode_cfg;
1447 struct host_cmd_ds_802_11_ibss_status ibss_coalescing; 1490 struct host_cmd_ds_802_11_ibss_status ibss_coalescing;
1448 struct host_cmd_ds_mac_reg_access mac_reg; 1491 struct host_cmd_ds_mac_reg_access mac_reg;
1449 struct host_cmd_ds_bbp_reg_access bbp_reg; 1492 struct host_cmd_ds_bbp_reg_access bbp_reg;