forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/net/wireless/marvell/mwifiex/fw.h
....@@ -1,10 +1,10 @@
11 /*
2
- * Marvell Wireless LAN device driver: Firmware specific macros & structures
2
+ * NXP Wireless LAN device driver: Firmware specific macros & structures
33 *
4
- * Copyright (C) 2011-2014, Marvell International Ltd.
4
+ * Copyright 2011-2020 NXP
55 *
6
- * This software file (the "File") is distributed by Marvell International
7
- * Ltd. under the terms of the GNU General Public License Version 2, June 1991
6
+ * This software file (the "File") is distributed by NXP
7
+ * under the terms of the GNU General Public License Version 2, June 1991
88 * (the "License"). You may use, redistribute and/or modify this File in
99 * accordance with the terms and conditions of the License, a copy of which
1010 * is available by writing to the Free Software Foundation, Inc.,
....@@ -220,6 +220,7 @@
220220 #define TLV_TYPE_BSS_MODE (PROPRIETARY_TLV_BASE_ID + 206)
221221 #define TLV_TYPE_RANDOM_MAC (PROPRIETARY_TLV_BASE_ID + 236)
222222 #define TLV_TYPE_CHAN_ATTR_CFG (PROPRIETARY_TLV_BASE_ID + 237)
223
+#define TLV_TYPE_MAX_CONN (PROPRIETARY_TLV_BASE_ID + 279)
223224
224225 #define MWIFIEX_TX_DATA_BUF_SIZE_2K 2048
225226
....@@ -846,7 +847,7 @@
846847
847848 struct mwifiex_ietypes_chanstats {
848849 struct mwifiex_ie_types_header header;
849
- struct mwifiex_fw_chan_stats chanstats[0];
850
+ struct mwifiex_fw_chan_stats chanstats[];
850851 } __packed;
851852
852853 struct mwifiex_ie_types_wildcard_ssid_params {
....@@ -1052,6 +1053,8 @@
10521053 enum API_VER_ID {
10531054 KEY_API_VER_ID = 1,
10541055 FW_API_VER_ID = 2,
1056
+ UAP_FW_API_VER_ID = 3,
1057
+ CHANRPT_API_VER_ID = 4,
10551058 };
10561059
10571060 struct hw_spec_api_rev {
....@@ -1082,7 +1085,7 @@
10821085 __le32 reserved_6;
10831086 __le32 dot_11ac_dev_cap;
10841087 __le32 dot_11ac_mcs_support;
1085
- u8 tlvs[0];
1088
+ u8 tlvs[];
10861089 } __packed;
10871090
10881091 struct host_cmd_ds_802_11_rssi_info {
....@@ -1140,7 +1143,7 @@
11401143 __le16 cap_info_bitmap;
11411144 __le16 status_code;
11421145 __le16 a_id;
1143
- u8 ie_buffer[0];
1146
+ u8 ie_buffer[];
11441147 } __packed;
11451148
11461149 struct host_cmd_ds_802_11_associate_rsp {
....@@ -1455,7 +1458,7 @@
14551458 __le32 result;
14561459 __le64 start_tsf;
14571460 __le32 duration;
1458
- u8 tlvbuf[0];
1461
+ u8 tlvbuf[];
14591462 } __packed;
14601463
14611464 struct host_cmd_sdio_sp_rx_aggr_cfg {
....@@ -1625,7 +1628,7 @@
16251628 __le32 reserved2;
16261629 __le32 report_condition;
16271630 __le16 reserved3;
1628
- u8 tlv[0];
1631
+ u8 tlv[];
16291632 } __packed;
16301633
16311634 struct host_cmd_ds_802_11_bg_scan_query {
....@@ -1720,7 +1723,7 @@
17201723
17211724 struct host_cmd_ds_sta_list {
17221725 __le16 sta_count;
1723
- u8 tlv[0];
1726
+ u8 tlv[];
17241727 } __packed;
17251728
17261729 struct mwifiex_ie_types_pwr_capability {
....@@ -1743,7 +1746,7 @@
17431746 struct mwifiex_ie_types_mgmt_frame {
17441747 struct mwifiex_ie_types_header header;
17451748 __le16 frame_control;
1746
- u8 frame_contents[0];
1749
+ u8 frame_contents[];
17471750 };
17481751
17491752 struct mwifiex_ie_types_wmm_queue_status {
....@@ -1861,7 +1864,7 @@
18611864
18621865 struct mwifiex_ie_types_extcap {
18631866 struct mwifiex_ie_types_header header;
1864
- u8 ext_capab[0];
1867
+ u8 ext_capab[];
18651868 } __packed;
18661869
18671870 struct host_cmd_ds_mem_access {
....@@ -1918,12 +1921,12 @@
19181921 __le16 frame_control;
19191922 __le16 cap_info;
19201923 __le16 listen_interval;
1921
- u8 data[0];
1924
+ u8 data[];
19221925 } __packed;
19231926
19241927 struct host_cmd_ds_sys_config {
19251928 __le16 action;
1926
- u8 tlv[0];
1929
+ u8 tlv[];
19271930 };
19281931
19291932 struct host_cmd_11ac_vht_cfg {
....@@ -1956,7 +1959,7 @@
19561959
19571960 struct host_cmd_tlv_passphrase {
19581961 struct mwifiex_ie_types_header header;
1959
- u8 passphrase[0];
1962
+ u8 passphrase[];
19601963 } __packed;
19611964
19621965 struct host_cmd_tlv_wep_key {
....@@ -1978,12 +1981,12 @@
19781981
19791982 struct host_cmd_tlv_ssid {
19801983 struct mwifiex_ie_types_header header;
1981
- u8 ssid[0];
1984
+ u8 ssid[];
19821985 } __packed;
19831986
19841987 struct host_cmd_tlv_rates {
19851988 struct mwifiex_ie_types_header header;
1986
- u8 rates[0];
1989
+ u8 rates[];
19871990 } __packed;
19881991
19891992 struct mwifiex_ie_types_bssid_list {
....@@ -2100,13 +2103,13 @@
21002103 u8 mode;
21012104 u8 action;
21022105 __le16 exprsize;
2103
- u8 expr[0];
2106
+ u8 expr[];
21042107 } __packed;
21052108
21062109 struct host_cmd_ds_mef_cfg {
21072110 __le32 criteria;
21082111 __le16 num_entries;
2109
- struct mwifiex_fw_mef_entry mef_entry[0];
2112
+ struct mwifiex_fw_mef_entry mef_entry[];
21102113 } __packed;
21112114
21122115 #define CONNECTION_TYPE_INFRA 0
....@@ -2169,7 +2172,7 @@
21692172 struct mwifiex_ie_types_multi_chan_info {
21702173 struct mwifiex_ie_types_header header;
21712174 __le16 status;
2172
- u8 tlv_buffer[0];
2175
+ u8 tlv_buffer[];
21732176 } __packed;
21742177
21752178 struct mwifiex_ie_types_mc_group_info {
....@@ -2185,7 +2188,7 @@
21852188 u8 usb_ep_num;
21862189 } hid_num;
21872190 u8 intf_num;
2188
- u8 bss_type_numlist[0];
2191
+ u8 bss_type_numlist[];
21892192 } __packed;
21902193
21912194 struct meas_rpt_map {
....@@ -2250,13 +2253,13 @@
22502253 u8 num_of_fields;
22512254 u8 pkt_type;
22522255 __le16 max_coalescing_delay;
2253
- struct coalesce_filt_field_param params[0];
2256
+ struct coalesce_filt_field_param params[];
22542257 } __packed;
22552258
22562259 struct host_cmd_ds_coalesce_cfg {
22572260 __le16 action;
22582261 __le16 num_of_rules;
2259
- struct coalesce_receive_filt_rule rule[0];
2262
+ struct coalesce_receive_filt_rule rule[];
22602263 } __packed;
22612264
22622265 struct host_cmd_ds_multi_chan_policy {
....@@ -2295,7 +2298,7 @@
22952298
22962299 struct host_cmd_ds_sta_configure {
22972300 __le16 action;
2298
- u8 tlv_buffer[0];
2301
+ u8 tlv_buffer[];
22992302 } __packed;
23002303
23012304 struct host_cmd_ds_command {
....@@ -2386,4 +2389,11 @@
23862389 __le16 action;
23872390 __le16 resp_ctrl;
23882391 } __packed;
2392
+
2393
+struct hw_spec_max_conn {
2394
+ struct mwifiex_ie_types_header header;
2395
+ u8 max_p2p_conn;
2396
+ u8 max_sta_conn;
2397
+} __packed;
2398
+
23892399 #endif /* !_MWIFIEX_FW_H_ */