| .. | .. |
|---|
| 1 | 1 | /* |
|---|
| 2 | | - * Marvell Wireless LAN device driver: Firmware specific macros & structures |
|---|
| 2 | + * NXP Wireless LAN device driver: Firmware specific macros & structures |
|---|
| 3 | 3 | * |
|---|
| 4 | | - * Copyright (C) 2011-2014, Marvell International Ltd. |
|---|
| 4 | + * Copyright 2011-2020 NXP |
|---|
| 5 | 5 | * |
|---|
| 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 |
|---|
| 8 | 8 | * (the "License"). You may use, redistribute and/or modify this File in |
|---|
| 9 | 9 | * accordance with the terms and conditions of the License, a copy of which |
|---|
| 10 | 10 | * is available by writing to the Free Software Foundation, Inc., |
|---|
| .. | .. |
|---|
| 220 | 220 | #define TLV_TYPE_BSS_MODE (PROPRIETARY_TLV_BASE_ID + 206) |
|---|
| 221 | 221 | #define TLV_TYPE_RANDOM_MAC (PROPRIETARY_TLV_BASE_ID + 236) |
|---|
| 222 | 222 | #define TLV_TYPE_CHAN_ATTR_CFG (PROPRIETARY_TLV_BASE_ID + 237) |
|---|
| 223 | +#define TLV_TYPE_MAX_CONN (PROPRIETARY_TLV_BASE_ID + 279) |
|---|
| 223 | 224 | |
|---|
| 224 | 225 | #define MWIFIEX_TX_DATA_BUF_SIZE_2K 2048 |
|---|
| 225 | 226 | |
|---|
| .. | .. |
|---|
| 846 | 847 | |
|---|
| 847 | 848 | struct mwifiex_ietypes_chanstats { |
|---|
| 848 | 849 | struct mwifiex_ie_types_header header; |
|---|
| 849 | | - struct mwifiex_fw_chan_stats chanstats[0]; |
|---|
| 850 | + struct mwifiex_fw_chan_stats chanstats[]; |
|---|
| 850 | 851 | } __packed; |
|---|
| 851 | 852 | |
|---|
| 852 | 853 | struct mwifiex_ie_types_wildcard_ssid_params { |
|---|
| .. | .. |
|---|
| 1052 | 1053 | enum API_VER_ID { |
|---|
| 1053 | 1054 | KEY_API_VER_ID = 1, |
|---|
| 1054 | 1055 | FW_API_VER_ID = 2, |
|---|
| 1056 | + UAP_FW_API_VER_ID = 3, |
|---|
| 1057 | + CHANRPT_API_VER_ID = 4, |
|---|
| 1055 | 1058 | }; |
|---|
| 1056 | 1059 | |
|---|
| 1057 | 1060 | struct hw_spec_api_rev { |
|---|
| .. | .. |
|---|
| 1082 | 1085 | __le32 reserved_6; |
|---|
| 1083 | 1086 | __le32 dot_11ac_dev_cap; |
|---|
| 1084 | 1087 | __le32 dot_11ac_mcs_support; |
|---|
| 1085 | | - u8 tlvs[0]; |
|---|
| 1088 | + u8 tlvs[]; |
|---|
| 1086 | 1089 | } __packed; |
|---|
| 1087 | 1090 | |
|---|
| 1088 | 1091 | struct host_cmd_ds_802_11_rssi_info { |
|---|
| .. | .. |
|---|
| 1140 | 1143 | __le16 cap_info_bitmap; |
|---|
| 1141 | 1144 | __le16 status_code; |
|---|
| 1142 | 1145 | __le16 a_id; |
|---|
| 1143 | | - u8 ie_buffer[0]; |
|---|
| 1146 | + u8 ie_buffer[]; |
|---|
| 1144 | 1147 | } __packed; |
|---|
| 1145 | 1148 | |
|---|
| 1146 | 1149 | struct host_cmd_ds_802_11_associate_rsp { |
|---|
| .. | .. |
|---|
| 1455 | 1458 | __le32 result; |
|---|
| 1456 | 1459 | __le64 start_tsf; |
|---|
| 1457 | 1460 | __le32 duration; |
|---|
| 1458 | | - u8 tlvbuf[0]; |
|---|
| 1461 | + u8 tlvbuf[]; |
|---|
| 1459 | 1462 | } __packed; |
|---|
| 1460 | 1463 | |
|---|
| 1461 | 1464 | struct host_cmd_sdio_sp_rx_aggr_cfg { |
|---|
| .. | .. |
|---|
| 1625 | 1628 | __le32 reserved2; |
|---|
| 1626 | 1629 | __le32 report_condition; |
|---|
| 1627 | 1630 | __le16 reserved3; |
|---|
| 1628 | | - u8 tlv[0]; |
|---|
| 1631 | + u8 tlv[]; |
|---|
| 1629 | 1632 | } __packed; |
|---|
| 1630 | 1633 | |
|---|
| 1631 | 1634 | struct host_cmd_ds_802_11_bg_scan_query { |
|---|
| .. | .. |
|---|
| 1720 | 1723 | |
|---|
| 1721 | 1724 | struct host_cmd_ds_sta_list { |
|---|
| 1722 | 1725 | __le16 sta_count; |
|---|
| 1723 | | - u8 tlv[0]; |
|---|
| 1726 | + u8 tlv[]; |
|---|
| 1724 | 1727 | } __packed; |
|---|
| 1725 | 1728 | |
|---|
| 1726 | 1729 | struct mwifiex_ie_types_pwr_capability { |
|---|
| .. | .. |
|---|
| 1743 | 1746 | struct mwifiex_ie_types_mgmt_frame { |
|---|
| 1744 | 1747 | struct mwifiex_ie_types_header header; |
|---|
| 1745 | 1748 | __le16 frame_control; |
|---|
| 1746 | | - u8 frame_contents[0]; |
|---|
| 1749 | + u8 frame_contents[]; |
|---|
| 1747 | 1750 | }; |
|---|
| 1748 | 1751 | |
|---|
| 1749 | 1752 | struct mwifiex_ie_types_wmm_queue_status { |
|---|
| .. | .. |
|---|
| 1861 | 1864 | |
|---|
| 1862 | 1865 | struct mwifiex_ie_types_extcap { |
|---|
| 1863 | 1866 | struct mwifiex_ie_types_header header; |
|---|
| 1864 | | - u8 ext_capab[0]; |
|---|
| 1867 | + u8 ext_capab[]; |
|---|
| 1865 | 1868 | } __packed; |
|---|
| 1866 | 1869 | |
|---|
| 1867 | 1870 | struct host_cmd_ds_mem_access { |
|---|
| .. | .. |
|---|
| 1918 | 1921 | __le16 frame_control; |
|---|
| 1919 | 1922 | __le16 cap_info; |
|---|
| 1920 | 1923 | __le16 listen_interval; |
|---|
| 1921 | | - u8 data[0]; |
|---|
| 1924 | + u8 data[]; |
|---|
| 1922 | 1925 | } __packed; |
|---|
| 1923 | 1926 | |
|---|
| 1924 | 1927 | struct host_cmd_ds_sys_config { |
|---|
| 1925 | 1928 | __le16 action; |
|---|
| 1926 | | - u8 tlv[0]; |
|---|
| 1929 | + u8 tlv[]; |
|---|
| 1927 | 1930 | }; |
|---|
| 1928 | 1931 | |
|---|
| 1929 | 1932 | struct host_cmd_11ac_vht_cfg { |
|---|
| .. | .. |
|---|
| 1956 | 1959 | |
|---|
| 1957 | 1960 | struct host_cmd_tlv_passphrase { |
|---|
| 1958 | 1961 | struct mwifiex_ie_types_header header; |
|---|
| 1959 | | - u8 passphrase[0]; |
|---|
| 1962 | + u8 passphrase[]; |
|---|
| 1960 | 1963 | } __packed; |
|---|
| 1961 | 1964 | |
|---|
| 1962 | 1965 | struct host_cmd_tlv_wep_key { |
|---|
| .. | .. |
|---|
| 1978 | 1981 | |
|---|
| 1979 | 1982 | struct host_cmd_tlv_ssid { |
|---|
| 1980 | 1983 | struct mwifiex_ie_types_header header; |
|---|
| 1981 | | - u8 ssid[0]; |
|---|
| 1984 | + u8 ssid[]; |
|---|
| 1982 | 1985 | } __packed; |
|---|
| 1983 | 1986 | |
|---|
| 1984 | 1987 | struct host_cmd_tlv_rates { |
|---|
| 1985 | 1988 | struct mwifiex_ie_types_header header; |
|---|
| 1986 | | - u8 rates[0]; |
|---|
| 1989 | + u8 rates[]; |
|---|
| 1987 | 1990 | } __packed; |
|---|
| 1988 | 1991 | |
|---|
| 1989 | 1992 | struct mwifiex_ie_types_bssid_list { |
|---|
| .. | .. |
|---|
| 2100 | 2103 | u8 mode; |
|---|
| 2101 | 2104 | u8 action; |
|---|
| 2102 | 2105 | __le16 exprsize; |
|---|
| 2103 | | - u8 expr[0]; |
|---|
| 2106 | + u8 expr[]; |
|---|
| 2104 | 2107 | } __packed; |
|---|
| 2105 | 2108 | |
|---|
| 2106 | 2109 | struct host_cmd_ds_mef_cfg { |
|---|
| 2107 | 2110 | __le32 criteria; |
|---|
| 2108 | 2111 | __le16 num_entries; |
|---|
| 2109 | | - struct mwifiex_fw_mef_entry mef_entry[0]; |
|---|
| 2112 | + struct mwifiex_fw_mef_entry mef_entry[]; |
|---|
| 2110 | 2113 | } __packed; |
|---|
| 2111 | 2114 | |
|---|
| 2112 | 2115 | #define CONNECTION_TYPE_INFRA 0 |
|---|
| .. | .. |
|---|
| 2169 | 2172 | struct mwifiex_ie_types_multi_chan_info { |
|---|
| 2170 | 2173 | struct mwifiex_ie_types_header header; |
|---|
| 2171 | 2174 | __le16 status; |
|---|
| 2172 | | - u8 tlv_buffer[0]; |
|---|
| 2175 | + u8 tlv_buffer[]; |
|---|
| 2173 | 2176 | } __packed; |
|---|
| 2174 | 2177 | |
|---|
| 2175 | 2178 | struct mwifiex_ie_types_mc_group_info { |
|---|
| .. | .. |
|---|
| 2185 | 2188 | u8 usb_ep_num; |
|---|
| 2186 | 2189 | } hid_num; |
|---|
| 2187 | 2190 | u8 intf_num; |
|---|
| 2188 | | - u8 bss_type_numlist[0]; |
|---|
| 2191 | + u8 bss_type_numlist[]; |
|---|
| 2189 | 2192 | } __packed; |
|---|
| 2190 | 2193 | |
|---|
| 2191 | 2194 | struct meas_rpt_map { |
|---|
| .. | .. |
|---|
| 2250 | 2253 | u8 num_of_fields; |
|---|
| 2251 | 2254 | u8 pkt_type; |
|---|
| 2252 | 2255 | __le16 max_coalescing_delay; |
|---|
| 2253 | | - struct coalesce_filt_field_param params[0]; |
|---|
| 2256 | + struct coalesce_filt_field_param params[]; |
|---|
| 2254 | 2257 | } __packed; |
|---|
| 2255 | 2258 | |
|---|
| 2256 | 2259 | struct host_cmd_ds_coalesce_cfg { |
|---|
| 2257 | 2260 | __le16 action; |
|---|
| 2258 | 2261 | __le16 num_of_rules; |
|---|
| 2259 | | - struct coalesce_receive_filt_rule rule[0]; |
|---|
| 2262 | + struct coalesce_receive_filt_rule rule[]; |
|---|
| 2260 | 2263 | } __packed; |
|---|
| 2261 | 2264 | |
|---|
| 2262 | 2265 | struct host_cmd_ds_multi_chan_policy { |
|---|
| .. | .. |
|---|
| 2295 | 2298 | |
|---|
| 2296 | 2299 | struct host_cmd_ds_sta_configure { |
|---|
| 2297 | 2300 | __le16 action; |
|---|
| 2298 | | - u8 tlv_buffer[0]; |
|---|
| 2301 | + u8 tlv_buffer[]; |
|---|
| 2299 | 2302 | } __packed; |
|---|
| 2300 | 2303 | |
|---|
| 2301 | 2304 | struct host_cmd_ds_command { |
|---|
| .. | .. |
|---|
| 2386 | 2389 | __le16 action; |
|---|
| 2387 | 2390 | __le16 resp_ctrl; |
|---|
| 2388 | 2391 | } __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 | + |
|---|
| 2389 | 2399 | #endif /* !_MWIFIEX_FW_H_ */ |
|---|