wifi8 2.0.0.0

wifi8_types.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** Copyright (C) 2020 MikroElektronika d.o.o.
3 ** Contact: https://www.mikroe.com/contact
4 **
5 ** Permission is hereby granted, free of charge, to any person obtaining a copy
6 ** of this software and associated documentation files (the "Software"), to deal
7 ** in the Software without restriction, including without limitation the rights
8 ** to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 ** copies of the Software, and to permit persons to whom the Software is
10 ** furnished to do so, subject to the following conditions:
11 ** The above copyright notice and this permission notice shall be
12 ** included in all copies or substantial portions of the Software.
13 **
14 ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
16 ** OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
18 ** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
19 ** OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
20 ** USE OR OTHER DEALINGS IN THE SOFTWARE.
21 ****************************************************************************/
22
23
24
25 #ifndef WIFI8_T
26 #define WIFI8_T
27
28 #include "stdint.h"
29
30 #define M2M_STA_CMD_BASE 40
31 #define M2M_CONFIG_CMD_BASE 1
32 #define M2M_AP_CMD_BASE 70
33 #define M2M_SERVER_CMD_BASE 100
34 #define M2M_GEN_CMD_BASE 105
37 /**********************
38 * OTA GROUP requests
39 */
40 #define M2M_OTA_CMD_BASE 100
41 #define WIFI8_CMD_INTERNAL_WRITE 0xc3
42 #define WIFI8_CMD_INTERNAL_READ 0xc4
43 #define WIFI8_CMD_DMA_EXT_WRITE 0xc7
44 #define WIFI8_CMD_DMA_EXT_READ 0xc8
45 #define WIFI8_CMD_SINGLE_WRITE 0xc9
46 #define WIFI8_CMD_SINGLE_READ 0xca
47 #define WIFI8_CMD_RESET 0xcf
48
49 #define WIFI8_SPI_RESP_RETRY_COUNT (10)
50 #define WIFI8_SPI_RETRY_COUNT (10)
51 #define WIFI8_DATA_PKT_SZ_256 256
52 #define WIFI8_DATA_PKT_SZ_512 512
53 #define WIFI8_DATA_PKT_SZ_1K 1024
54 #define WIFI8_DATA_PKT_SZ_4K (4 * 1024)
55 #define WIFI8_DATA_PKT_SZ_8K (8 * 1024)
56 #define WIFI8_DATA_PKT_SZ WIFI8_DATA_PKT_SZ_8K
57
58 #define PROGRAM_START 0x26961735ul
59 #define BOOT_SUCCESS 0x10add09eul
60 #define BOOT_START 0x12345678ul
61
62 #define NBIT31 (0x80000000ul)
63 #define NBIT30 (0x40000000ul)
64 #define NBIT29 (0x20000000ul)
65 #define NBIT28 (0x10000000ul)
66 #define NBIT27 (0x08000000ul)
67 #define NBIT26 (0x04000000ul)
68 #define NBIT25 (0x02000000ul)
69 #define NBIT24 (0x01000000ul)
70 #define NBIT23 (0x00800000ul)
71 #define NBIT22 (0x00400000ul)
72 #define NBIT21 (0x00200000ul)
73 #define NBIT20 (0x00100000ul)
74 #define NBIT19 (0x00080000ul)
75 #define NBIT18 (0x00040000ul)
76 #define NBIT17 (0x00020000ul)
77 #define NBIT16 (0x00010000ul)
78 #define NBIT15 (0x00008000ul)
79 #define NBIT14 (0x00004000ul)
80 #define NBIT13 (0x00002000ul)
81 #define NBIT12 (0x00001000ul)
82 #define NBIT11 (0x00000800ul)
83 #define NBIT10 (0x00000400ul)
84 #define NBIT9 (0x00000200ul)
85 #define NBIT8 (0x00000100ul)
86 #define NBIT7 (0x00000080ul)
87 #define NBIT6 (0x00000040ul)
88 #define NBIT5 (0x00000020ul)
89 #define NBIT4 (0x00000010ul)
90 #define NBIT3 (0x00000008ul)
91 #define NBIT2 (0x00000004ul)
92 #define NBIT1 (0x00000002ul)
93 #define NBIT0 (0x00000001ul)
94
95 #define NMI_PERIPH_REG_BASE 0x1000
96 #define NMI_CHIPID (NMI_PERIPH_REG_BASE)
97 #define rNMI_GP_REG_0 (0x149c)
98 #define rNMI_GP_REG_1 (0x14A0)
99 #define rNMI_GLB_RESET (0x1400)
100 #define rNMI_BOOT_RESET_MUX (0x1118)
101 #define NMI_STATE_REG (0x108c)
102 #define BOOTROM_REG (0xc000cul)
103 #define NMI_REV_REG (0x207acul) /*Also, Used to load ATE firmware from SPI Flash and to ensure that it is running too*/
104 #define M2M_WAIT_FOR_HOST_REG (0x207bcul)
105 #define M2M_FINISH_INIT_STATE 0x02532636ul
106 #define M2M_FINISH_BOOT_ROM 0x10add09eul
107 #define M2M_START_FIRMWARE 0xef522f61ul
108 #define M2M_START_PS_FIRMWARE 0x94992610ul
109
110 #define M2M_ATE_FW_START_VALUE (0x3C1CD57Dul) /*Also, Change this value in boot_firmware if it will be changed here*/
111 #define M2M_ATE_FW_IS_UP_VALUE (0xD75DC1C3ul) /*Also, Change this value in ATE (Burst) firmware if it will be changed here*/
112
113 #define REV_2B0 (0x2B0)
114 #define REV_B0 (0x2B0)
115 #define REV_3A0 (0x3A0)
116 #define CHIP_ID_3000D (0x3000D0ul)
117
118 #define GET_CHIPID() nmi_get_chipid()
119 #define ISNMC1000(id) (((id & 0xfffff000ul) == 0x100000ul) ? 1 : 0)
120 #define ISNMC1500(id) (((id & 0xfffff000ul) == 0x150000ul) ? 1 : 0)
121 #define ISNMC3400(id) (((id & 0xfff0f000ul) == 0x300000ul) ? 1 : 0)
122 #define REV(id) (((id)&0x00000ffful))
123 #define EFUSED_MAC(value) (value & 0xffff0000ul)
124
125 #define rHAVE_SDIO_IRQ_GPIO_BIT (NBIT0)
126 #define rHAVE_USE_PMU_BIT (NBIT1)
127 #define rHAVE_SLEEP_CLK_SRC_RTC_BIT (NBIT2)
128 #define rHAVE_SLEEP_CLK_SRC_XO_BIT (NBIT3)
129 #define rHAVE_EXT_PA_INV_TX_RX (NBIT4)
130 #define rHAVE_LEGACY_RF_SETTINGS (NBIT5)
131 #define rHAVE_LOGS_DISABLED_BIT (NBIT6)
132 #define rHAVE_ETHERNET_MODE_BIT (NBIT7)
133
134 #define NMI_GLB_RESET_0 (NMI_PERIPH_REG_BASE + 0x400)
135 #define NMI_INTR_REG_BASE (NMI_PERIPH_REG_BASE + 0xa00)
136 #define NMI_PIN_MUX_0 (NMI_PERIPH_REG_BASE + 0x408)
137 #define NMI_INTR_ENABLE (NMI_INTR_REG_BASE)
138 #define GET_UINT32(X, Y) (X[0 + Y] + ((uint32_t)X[1 + Y] << 8) + ((uint32_t)X[2 + Y] << 16) + ((uint32_t)X[3 + Y] << 24))
139
140 /* Selection of HIF_INFO
141 */
142 #define M2M_HIF_INFO_SHIFT (0)
143 #define M2M_HIF_INFO_MASK (0xffff)
144 /* Subdivision of HIF_INFO
145 */
146 #define M2M_HIF_BLOCK_SHIFT (14)
147 #define M2M_HIF_BLOCK_MASK (0x3)
148 #define M2M_HIF_LEVEL_SHIFT (0)
149 #define M2M_HIF_LEVEL_MASK (0x3fff)
150 /* Subdivision of HIF_LEVEL
151 */
152 #define M2M_HIF_MAJOR_SHIFT (8)
153 #define M2M_HIF_MAJOR_MASK (0x3f)
154 #define M2M_HIF_MINOR_SHIFT (0)
155 #define M2M_HIF_MINOR_MASK (0xff)
156
157 #define M2M_GET_HIF_INFO(hif_ver) ((uint16_t)(((hif_ver) >> M2M_HIF_INFO_SHIFT) & M2M_HIF_INFO_MASK))
158 #define M2M_GET_HIF_BLOCK(hif_info) ((uint8_t)(((hif_info) >> M2M_HIF_BLOCK_SHIFT) & M2M_HIF_BLOCK_MASK))
159 #define M2M_GET_HIF_LEVEL(hif_info) ((uint16_t)(((hif_info) >> M2M_HIF_LEVEL_SHIFT) & M2M_HIF_LEVEL_MASK))
160 #define M2M_GET_HIF_MAJOR(hif_info) ((uint8_t)(((hif_info) >> M2M_HIF_MAJOR_SHIFT) & M2M_HIF_MAJOR_MASK))
161 #define M2M_GET_HIF_MINOR(hif_info) ((uint8_t)(((hif_info) >> M2M_HIF_MINOR_SHIFT) & M2M_HIF_MINOR_MASK))
162
163 #define M2M_MAKE_HIF_INFO(hif_level) ( \
164 (((uint16_t)(hif_level)&M2M_HIF_LEVEL_MASK) << M2M_HIF_LEVEL_SHIFT) | \
165 (((uint16_t)M2M_HIF_BLOCK_VALUE & M2M_HIF_BLOCK_MASK) << M2M_HIF_BLOCK_SHIFT))
166
167 #define M2M_AUTH_1X_USER_LEN_MAX 100
168 #define M2M_AUTH_1X_PASSWORD_LEN_MAX 256
169
170 #define M2M_HIF_BLOCK_VALUE (2)
171 #define M2M_HIF_MAJOR_VALUE (1)
172 #define M2M_HIF_MINOR_VALUE (4)
174 #define TCP_SOCK_MAX (7)
176 #define UDP_SOCK_MAX 4
178 #define RAW_SOCK_MAX 1
179 #define MAX_SOCKET (TCP_SOCK_MAX + UDP_SOCK_MAX + RAW_SOCK_MAX)
180
181 #define SOCKET_BUFFER_SIZE 1472
182
183 #define TLS_RECORD_HEADER_LENGTH (5)
184 #define ETHERNET_HEADER_OFFSET (34)
185 #define ETHERNET_HEADER_LENGTH (14)
186 #define TCP_IP_HEADER_LENGTH (40)
187 #define UDP_IP_HEADER_LENGTH (28)
188
189 #define IP_PACKET_OFFSET (ETHERNET_HEADER_LENGTH + ETHERNET_HEADER_OFFSET - M2M_HIF_HDR_OFFSET)
190
191 #define TCP_TX_PACKET_OFFSET (IP_PACKET_OFFSET + TCP_IP_HEADER_LENGTH)
192 #define UDP_TX_PACKET_OFFSET (IP_PACKET_OFFSET + UDP_IP_HEADER_LENGTH)
193 #define SSL_TX_PACKET_OFFSET (TCP_TX_PACKET_OFFSET + TLS_RECORD_HEADER_LENGTH)
194
195 #define SOCKET_REQUEST(ctx, req_id, req_args, req_size, req_payload, req_payload_size, req_payload_offset) \
196 hif_send(ctx, M2M_REQ_GROUP_IP, req_id, req_args, req_size, req_payload, req_payload_size, req_payload_offset)
197
198 #define SSL_FLAGS_ACTIVE NBIT0
199
200 #define M2M_802_1X_UNENCRYPTED_USERNAME_FLAG 0x80
202 #define M2M_802_1X_PREPEND_DOMAIN_FLAG 0x40
205 #define M2M_802_1X_MSCHAP2_FLAG 0x01
207 #define SOCKET_CMD_BIND 0x41
208 #define SOCKET_CMD_LISTEN 0x42
209 #define SOCKET_CMD_ACCEPT 0x43
210 #define SOCKET_CMD_CONNECT 0x44
211 #define SOCKET_CMD_SEND 0x45
212 #define SOCKET_CMD_RECV 0x46
213 #define SOCKET_CMD_SENDTO 0x47
214 #define SOCKET_CMD_RECVFROM 0x48
215 #define SOCKET_CMD_CLOSE 0x49
216 #define SOCKET_CMD_DNS_RESOLVE 0x4A
217 #define SOCKET_CMD_SSL_CONNECT 0x4B
218 #define SOCKET_CMD_SSL_SEND 0x4C
219 #define SOCKET_CMD_SSL_RECV 0x4D
220 #define SOCKET_CMD_SSL_CLOSE 0x4E
221 #define SOCKET_CMD_SET_SOCKET_OPTION 0x4F
222 #define SOCKET_CMD_SSL_CREATE 0x50
223 #define SOCKET_CMD_SSL_SET_SOCK_OPT 0x51
224 #define SOCKET_CMD_PING 0x52
225 #define SOCKET_CMD_SSL_CONNECT_ALPN 0x53
226 #define SOCKET_CMD_RAW_SET_SOCK_OPT 0x54
227 #define PING_ERR_SUCCESS 0
228 #define PING_ERR_DEST_UNREACH 1
229 #define PING_ERR_TIMEOUT 2
230 #define HOSTNAME_MAX_SIZE 100
231 #define AF_INET 2
232 #define SOCK_ERR_NO_ERROR 0
233 #define SOCK_STREAM 1
234 #define SOCK_DGRAM 2
235 #define SOCK_RAW 3
236 #define SOCKET_FLAGS_SSL 0x01
237 #define SOCKET_FLAGS_IPPROTO_RAW 0x02
238 #define RAW_SOCK_ID (TCP_SOCK_MAX + UDP_SOCK_MAX)
239
240 #define _htons(A) (uint16_t)((((uint16_t)(A)) << 8) | (((uint16_t)(A)) >> 8))
241
243 #define NM_BSP_B_L_32(x) (x)
244
245 #define NM_BSP_B_L_16(x) (x)
246
247 #define NMI_PERIPH_REG_BASE 0x1000
248 #define NMI_CHIPID (NMI_PERIPH_REG_BASE)
249 #define NMI_PIN_MUX_0 (NMI_PERIPH_REG_BASE + 0x408)
250 #define NMI_INTR_ENABLE (NMI_INTR_REG_BASE)
251
252 #define NMI_SPI_REG_BASE 0xe800
253 #define NMI_SPI_CTL (NMI_SPI_REG_BASE)
254 #define NMI_SPI_MASTER_DMA_ADDR (NMI_SPI_REG_BASE + 0x4)
255 #define NMI_SPI_MASTER_DMA_COUNT (NMI_SPI_REG_BASE + 0x8)
256 #define NMI_SPI_SLAVE_DMA_ADDR (NMI_SPI_REG_BASE + 0xc)
257 #define NMI_SPI_SLAVE_DMA_COUNT (NMI_SPI_REG_BASE + 0x10)
258 #define NMI_SPI_TX_MODE (NMI_SPI_REG_BASE + 0x20)
259 #define NMI_SPI_PROTOCOL_CONFIG (NMI_SPI_REG_BASE + 0x24)
260 #define NMI_SPI_INTR_CTL (NMI_SPI_REG_BASE + 0x2c)
261
262 #define NMI_SPI_PROTOCOL_OFFSET (NMI_SPI_PROTOCOL_CONFIG - NMI_SPI_REG_BASE)
263
264 #define NMI_GLB_RESET_0 (NMI_PERIPH_REG_BASE + 0x400)
265 #define NMI_INTR_REG_BASE (NMI_PERIPH_REG_BASE + 0xa00)
266 #define NMI_PIN_MUX_0 (NMI_PERIPH_REG_BASE + 0x408)
267 #define NMI_INTR_ENABLE (NMI_INTR_REG_BASE)
268
269 /*SPI and I2C only*/
270 #define CORT_HOST_COMM (0x14)
271 #define HOST_CORT_COMM (0x0e)
272 #define WAKE_CLK_REG (0x1)
273 #define CLOCKS_EN_REG (0x13)
274
275 #define TIMEOUT (2000)
276 #define WAKEUP_TRIALS (4)
277
278 #define NMI_AHB_DATA_MEM_BASE 0x30000ul
279 #define NMI_AHB_SHARE_MEM_BASE 0xd0000ul
280
281 #define WIFI_HOST_RCV_CTRL_0 (0x1070)
282 #define WIFI_HOST_RCV_CTRL_1 (0x1084)
283 #define WIFI_HOST_RCV_CTRL_2 (0x1078)
284 #define WIFI_HOST_RCV_CTRL_3 (0x106c)
285 #define WIFI_HOST_RCV_CTRL_4 (0x150400ul)
286
287 #define INTERRUPT_CORTUS_0_3000D0 (0x10a8)
288 #define INTERRUPT_CORTUS_1_3000D0 (0x10ac)
289 #define INTERRUPT_CORTUS_2_3000D0 (0x10b0)
290 #define INTERRUPT_CORTUS_3_3000D0 (0x10b4)
291
292 #define M2M_HIF_MAX_PACKET_SIZE (1600 - 4)
293 #define M2M_HIF_HDR_OFFSET (sizeof(wifi8_hif_hdr_t) + 4)
294
298 #define SOCKET_BUFFER_MAX_LENGTH 1400
299 #define M2M_MAX_GRP_NUM_REQ (127)
300
301 #define SOCKET_CMD_RAW_SET_SOCK_OPT 0x54
302
303 /*
304 Special codes for managing HIF restriction to OTA rollback/switch only
305 */
306 #define HIF_OTA_RB_ONLY 0xFFFF
307 #define HIFCODE_OTA_RB ((M2M_REQ_GROUP_OTA << 8) | M2M_OTA_REQ_ROLLBACK)
308 #define HIFCODE_OTA_SW ((M2M_REQ_GROUP_OTA << 8) | M2M_OTA_REQ_SWITCH_FIRMWARE)
309 /*
310 Codes for new HIF messages (since last HIF major increase).
311 Only need ones which are host->winc.
312 Each entry is formed of ((GroupId << 8) | OpCode)
313 */
314 #define HIFCODE_SSL_WRITECERT ((M2M_REQ_GROUP_SSL << 8) | M2M_SSL_REQ_WRITE_OWN_CERTS)
315 #define HIFCODE_WIFI_PASSIVESCAN ((M2M_REQ_GROUP_WIFI << 8) | M2M_WIFI_REQ_PASSIVE_SCAN)
316 #define HIFCODE_WIFI_CONN ((M2M_REQ_GROUP_WIFI << 8) | M2M_WIFI_REQ_CONN)
317 #define HIFCODE_WIFI_CONN_PARAM ((M2M_REQ_GROUP_WIFI << 8) | M2M_WIFI_IND_CONN_PARAM)
318 #define HIFCODE_WIFI_DELETE_CRED ((M2M_REQ_GROUP_WIFI << 8) | M2M_WIFI_REQRSP_DELETE_APID)
319 #define HIFCODE_WIFI_START_PROV_MODE ((M2M_REQ_GROUP_WIFI << 8) | M2M_WIFI_REQ_START_PROVISION_MODE)
320 #define HIFCODE_WIFI_ENABLE_AP ((M2M_REQ_GROUP_WIFI << 8) | M2M_WIFI_REQ_ENABLE_AP)
321 #define HIFCODE_IP_RAW_SOCK_OPT ((M2M_REQ_GROUP_IP << 8) | SOCKET_CMD_RAW_SET_SOCK_OPT)
322
323 #define NMI_PERIPH_REG_BASE 0x1000
324 #define NMI_CHIPID (NMI_PERIPH_REG_BASE)
325 #define NMI_PIN_MUX_0 (NMI_PERIPH_REG_BASE + 0x408)
326 #define NMI_INTR_ENABLE (NMI_INTR_REG_BASE)
327
328 #define NMI_SPI_REG_BASE 0xe800
329 #define NMI_SPI_CTL (NMI_SPI_REG_BASE)
330 #define NMI_SPI_MASTER_DMA_ADDR (NMI_SPI_REG_BASE + 0x4)
331 #define NMI_SPI_MASTER_DMA_COUNT (NMI_SPI_REG_BASE + 0x8)
332 #define NMI_SPI_SLAVE_DMA_ADDR (NMI_SPI_REG_BASE + 0xc)
333 #define NMI_SPI_SLAVE_DMA_COUNT (NMI_SPI_REG_BASE + 0x10)
334 #define NMI_SPI_TX_MODE (NMI_SPI_REG_BASE + 0x20)
335 #define NMI_SPI_PROTOCOL_CONFIG (NMI_SPI_REG_BASE + 0x24)
336 #define NMI_SPI_INTR_CTL (NMI_SPI_REG_BASE + 0x2c)
337
338 #define NMI_SPI_PROTOCOL_OFFSET (NMI_SPI_PROTOCOL_CONFIG - NMI_SPI_REG_BASE)
339
340 #define SPI_BASE NMI_SPI_REG_BASE
341
342 #define SPI_RESP_RETRY_COUNT (10)
343 #define SPI_RETRY_COUNT (10)
344 #define DATA_PKT_SZ_256 256
345 #define DATA_PKT_SZ_512 512
346 #define DATA_PKT_SZ_1K 1024
347 #define DATA_PKT_SZ_4K (4 * 1024)
348 #define DATA_PKT_SZ_8K (8 * 1024)
349 #define DATA_PKT_SZ DATA_PKT_SZ_8K
350
351 /*
352 List of new HIF messages (since last HIF major increase).
353 Only need to list ones which are host->winc.
354 Additionally, entry 0 used to indicate OTA RB/SW only.
355 */
356 #define NEW_HIF_LIST \
357 HIF_OTA_RB_ONLY, \
358 HIFCODE_SSL_WRITECERT, \
359 HIFCODE_WIFI_PASSIVESCAN, \
360 HIFCODE_WIFI_CONN, \
361 HIFCODE_WIFI_CONN_PARAM, \
362 HIFCODE_WIFI_DELETE_CRED, \
363 HIFCODE_WIFI_START_PROV_MODE, \
364 HIFCODE_WIFI_ENABLE_AP, \
365 HIFCODE_IP_RAW_SOCK_OPT
366
367 #define WIFI_1X_TLS_HS_FLAGS_PEER_AUTH NBIT1
368 #define WIFI_1X_TLS_HS_FLAGS_PEER_CERTTIMECHECK NBIT2
369 #define WIFI_1X_TLS_HS_FLAGS_REQUIRE_TIME NBIT3
370 #define WIFI_1X_TLS_HS_FLAGS_SESSION_CACHING NBIT4
371 #define WIFI_1X_TLS_HS_FLAGS_SPECIFY_ROOTCERT NBIT6
372
373 #define WIFI_1X_TLS_HS_FLAGS_DEFAULT ( \
374 WIFI_1X_TLS_HS_FLAGS_PEER_AUTH | WIFI_1X_TLS_HS_FLAGS_PEER_CERTTIMECHECK | WIFI_1X_TLS_HS_FLAGS_SESSION_CACHING)
375
376 #define HIF_BLACKLIST_SZ (sizeof(gau16_hif_blacklist) / sizeof(gau16_hif_blacklist[0]))
377
378 #define WEP_104_KEY_SIZE ((uint8_t)13)
379
380 #define PSK_CALC_LEN 40
381
382 #define M2M_MAC_ADDRES_LEN 6
383
384 #define MAX_TRX_CFG_SZ 8
385 #define M2M_CRED_ENCRYPT_FLAG 0x02
386 #define M2M_WIFI_CONN_BSSID_FLAG 0x01
387 #define M2M_CRED_STORE_FLAG 0x01
388
389 #define M2M_OTA_CMD_BASE 100
390 #define M2M_MAX_GRP_NUM_REQ (127)
391 #define WEP_40_KEY_SIZE ((uint8_t)5)
392 #define WEP_104_KEY_SIZE ((uint8_t)13)
393 #define WEP_40_KEY_STRING_SIZE ((uint8_t)10)
394 #define WEP_104_KEY_STRING_SIZE ((uint8_t)26)
395 #define WEP_KEY_MAX_INDEX ((uint8_t)4)
396 #define M2M_SCAN_DEFAULT_NUM_SLOTS (2)
397 #define M2M_SCAN_DEFAULT_SLOT_TIME (20)
398 #define M2M_SCAN_DEFAULT_PASSIVE_SLOT_TIME (300)
399 #define M2M_SCAN_DEFAULT_NUM_PROBE (2)
400 #define M2M_FASTCONNECT_DEFAULT_RSSI_THRESH (-45)
401
402 #define NM_BUS_MAX_TRX_SZ 256
403
404 #define M2M_MAX_SSID_LEN 33
405
406 #define WEP_104_KEY_STRING_SIZE ((uint8_t)26)
407
408 #define M2M_MAX_PSK_LEN 65
409
410 typedef enum
411 {
412 M2M_WIFI_CH_1 = ((uint8_t)1),
413 M2M_WIFI_CH_2,
414 M2M_WIFI_CH_3,
415 M2M_WIFI_CH_4,
416 M2M_WIFI_CH_5,
417 M2M_WIFI_CH_6,
418 M2M_WIFI_CH_7,
419 M2M_WIFI_CH_8,
420 M2M_WIFI_CH_9,
421 M2M_WIFI_CH_10,
422 M2M_WIFI_CH_11,
423 M2M_WIFI_CH_12,
424 M2M_WIFI_CH_13,
425 M2M_WIFI_CH_14,
426 M2M_WIFI_CH_ALL = ((uint8_t)255)
427 } wifi8_m2m_scan_ch_t;
428
429 typedef enum
430 {
431 M2M_WIFI_SEC_INVALID = 0,
432 M2M_WIFI_SEC_OPEN,
433 M2M_WIFI_SEC_WPA_PSK,
434 M2M_WIFI_SEC_WEP,
435 M2M_WIFI_SEC_802_1X,
436 M2M_WIFI_NUM_AUTH_TYPES
437 } wifi8_m2m_sec_type_t;
438
439 typedef enum
440 {
441 M2M_WIFI_DISCONNECTED = 0,
442 M2M_WIFI_CONNECTED,
443 M2M_WIFI_ROAMED,
444 M2M_WIFI_UNDEF = 0xff
445 } wifi8_m2m_conn_state_t;
446
447 typedef enum
448 {
449 M2M_WIFI_REQ_CONNECT = M2M_STA_CMD_BASE,
451 M2M_WIFI_REQ_DEFAULT_CONNECT,
452 M2M_WIFI_RESP_DEFAULT_CONNECT,
453 M2M_WIFI_REQ_DISCONNECT,
454 M2M_WIFI_RESP_CON_STATE_CHANGED,
455 M2M_WIFI_REQ_SLEEP,
456 M2M_WIFI_REQ_WPS_SCAN,
457 M2M_WIFI_REQ_WPS,
458 M2M_WIFI_REQ_START_WPS,
459 M2M_WIFI_REQ_DISABLE_WPS,
460 M2M_WIFI_REQ_DHCP_CONF,
461 M2M_WIFI_RESP_IP_CONFIGURED,
462 M2M_WIFI_RESP_IP_CONFLICT,
463 M2M_WIFI_REQ_ENABLE_MONITORING,
464 M2M_WIFI_REQ_DISABLE_MONITORING,
465 M2M_WIFI_RESP_WIFI_RX_PACKET,
466 M2M_WIFI_REQ_SEND_WIFI_PACKET,
467 M2M_WIFI_REQ_LSN_INT,
468 M2M_WIFI_REQ_DOZE,
469 M2M_WIFI_REQ_GET_PRNG,
470 M2M_WIFI_RESP_GET_PRNG,
471 M2M_WIFI_REQ_CONN,
473 M2M_WIFI_IND_CONN_PARAM,
474 M2M_WIFI_MAX_STA_ALL
475 } wifi8_m2m_sta_cmd_t;
476
477 typedef enum
478 {
479 M2M_WIFI_REQ_RESTART = M2M_CONFIG_CMD_BASE,
480 M2M_WIFI_REQ_SET_MAC_ADDRESS,
481 M2M_WIFI_REQ_CURRENT_RSSI,
482 M2M_WIFI_RESP_CURRENT_RSSI,
483 M2M_WIFI_REQ_RESTRICT_BLE,
484 M2M_WIFI_REQ_UNRESTRICT_BLE,
485 M2M_WIFI_REQ_GET_CONN_INFO,
486 M2M_WIFI_RESP_CONN_INFO,
487 M2M_WIFI_REQ_SET_DEVICE_NAME,
488 M2M_WIFI_REQ_START_PROVISION_MODE_LEGACY,
489 M2M_WIFI_RESP_PROVISION_INFO,
490 M2M_WIFI_REQ_STOP_PROVISION_MODE,
491 M2M_WIFI_REQ_SET_SYS_TIME,
492 M2M_WIFI_REQ_ENABLE_SNTP_CLIENT,
494 M2M_WIFI_REQ_DISABLE_SNTP_CLIENT,
495 M2M_WIFI_RESP_MEMORY_RECOVER,
496 M2M_WIFI_REQ_CUST_INFO_ELEMENT,
497 M2M_WIFI_REQ_SCAN,
498 M2M_WIFI_RESP_SCAN_DONE,
499 M2M_WIFI_REQ_SCAN_RESULT,
500 M2M_WIFI_RESP_SCAN_RESULT,
501 M2M_WIFI_REQ_SET_SCAN_OPTION,
502 M2M_WIFI_REQ_SET_SCAN_REGION,
503 M2M_WIFI_REQ_SET_POWER_PROFILE,
504 M2M_WIFI_REQ_SET_TX_POWER,
505 M2M_WIFI_REQ_SET_BATTERY_VOLTAGE,
506 M2M_WIFI_REQ_SET_ENABLE_LOGS,
507 M2M_WIFI_REQ_GET_SYS_TIME,
508 M2M_WIFI_RESP_GET_SYS_TIME,
509 M2M_WIFI_REQ_SEND_ETHERNET_PACKET,
510 M2M_WIFI_RESP_ETHERNET_RX_PACKET,
511 M2M_WIFI_REQ_SET_MAC_MCAST,
512 M2M_WIFI_REQ_BLE_API_SEND,
513 M2M_WIFI_RESP_BLE_API_RECV,
514 M2M_WIFI_REQ_SET_GAIN_TABLE,
515 M2M_WIFI_RESP_SET_GAIN_TABLE,
516 M2M_WIFI_REQ_PASSIVE_SCAN,
517 M2M_WIFI_REQ_CONFIG_SNTP,
518 M2M_WIFI_REQ_START_PROVISION_MODE,
520 /* This enum is now 'full' in the sense that (M2M_WIFI_REQ_START_PROVISION_MODE+1) == M2M_STA_CMD_BASE.
521 * Any new config values should be placed in tenuM2mGenCmd. */
522 M2M_WIFI_MAX_CONFIG_ALL
523 } wifi8_m2m_config_cmd_t;
524
525 typedef enum
526 {
527 SOCKET_MSG_BIND = 1,
528 SOCKET_MSG_LISTEN,
529 SOCKET_MSG_DNS_RESOLVE,
530 SOCKET_MSG_ACCEPT,
531 SOCKET_MSG_CONNECT,
532 SOCKET_MSG_RECV,
533 SOCKET_MSG_SEND,
534 SOCKET_MSG_SENDTO,
535 SOCKET_MSG_RECVFROM
536 } wifi8_socket_callback_msg_t;
537
538 typedef enum
539 {
540 M2M_WIFI_REQRSP_DELETE_APID = M2M_GEN_CMD_BASE,
542 M2M_WIFI_REQ_ROAMING,
543 M2M_WIFI_MAX_GEN_ALL
544 } wifi8_m2m_gen_cmd_t;
545
546 typedef enum
547 {
548 M2M_WIFI_REQ_ENABLE_AP_LEGACY = M2M_AP_CMD_BASE,
549 M2M_WIFI_REQ_DISABLE_AP,
550 M2M_WIFI_REQ_ENABLE_AP,
551 M2M_WIFI_MAX_AP_ALL,
552 } wifi8_m2m_ap_cmd_t;
553
554 typedef enum
555 {
556 SSID_MODE_VISIBLE = 0,
557 SSID_MODE_HIDDEN
558 } wifi8_m2m_ssid_mode_t;
559
560 typedef enum
561 {
562 WIFI_STATE_DEINIT,
563 WIFI_STATE_INIT,
564 WIFI_STATE_START,
565 } wifi8_wifi_state_t;
566
571 typedef enum
572 {
573 WIFI8_OK = 0,
574 WIFI8_ERROR = -1
575
576 } wifi8_return_value_t;
577
578 typedef enum
579 {
580 M2M_WIFI_MODE_NORMAL = ((uint8_t)1),
581 M2M_WIFI_MODE_CONFIG,
582 M2M_WIFI_MODE_ETHERNET,
583 M2M_WIFI_MODE_MAX
584 } wifi8_m2m_wifi_mode_t;
585
586 typedef enum
587 {
588 M2M_REQ_GROUP_MAIN = 0,
589 M2M_REQ_GROUP_WIFI,
590 M2M_REQ_GROUP_IP,
591 M2M_REQ_GROUP_HIF,
592 M2M_REQ_GROUP_OTA,
593 M2M_REQ_GROUP_SSL,
594 M2M_REQ_GROUP_SIGMA,
595 M2M_REQ_GROUP_INTERNAL
596 } wifi8_m2m_req_group_t;
597
598 typedef enum
599 {
600 M2M_REQ_CONFIG_PKT,
601 M2M_REQ_DATA_PKT = 0x80 /*BIT7*/
602 } wifi8_m2m_reqpkt_t;
603
604 typedef enum
605 {
606 M2M_SSL_REQ_CERT_VERIF,
607 M2M_SSL_REQ_ECC,
608 M2M_SSL_RESP_ECC,
609 M2M_SSL_RSV,
610 M2M_SSL_REQ_WRITE_OWN_CERTS,
611 M2M_SSL_REQ_SET_CS_LIST,
612 M2M_SSL_RESP_SET_CS_LIST,
613 M2M_SSL_RESP_WRITE_OWN_CERTS,
614 M2M_SSL_REQ_SET_CERT_VERIF_MODE
615 } wifi8_m2m_ssl_cmd_t;
616
617 typedef enum
618 {
619 NM_STATE_DEINIT,
620 NM_STATE_INIT,
621 NM_STATE_START,
622 } wifi8_nm_state_t;
623
624 typedef enum
625 {
626 M2M_OTA_REQ_NOTIF_SET_URL = M2M_OTA_CMD_BASE,
627 M2M_OTA_REQ_NOTIF_CHECK_FOR_UPDATE,
628 M2M_OTA_REQ_NOTIF_SCHED,
629 M2M_OTA_REQ_START_UPDATE,
630 M2M_OTA_REQ_SWITCH_FIRMWARE,
631 M2M_OTA_REQ_ROLLBACK,
632 M2M_OTA_REQ_ABORT,
633 M2M_OTA_RESP_NOTIF_UPDATE_INFO,
634 M2M_OTA_RESP_UPDATE_STATUS,
635 M2M_OTA_REQ_TEST,
636 M2M_OTA_MAX_ALL,
637 } wifi8_m2m_ota_cmd_t;
638
639 typedef enum
640 {
641 M2M_WIFI_REQ_CLIENT_CTRL = M2M_SERVER_CMD_BASE,
642 M2M_WIFI_RESP_CLIENT_INFO,
643 M2M_WIFI_REQ_SERVER_INIT,
644 M2M_WIFI_MAX_SERVER_ALL
645 } wifi8_m2m_server_cmd_t;
646
647 typedef enum
648 {
649 WIFI_CRED_DONTSAVE,
650 WIFI_CRED_SAVE_UNENCRYPTED,
651 WIFI_CRED_SAVE_ENCRYPTED
656 } wifi8_cred_store_option_t;
657
658 typedef enum
659 {
660 WIFI_1X_BYPASS_SERVER_AUTH,
664 WIFI_1X_TIME_VERIF_MODE,
668 WIFI_1X_SESSION_CACHING,
673 WIFI_1X_SPECIFIC_ROOTCERT,
677 } wifi8_1x_option_t;
678
679 typedef enum
680 {
681 TLS_CERT_EXP_CHECK_DISABLE,
682 TLS_CERT_EXP_CHECK_ENABLE,
684 TLS_CERT_EXP_CHECK_EN_IF_SYS_TIME
686 } wifi8_tls_cert_exp_settings_t;
687
688 typedef struct
689 {
690 uint8_t u8_flags;
697 uint8_t u8_domain_length;
699 uint8_t u8_user_name_length;
701 uint8_t u8_hdr_length;
705 uint16_t u16_private_key_offset;
707 uint16_t u16_private_key_length;
709 uint16_t u16_certificate_offset;
711 uint16_t u16_certificate_length;
713 uint8_t au8_tls_specific_root_name_sha1[20];
715 uint32_t u32_tls_cs_bmp;
719 uint32_t u32_tls_hs_flags;
721 uint32_t u32_rsv;
723 uint8_t au81x_auth_details[];
726 } wifi8_m2m_wifi1x_hdr_t;
727
728 typedef struct
729 {
730 uint8_t *pu8_domain;
739 uint8_t *pu8_user_name;
744 uint8_t *pu8_password;
747 uint16_t u16_domain_len;
752 uint16_t u16_user_name_len;
756 uint16_t u16_password_len;
759 uint8_t b_unencrypted_user_name;
765 uint8_t b_prepend_domain;
769 } wifi8_auth1x_mschap2_t;
770
771 typedef struct
772 {
773 uint16_t sa_family;
774 uint8_t sa_data[14];
775 } wifi8_sockaddr_t;
776
777 typedef struct
778 {
779 uint8_t *data_buf;
780 uint8_t *head;
781 int length;
782 } wifi8_socket_buffer_t;
783
784 typedef struct
785 {
786 uint32_t s_addr;
788 } wifi8_in_addr_t;
789
790 typedef struct
791 {
792 uint16_t sin_family;
793 uint16_t sin_port;
794 wifi8_in_addr_t sin_addr;
795 uint8_t sin_zero[8];
796 } wifi8_sockaddr_in_t;
797
798 typedef struct
799 {
800 uint8_t *pu8_buffer;
801 int16_t s16_buffer_size;
802 uint16_t u16_remaining_size;
803 wifi8_sockaddr_in_t str_remote_addr;
804 } wifi8_socket_recv_msg_t;
805
806 typedef struct
807 {
808 uint8_t state;
809 int8_t parent;
810 wifi8_socket_recv_msg_t recv_msg;
811 wifi8_socket_buffer_t buffer;
812 wifi8_sockaddr_t _last_sendto_addr;
813 } wifi8_socket_info_t;
814
815 typedef struct
816 {
817 uint8_t au8ssid[M2M_MAX_SSID_LEN];
818 uint8_t u8_listen_channel;
819 uint8_t u8_key_indx;
820 uint8_t u8_key_sz;
821 uint8_t au8_wep_key[WEP_104_KEY_STRING_SIZE + 1];
822 uint8_t u8_sec_type;
823 uint8_t u8_ssid_hide;
824 uint8_t au8dhcp_server_ip[4];
825 uint8_t __pad24__[3];
826 } wifi8_m2m_ap_config_t;
827
828 typedef struct
829 {
830 uint8_t *pu8_bssid;
831 uint8_t *pu8_ssid;
832 uint8_t u8_ssid_len;
833 wifi8_m2m_scan_ch_t enu_channel;
834 } wifi8_network_id_t;
835
836 typedef struct
837 {
838 uint16_t u16_firmware_hif_info; /* fw hif info */
839 uint8_t u8_firmware_major; /* version major number */
840 uint8_t u8_firmware_rsvd; /* reserved */
841 uint8_t u8_firmware_minor; /* version minor */
842 uint8_t u8_firmware_patch; /* patch number */
843 uint8_t build_date[12]; // 12 bytes
844 uint8_t build_time[9]; // 9 bytes
845 } wifi8_m2m_rev_t;
846
847 typedef struct
848 {
849 uint16_t u16_family;
850 uint16_t u16_port;
851 uint32_t u32ip_addr;
852 } wifi8_sock_addr_t;
853
854 typedef struct
855 {
856 int8_t sock;
857 uint8_t u8_void;
858 uint16_t u16_data_size;
859 wifi8_sock_addr_t str_addr;
860 uint16_t u16_session_id;
861 uint16_t u16_void;
862 } wifi8_send_cmd_t;
863
864 typedef struct
865 {
866 uint32_t u32_mac_efuse_mib;
867 uint32_t u32_firmware_ota_rev;
868 } wifi8_gp_regs_t;
869
870 typedef struct
871 {
872 uint8_t u8_frame_type;
873 uint8_t u8_frame_subtype;
874 uint8_t u8_service_class;
875 uint8_t u8_priority;
876 uint8_t u8_header_length;
877 uint8_t u8_cipher_type;
878 uint8_t au8_src_mac_address[6];
879 uint8_t au8_dst_mac_address[6];
880 uint8_t au8bssid[6];
881 uint16_t u16_data_length;
882 uint16_t u16_frame_length;
883 uint32_t u32_data_rate_kbps;
884 int8_t s8rssi;
885 uint8_t __pad24__[3];
886 } wifi8_m2m_wifi_rx_packet_info_t;
887
888 typedef struct
889 {
890 uint8_t u8_curr_state;
891 uint8_t u8_err_code;
892 uint8_t __pad16__[2];
893 } wifi8_m2m_wifi_state_changed_t;
894
895 typedef struct
896 {
897 uint8_t u8_numof_ch;
898 int8_t s8_scan_state;
899 uint8_t __pad16__[2];
900 } wifi8_m2m_scan_done_t;
901
902 typedef struct
903 {
904 uint8_t u8_auth_type;
905 uint8_t u8_ch;
906 uint8_t au8ssid[M2M_MAX_SSID_LEN];
907 uint8_t au8psk[M2M_MAX_PSK_LEN];
909 #define __PADDING_TSTR_M2MWPS_INFO_ (4 - ((2 + M2M_MAX_SSID_LEN + M2M_MAX_PSK_LEN) % 4))
910 uint8_t __PAD__[__PADDING_TSTR_M2MWPS_INFO_];
911 } wifi8_m2m_wps_info_t;
912
913 typedef struct
914 {
915 uint8_t u8index;
916 uint8_t s8rssi;
917 uint8_t u8_auth_type;
918 uint8_t u8ch;
919 uint8_t au8bssid[6];
920 uint8_t au8ssid[M2M_MAX_SSID_LEN];
921 uint8_t _pad8_;
922 } wifi8_m2m_wifiscan_result_t;
923
924 typedef struct
925 {
926 int8_t sock;
927 uint8_t u8_back_log;
928 uint16_t u16_session_id;
929 } wifi8_listen_cmd_t;
930
931 typedef struct
932 {
933 int8_t status;
935 } wifi8_socket_bind_msg_t;
936
937 typedef struct
938 {
939 wifi8_sock_addr_t str_addr;
940 int8_t sock;
941 uint8_t u8_void;
942 uint16_t u16_session_id;
943 } wifi8_bind_cmd_t;
944
945 typedef struct
946 {
947 int8_t ssl_sock;
948 uint8_t __pad24__[3];
949 } wifi8_ssl_socket_create_cmd_t;
950
951 typedef struct
952 {
953 uint32_t u32_timeoutmsec;
954 int8_t sock;
955 uint8_t u8_void;
956 uint16_t u16_session_id;
957 uint16_t u16_buf_len;
958 } wifi8_recv_cmd_t;
959
960 typedef struct
961 {
962 int8_t sock;
963 int8_t s8_status;
964 uint16_t u16_session_id;
965 } wifi8_listen_reply_t;
966
967 typedef struct
968 {
969 int8_t sock;
970 uint8_t u8_dummy;
971 uint16_t u16_session_id;
972 } wifi8_close_cmd_t;
973
974 typedef struct
975 {
976 uint8_t *pu8_user_buffer;
977 uint16_t u16_user_buffer_size;
978 uint16_t u16_session_id;
979 uint16_t u16_data_offset;
980 uint8_t b_is_used;
981 uint8_t u8ssl_flags;
982 uint8_t b_is_recv_pending;
983 uint8_t u8_alpn_status;
984 uint8_t u8_err_source;
985 uint8_t u8_err_code;
986 } wifi8_socket_t;
987
988 typedef struct
989 {
990 int8_t sock;
991 int8_t s8_status;
992 uint16_t u16_session_id;
993 } wifi8_bind_reply_t;
994
995 typedef struct
996 {
997 int8_t status;
999 } wifi8_socket_listen_msg_t;
1000
1001 typedef struct
1002 {
1003 int8_t sock;
1005 wifi8_sockaddr_in_t str_addr;
1006 } wifi8_socket_accept_msg_t;
1007
1008 typedef struct
1009 {
1010 int8_t sock;
1011 int8_t s8_error;
1013 union {
1014 uint16_t u16_app_data_offset;
1016 struct
1017 {
1018 uint8_t u8_err_source;
1019 uint8_t u8_err_code;
1020 };
1021 };
1022 } wifi8_connect_reply_t;
1023
1024 typedef struct
1025 {
1026 wifi8_connect_reply_t str_conn_reply;
1027 uint8_t u8_app_protocol_idx;
1028 uint8_t __pad24__[3];
1029 } wifi8_connect_alpn_reply_t;
1030
1031 typedef struct
1032 {
1033 int8_t sock;
1034 int8_t s8_error;
1036 } wifi8_socket_connect_msg_t;
1037
1038 typedef struct
1039 {
1040 uint8_t u8_key_indx;
1041 uint8_t u8_key_sz;
1042 uint8_t au8_wep_key[WEP_104_KEY_STRING_SIZE + 1]; // NULL terminated
1043 uint8_t __pad24__[3];
1044 } wifi8_m2m_wifi_wep_params_t;
1045
1046 typedef struct
1047 {
1048 uint8_t au8_def_router_ip[4];
1049 uint8_t au8dns_server_ip[4];
1050 uint8_t au8_subnet_mask[4];
1051 } wifi8_m2m_ap_config_ext_t;
1052
1053 typedef struct
1054 {
1055 wifi8_m2m_ap_config_t str_ap_config;
1056 wifi8_m2m_ap_config_ext_t str_ap_config_ext;
1057 } wifi8_m2m_ap_mode_config_t;
1058
1059 typedef struct
1060 {
1061 wifi8_m2m_ap_config_t str_ap_config;
1062 char ac_http_server_domain_name[64];
1063 uint8_t u8_enable_redirect;
1066 wifi8_m2m_ap_config_ext_t str_ap_config_ext;
1067 uint8_t __pad24__[3];
1068 } wifi8_m2m_provision_mode_config_t;
1069
1070 typedef struct
1071 {
1072 uint8_t u8_key_index;
1073 uint8_t u8_key_len;
1074 uint8_t au8_wep_key[WEP_104_KEY_SIZE];
1075 uint8_t u8_rsv;
1076 } wifi8_m2m_wifi_wep_t;
1077
1078 typedef struct
1079 {
1080 uint8_t u8_index;
1081 uint8_t __pad24__[3];
1082 } wifi8_m2m_req_scan_result_t;
1083
1084 typedef struct
1085 {
1086 uint8_t u8_ch_num;
1087 uint8_t __pad24__[3];
1088 } wifi8_m2m_scan_t;
1089
1090 typedef struct
1091 {
1092 uint8_t u8_passphrase_len;
1093 uint8_t au8_passphrase[M2M_MAX_PSK_LEN - 1];
1094 uint8_t au8_psk[PSK_CALC_LEN];
1095 uint8_t u8_psk_calculated;
1096 uint8_t au8_rsv[2];
1097 } wifi8_m2m_wifi_psk_t;
1098
1099 typedef struct
1100 {
1101 uint8_t *pu8_psk;
1103 uint8_t *pu8_passphrase;
1104 uint8_t u8_passphrase_len;
1105 } wifi8_auth_psk_t;
1106
1107 typedef struct
1108 {
1109 uint8_t *pu8_wep_key;
1110 uint8_t u8_key_sz;
1111 uint8_t u8_key_indx;
1112 } wifi8_auth_wep_t;
1113
1114 typedef struct
1115 {
1116 uint16_t u16_cred_size;
1118 uint8_t u8_cred_store_flags;
1123 uint8_t u8_channel;
1124 } wifi8_m2m_conn_cred_hdr_t;
1125
1126 typedef struct
1127 {
1128 uint8_t u8_ssid_len;
1129 uint8_t au8_ssid[M2M_MAX_SSID_LEN - 1];
1130 uint8_t u8_options;
1131 uint8_t au8_bssid[M2M_MAC_ADDRES_LEN];
1132 uint8_t u8_auth_type;
1133 uint8_t au8_rsv[3];
1134 } wifi8_m2m_conn_cred_cmn_t;
1135
1136 typedef struct
1137 {
1138 uint8_t u8_key_indx;
1139 uint8_t u8_key_sz;
1140 uint8_t au8_wep_key[WEP_104_KEY_STRING_SIZE + 1];
1141 uint8_t __pad24__[3];
1142 } wifi8_m2m_wifi_wep_params_legacy_1_2_t;
1143
1144 typedef union {
1145 uint8_t au8psk[M2M_MAX_PSK_LEN];
1146 wifi8_m2m_wifi_wep_params_legacy_1_2_t str_wep_info;
1147 } wifi8_m2m_wifi_auth_legacy_1_2_t;
1148
1149 typedef struct
1150 {
1151 wifi8_m2m_conn_cred_hdr_t str_conn_cred_hdr;
1152 wifi8_m2m_conn_cred_cmn_t str_conn_cred_cmn;
1153 } wifi8_m2m_wifi_conn_hdr_t;
1154
1155 typedef struct
1156 {
1157 wifi8_m2m_wifi_auth_legacy_1_2_t uni_auth;
1158 uint8_t u8_sec_type;
1159 uint8_t __pad__[2];
1160 } wifi8_m2m_wifi_sec_info_legacy_1_2_t;
1161
1162 typedef struct
1163 {
1164 wifi8_m2m_wifi_sec_info_legacy_1_2_t str_sec;
1165 uint16_t u16_ch;
1166 uint8_t au8ssid[M2M_MAX_SSID_LEN];
1167 uint8_t u8_no_save_cred;
1168 } wifi8_m2m_wifi_connect_legacy_1_2_t;
1169
1170 typedef struct
1171 {
1172 uint16_t u16_max_trx_sz;
1173 } wifi8_nm_bus_capabilities_t;
1174
1175 typedef struct
1176 {
1177 char ac_host_name[HOSTNAME_MAX_SIZE];
1178 uint32_t u32_host_ip;
1179 } wifi8_dns_reply_t;
1180
1181 typedef struct
1182 {
1183 wifi8_sock_addr_t str_remote_addr;
1184 int16_t s16_recv_status;
1185 uint16_t u16_data_offset;
1186 int8_t sock;
1187 uint8_t u8_void;
1188 uint16_t u16_session_id;
1189 } wifi8_recv_reply_t;
1190
1191 typedef struct
1192 {
1193 int8_t sock;
1194 uint8_t u8_void;
1195 int16_t s16_sent_bytes;
1196 uint16_t u16_session_id;
1197 uint16_t u16_void;
1198 } wifi8_send_reply_t;
1199
1200 typedef struct
1201 {
1202 uint32_t u32ip_addr;
1203 uint32_t u32_cmd_private;
1204 uint32_t u32rtt;
1205 uint16_t u16_success;
1206 uint16_t u16_fail;
1207 uint8_t u8_error_code;
1208 uint8_t __pad24__[3];
1209 } wifi8_ping_reply_t;
1210
1211 typedef struct
1212 {
1213 wifi8_sock_addr_t str_addr;
1214 int8_t s_listen_sock;
1215 int8_t s_connected_sock;
1216 uint16_t u16_void;
1217 } wifi8_accept_reply_t;
1218
1219 typedef struct
1220 {
1221 wifi8_sock_addr_t str_addr;
1222 int8_t sock;
1223 uint8_t u8_ssl_flags;
1224 uint16_t u16_session_id;
1225 } wifi8_connect_cmd_t;
1226
1227 typedef struct
1228 {
1229 char ac_ssid[M2M_MAX_SSID_LEN];
1230 uint8_t u8_sec_type;
1231 uint8_t au8ip_addr[4];
1232 uint8_t au8mac_address[6];
1233 uint8_t s8rssi;
1234 uint8_t __pad24__[3];
1235 } wifi8_m2m_conn_info_t;
1236
1237 typedef struct
1238 {
1239 uint32_t u32_static_ip;
1240 uint32_t u32_gateway;
1241 uint32_t u32dns;
1242 uint32_t u32_subnet_mask;
1243 uint32_t u32_dhcp_lease_time;
1244 } wifi8_m2mip_config_t;
1245
1246 typedef struct
1247 {
1248 uint8_t au8ssid[M2M_MAX_SSID_LEN];
1249 uint8_t au8_password[M2M_MAX_PSK_LEN];
1250 uint8_t u8_sec_type;
1251 uint8_t u8_status;
1255 } wifi8_m2m_provision_info_t;
1256
1257 typedef struct
1258 {
1259 int8_t s8_error_code;
1265 uint8_t __pad24__[3];
1266 } wifi8_m2m_default_conn_resp_t;
1267
1268 typedef struct
1269 {
1270 uint16_t u16_len;
1272 uint8_t data_msg[0xFF]; //lint !e43
1274 } wifi8_m2m_ble_api_msg_t;
1275
1276 typedef struct
1277 {
1279 uint8_t *pu8_rng_buff;
1281 uint16_t u16_prng_size;
1283 uint8_t __pad16__[2];
1284 } wifi8_prng_t;
1285
1286 typedef struct
1287 {
1288 int8_t s8_error_code;
1289 uint8_t __pad24__[3];
1290 } wifi8_m2m_gain_table_rsp_t;
1291
1292 typedef struct
1293 {
1294 int8_t s8_error_code;
1300 uint8_t __pad24__[3];
1301 } wifi8_m2m_generic_resp_t;
1302
1303 typedef struct
1304 {
1305 uint8_t u8_gain_table;
1306 uint8_t __pad24___[3];
1307 } wifi8_m2m_gain_table_t;
1308
1309 typedef struct
1310 {
1311 uint8_t u8_gid;
1312 uint8_t u8_opcode;
1313 uint16_t u16_length;
1314 } wifi8_hif_hdr_t;
1315
1316 typedef struct
1317 {
1318 uint16_t u16_year;
1319 uint8_t u8_month;
1320 uint8_t u8_day;
1321 uint8_t u8_hour;
1322 uint8_t u8_minute;
1323 uint8_t u8_second;
1325 #define __padding_tstr_system_time_ (4 - (7 % 4))
1326
1327 uint8_t __pad__[__padding_tstr_system_time_];
1329 } wifi8_system_time_t;
1330
1331 typedef void (*wifi8_app_wifi_cb_t)(uint8_t u8_msg_type, void *pv_msg);
1332 typedef void (*wifi8_app_mon_cb_t)(wifi8_m2m_wifi_rx_packet_info_t *pstr_wifi_rx_packet, uint8_t *pu8_payload, uint16_t u16_payload_size);
1333 typedef void (*wifi8_app_socket_cb_t)(int8_t sock, uint8_t u8_msg, void *pv_msg);
1334 typedef void (*wifi8_app_resolve_cb_t)(uint8_t *pu8_domain_name, uint32_t u32_server_ip);
1335 typedef void (*wifi8_ping_cb_t)(uint32_t u32ip_addr, uint32_t u32rtt, uint8_t u8_error_code);
1336 typedef void (*wifi8_app_eth_cb_t)(uint8_t u8_msg_type, void *pv_msg, void *pv_ctrl_buf);
1337
1338 typedef struct
1339 {
1340 wifi8_app_wifi_cb_t pf_app_wifi_cb;
1341 wifi8_app_eth_cb_t pf_app_eth_cb;
1342 uint8_t *au8eth_rcv_buf;
1343 uint16_t u16eth_rcv_buf_size;
1344 uint8_t u8_ethernet_enable;
1345 } wifi8_eth_init_param_t;
1346
1347 typedef struct
1348 {
1349 wifi8_app_wifi_cb_t pf_app_wifi_cb;
1350 wifi8_app_mon_cb_t pf_app_mon_cb;
1351 wifi8_eth_init_param_t str_eth_init_param;
1352 uint8_t gain_table_index;
1353 uint8_t __pad16__[2];
1354 } wifi8_init_param_t;
1355
1356 #endif
M2M_WIFI_RESP_SCAN_DONE
@ M2M_WIFI_RESP_SCAN_DONE
Definition: wifi8_types.h:498
TLS_CERT_EXP_CHECK_ENABLE
@ TLS_CERT_EXP_CHECK_ENABLE
Definition: wifi8_types.h:682
wifi8_nm_state_t
wifi8_nm_state_t
Definition: wifi8_types.h:618
wifi8_recv_cmd_t::u32_timeoutmsec
uint32_t u32_timeoutmsec
Definition: wifi8_types.h:953
SOCKET_MSG_ACCEPT
@ SOCKET_MSG_ACCEPT
Definition: wifi8_types.h:530
wifi8_m2m_wifi_rx_packet_info_t::u32_data_rate_kbps
uint32_t u32_data_rate_kbps
Definition: wifi8_types.h:883
wifi8_recv_reply_t::s16_recv_status
int16_t s16_recv_status
Definition: wifi8_types.h:1184
M2M_REQ_GROUP_HIF
@ M2M_REQ_GROUP_HIF
Definition: wifi8_types.h:591
M2M_WIFI_REQ_STOP_PROVISION_MODE
@ M2M_WIFI_REQ_STOP_PROVISION_MODE
Definition: wifi8_types.h:490
wifi8_m2m_wifi_wep_params_legacy_1_2_t::u8_key_sz
uint8_t u8_key_sz
Definition: wifi8_types.h:1139
wifi8_m2m_req_scan_result_t::u8_index
uint8_t u8_index
Definition: wifi8_types.h:1080
wifi8_m2m_wifi_state_changed_t
Definition: wifi8_types.h:889
wifi8_accept_reply_t::s_connected_sock
int8_t s_connected_sock
Definition: wifi8_types.h:1215
SSID_MODE_VISIBLE
@ SSID_MODE_VISIBLE
Definition: wifi8_types.h:556
wifi8_connect_cmd_t::str_addr
wifi8_sock_addr_t str_addr
Definition: wifi8_types.h:1221
M2M_SSL_RESP_WRITE_OWN_CERTS
@ M2M_SSL_RESP_WRITE_OWN_CERTS
Definition: wifi8_types.h:613
wifi8_accept_reply_t
Definition: wifi8_types.h:1212
wifi8_socket_t::u8_err_source
uint8_t u8_err_source
Definition: wifi8_types.h:984
wifi8_network_id_t::u8_ssid_len
uint8_t u8_ssid_len
Definition: wifi8_types.h:832
wifi8_connect_cmd_t::u8_ssl_flags
uint8_t u8_ssl_flags
Definition: wifi8_types.h:1223
M2M_WIFI_CH_8
@ M2M_WIFI_CH_8
Definition: wifi8_types.h:419
M2M_WIFI_UNDEF
@ M2M_WIFI_UNDEF
Definition: wifi8_types.h:444
M2M_WIFI_REQ_SET_MAC_ADDRESS
@ M2M_WIFI_REQ_SET_MAC_ADDRESS
Definition: wifi8_types.h:480
wifi8_m2m_scan_ch_t
wifi8_m2m_scan_ch_t
Definition: wifi8_types.h:411
M2M_WIFI_REQ_DOZE
@ M2M_WIFI_REQ_DOZE
Definition: wifi8_types.h:468
M2M_WIFI_REQ_DISABLE_MONITORING
@ M2M_WIFI_REQ_DISABLE_MONITORING
Definition: wifi8_types.h:464
wifi8_sock_addr_t
Definition: wifi8_types.h:848
wifi8_m2m_wifi1x_hdr_t::u32_tls_cs_bmp
uint32_t u32_tls_cs_bmp
Definition: wifi8_types.h:715
wifi8_ping_reply_t::u8_error_code
uint8_t u8_error_code
Definition: wifi8_types.h:1207
M2M_WIFI_REQ_DISCONNECT
@ M2M_WIFI_REQ_DISCONNECT
Definition: wifi8_types.h:453
M2M_WIFI_RESP_BLE_API_RECV
@ M2M_WIFI_RESP_BLE_API_RECV
Definition: wifi8_types.h:513
wifi8_gp_regs_t
Definition: wifi8_types.h:865
wifi8_socket_info_t::_last_sendto_addr
wifi8_sockaddr_t _last_sendto_addr
Definition: wifi8_types.h:812
wifi8_socket_callback_msg_t
wifi8_socket_callback_msg_t
Definition: wifi8_types.h:526
wifi8_m2m_wifiscan_result_t::u8index
uint8_t u8index
Definition: wifi8_types.h:915
M2M_WIFI_CH_3
@ M2M_WIFI_CH_3
Definition: wifi8_types.h:414
M2M_OTA_CMD_BASE
#define M2M_OTA_CMD_BASE
Definition: wifi8_types.h:389
wifi8_auth_wep_t::u8_key_sz
uint8_t u8_key_sz
Definition: wifi8_types.h:1110
M2M_WIFI_RESP_DEFAULT_CONNECT
@ M2M_WIFI_RESP_DEFAULT_CONNECT
Definition: wifi8_types.h:452
TLS_CERT_EXP_CHECK_DISABLE
@ TLS_CERT_EXP_CHECK_DISABLE
Definition: wifi8_types.h:681
M2M_WIFI_REQ_ROAMING
@ M2M_WIFI_REQ_ROAMING
Definition: wifi8_types.h:542
M2M_REQ_GROUP_MAIN
@ M2M_REQ_GROUP_MAIN
Definition: wifi8_types.h:588
M2M_WIFI_RESP_IP_CONFLICT
@ M2M_WIFI_RESP_IP_CONFLICT
Definition: wifi8_types.h:462
wifi8_m2m_req_scan_result_t
Definition: wifi8_types.h:1079
wifi8_m2m_rev_t::u8_firmware_rsvd
uint8_t u8_firmware_rsvd
Definition: wifi8_types.h:840
wifi8_dns_reply_t::u32_host_ip
uint32_t u32_host_ip
Definition: wifi8_types.h:1178
wifi8_system_time_t
Definition: wifi8_types.h:1317
wifi8_m2m_wifi_sec_info_legacy_1_2_t::u8_sec_type
uint8_t u8_sec_type
Definition: wifi8_types.h:1158
wifi8_recv_cmd_t::sock
int8_t sock
Definition: wifi8_types.h:954
M2M_REQ_GROUP_SSL
@ M2M_REQ_GROUP_SSL
Definition: wifi8_types.h:593
wifi8_m2m_ap_config_t::u8_ssid_hide
uint8_t u8_ssid_hide
Definition: wifi8_types.h:823
M2M_WIFI_CH_6
@ M2M_WIFI_CH_6
Definition: wifi8_types.h:417
wifi8_m2m_wifi_rx_packet_info_t::u8_service_class
uint8_t u8_service_class
Definition: wifi8_types.h:874
wifi8_ssl_socket_create_cmd_t
Definition: wifi8_types.h:946
wifi8_sockaddr_t
Definition: wifi8_types.h:772
wifi8_connect_reply_t
Definition: wifi8_types.h:1009
M2M_WIFI_MODE_NORMAL
@ M2M_WIFI_MODE_NORMAL
Definition: wifi8_types.h:580
wifi8_m2m_scan_done_t::u8_numof_ch
uint8_t u8_numof_ch
Definition: wifi8_types.h:897
wifi8_bind_cmd_t::str_addr
wifi8_sock_addr_t str_addr
Definition: wifi8_types.h:939
wifi8_m2m_wifi_conn_hdr_t::str_conn_cred_hdr
wifi8_m2m_conn_cred_hdr_t str_conn_cred_hdr
Definition: wifi8_types.h:1151
wifi8_recv_cmd_t::u8_void
uint8_t u8_void
Definition: wifi8_types.h:955
wifi8_auth1x_mschap2_t::b_unencrypted_user_name
uint8_t b_unencrypted_user_name
Definition: wifi8_types.h:759
wifi8_auth_psk_t::pu8_passphrase
uint8_t * pu8_passphrase
Definition: wifi8_types.h:1103
wifi8_m2mip_config_t::u32_static_ip
uint32_t u32_static_ip
Definition: wifi8_types.h:1239
M2M_WIFI_MAX_CONFIG_ALL
@ M2M_WIFI_MAX_CONFIG_ALL
Definition: wifi8_types.h:522
M2M_WIFI_CH_11
@ M2M_WIFI_CH_11
Definition: wifi8_types.h:422
wifi8_m2m_gain_table_rsp_t
Definition: wifi8_types.h:1287
wifi8_eth_init_param_t::au8eth_rcv_buf
uint8_t * au8eth_rcv_buf
Definition: wifi8_types.h:1342
wifi8_eth_init_param_t
Definition: wifi8_types.h:1339
wifi8_system_time_t::u8_minute
uint8_t u8_minute
Definition: wifi8_types.h:1322
wifi8_m2m_gain_table_t
Definition: wifi8_types.h:1304
M2M_WIFI_RESP_GET_PRNG
@ M2M_WIFI_RESP_GET_PRNG
Definition: wifi8_types.h:470
wifi8_m2m_ap_config_t::u8_listen_channel
uint8_t u8_listen_channel
Definition: wifi8_types.h:818
wifi8_m2m_wifi1x_hdr_t::u16_private_key_length
uint16_t u16_private_key_length
Definition: wifi8_types.h:707
M2M_WIFI_REQ_SET_SCAN_OPTION
@ M2M_WIFI_REQ_SET_SCAN_OPTION
Definition: wifi8_types.h:501
wifi8_m2m_ap_config_t
Definition: wifi8_types.h:816
WIFI_1X_SESSION_CACHING
@ WIFI_1X_SESSION_CACHING
Definition: wifi8_types.h:668
M2M_REQ_GROUP_IP
@ M2M_REQ_GROUP_IP
Definition: wifi8_types.h:590
wifi8_socket_t::u8_err_code
uint8_t u8_err_code
Definition: wifi8_types.h:985
wifi8_m2m_config_cmd_t
wifi8_m2m_config_cmd_t
Definition: wifi8_types.h:478
M2M_WIFI_MODE_CONFIG
@ M2M_WIFI_MODE_CONFIG
Definition: wifi8_types.h:581
wifi8_m2m_ap_mode_config_t::str_ap_config
wifi8_m2m_ap_config_t str_ap_config
Definition: wifi8_types.h:1055
wifi8_m2m_wifi_wep_params_t::u8_key_sz
uint8_t u8_key_sz
Definition: wifi8_types.h:1041
wifi8_listen_reply_t::sock
int8_t sock
Definition: wifi8_types.h:962
wifi8_bind_reply_t::s8_status
int8_t s8_status
Definition: wifi8_types.h:991
M2M_WIFI_ROAMED
@ M2M_WIFI_ROAMED
Definition: wifi8_types.h:443
wifi8_socket_connect_msg_t::sock
int8_t sock
Definition: wifi8_types.h:1033
wifi8_m2m_provision_info_t::u8_sec_type
uint8_t u8_sec_type
Definition: wifi8_types.h:1250
wifi8_socket_info_t::recv_msg
wifi8_socket_recv_msg_t recv_msg
Definition: wifi8_types.h:810
wifi8_m2m_wifi1x_hdr_t
Definition: wifi8_types.h:689
wifi8_m2m_wifi_wep_t::u8_key_len
uint8_t u8_key_len
Definition: wifi8_types.h:1073
wifi8_m2m_wifi_wep_params_t
Definition: wifi8_types.h:1039
wifi8_m2m_generic_resp_t
Definition: wifi8_types.h:1293
M2M_WIFI_REQ_SCAN
@ M2M_WIFI_REQ_SCAN
Definition: wifi8_types.h:497
M2M_WIFI_CH_1
@ M2M_WIFI_CH_1
Definition: wifi8_types.h:412
wifi8_init_param_t::pf_app_mon_cb
wifi8_app_mon_cb_t pf_app_mon_cb
Definition: wifi8_types.h:1350
wifi8_m2m_wifiscan_result_t::s8rssi
uint8_t s8rssi
Definition: wifi8_types.h:916
wifi8_m2mip_config_t::u32_gateway
uint32_t u32_gateway
Definition: wifi8_types.h:1240
wifi8_m2m_conn_cred_hdr_t::u8_channel
uint8_t u8_channel
Definition: wifi8_types.h:1123
M2M_WIFI_REQ_CONFIG_SNTP
@ M2M_WIFI_REQ_CONFIG_SNTP
Definition: wifi8_types.h:517
wifi8_m2m_wifi_conn_hdr_t::str_conn_cred_cmn
wifi8_m2m_conn_cred_cmn_t str_conn_cred_cmn
Definition: wifi8_types.h:1152
M2M_WIFI_CH_2
@ M2M_WIFI_CH_2
Definition: wifi8_types.h:413
wifi8_m2m_ble_api_msg_t
Definition: wifi8_types.h:1269
wifi8_socket_t::u8ssl_flags
uint8_t u8ssl_flags
Definition: wifi8_types.h:981
wifi8_m2m_wifi1x_hdr_t::u16_certificate_offset
uint16_t u16_certificate_offset
Definition: wifi8_types.h:709
M2M_WIFI_REQ_ENABLE_AP_LEGACY
@ M2M_WIFI_REQ_ENABLE_AP_LEGACY
Definition: wifi8_types.h:548
wifi8_accept_reply_t::s_listen_sock
int8_t s_listen_sock
Definition: wifi8_types.h:1214
wifi8_send_reply_t::u8_void
uint8_t u8_void
Definition: wifi8_types.h:1194
M2M_WIFI_REQ_WPS
@ M2M_WIFI_REQ_WPS
Definition: wifi8_types.h:457
wifi8_connect_reply_t::sock
int8_t sock
Definition: wifi8_types.h:1010
M2M_OTA_REQ_TEST
@ M2M_OTA_REQ_TEST
Definition: wifi8_types.h:635
wifi8_send_reply_t::u16_session_id
uint16_t u16_session_id
Definition: wifi8_types.h:1196
SOCKET_MSG_SEND
@ SOCKET_MSG_SEND
Definition: wifi8_types.h:533
wifi8_nm_bus_capabilities_t
Definition: wifi8_types.h:1171
M2M_SSL_RESP_ECC
@ M2M_SSL_RESP_ECC
Definition: wifi8_types.h:608
wifi8_m2m_conn_state_t
wifi8_m2m_conn_state_t
Definition: wifi8_types.h:440
M2M_OTA_REQ_START_UPDATE
@ M2M_OTA_REQ_START_UPDATE
Definition: wifi8_types.h:629
wifi8_recv_reply_t::u8_void
uint8_t u8_void
Definition: wifi8_types.h:1187
M2M_OTA_MAX_ALL
@ M2M_OTA_MAX_ALL
Definition: wifi8_types.h:636
M2M_WIFI_SEC_OPEN
@ M2M_WIFI_SEC_OPEN
Definition: wifi8_types.h:432
wifi8_hif_hdr_t::u8_opcode
uint8_t u8_opcode
Definition: wifi8_types.h:1312
wifi8_hif_hdr_t::u16_length
uint16_t u16_length
Definition: wifi8_types.h:1313
wifi8_m2m_wifi1x_hdr_t::u8_hdr_length
uint8_t u8_hdr_length
Definition: wifi8_types.h:701
wifi8_socket_recv_msg_t::pu8_buffer
uint8_t * pu8_buffer
Definition: wifi8_types.h:800
M2M_WIFI_CH_7
@ M2M_WIFI_CH_7
Definition: wifi8_types.h:418
wifi8_app_socket_cb_t
void(* wifi8_app_socket_cb_t)(int8_t sock, uint8_t u8_msg, void *pv_msg)
Definition: wifi8_types.h:1333
M2M_WIFI_REQ_START_PROVISION_MODE_LEGACY
@ M2M_WIFI_REQ_START_PROVISION_MODE_LEGACY
Definition: wifi8_types.h:488
M2M_WIFI_CH_13
@ M2M_WIFI_CH_13
Definition: wifi8_types.h:424
wifi8_eth_init_param_t::pf_app_wifi_cb
wifi8_app_wifi_cb_t pf_app_wifi_cb
Definition: wifi8_types.h:1340
M2M_SSL_REQ_CERT_VERIF
@ M2M_SSL_REQ_CERT_VERIF
Definition: wifi8_types.h:606
M2M_WIFI_RESP_GET_SYS_TIME
@ M2M_WIFI_RESP_GET_SYS_TIME
Definition: wifi8_types.h:508
M2M_OTA_RESP_NOTIF_UPDATE_INFO
@ M2M_OTA_RESP_NOTIF_UPDATE_INFO
Definition: wifi8_types.h:633
wifi8_hif_hdr_t
Definition: wifi8_types.h:1310
M2M_WIFI_RESP_MEMORY_RECOVER
@ M2M_WIFI_RESP_MEMORY_RECOVER
Definition: wifi8_types.h:495
wifi8_socket_t::u16_user_buffer_size
uint16_t u16_user_buffer_size
Definition: wifi8_types.h:977
wifi8_dns_reply_t
Definition: wifi8_types.h:1176
M2M_OTA_REQ_NOTIF_CHECK_FOR_UPDATE
@ M2M_OTA_REQ_NOTIF_CHECK_FOR_UPDATE
Definition: wifi8_types.h:627
M2M_OTA_REQ_ABORT
@ M2M_OTA_REQ_ABORT
Definition: wifi8_types.h:632
wifi8_socket_listen_msg_t
Definition: wifi8_types.h:996
wifi8_recv_reply_t
Definition: wifi8_types.h:1182
wifi8_system_time_t::u8_month
uint8_t u8_month
Definition: wifi8_types.h:1319
M2M_WIFI_RESP_ETHERNET_RX_PACKET
@ M2M_WIFI_RESP_ETHERNET_RX_PACKET
Definition: wifi8_types.h:510
wifi8_bind_reply_t::sock
int8_t sock
Definition: wifi8_types.h:990
wifi8_send_cmd_t
Definition: wifi8_types.h:855
wifi8_m2m_scan_t
Definition: wifi8_types.h:1085
wifi8_socket_info_t::parent
int8_t parent
Definition: wifi8_types.h:809
wifi8_init_param_t
Definition: wifi8_types.h:1348
wifi8_init_param_t::gain_table_index
uint8_t gain_table_index
Definition: wifi8_types.h:1352
wifi8_listen_reply_t
Definition: wifi8_types.h:961
wifi8_ping_reply_t::u32ip_addr
uint32_t u32ip_addr
Definition: wifi8_types.h:1202
wifi8_sockaddr_in_t::sin_addr
wifi8_in_addr_t sin_addr
Definition: wifi8_types.h:794
NM_STATE_START
@ NM_STATE_START
Definition: wifi8_types.h:621
wifi8_send_reply_t
Definition: wifi8_types.h:1192
wifi8_connect_alpn_reply_t::u8_app_protocol_idx
uint8_t u8_app_protocol_idx
Definition: wifi8_types.h:1027
M2M_REQ_GROUP_OTA
@ M2M_REQ_GROUP_OTA
Definition: wifi8_types.h:592
WEP_104_KEY_SIZE
#define WEP_104_KEY_SIZE
Definition: wifi8_types.h:392
M2M_WIFI_RESP_WIFI_RX_PACKET
@ M2M_WIFI_RESP_WIFI_RX_PACKET
Definition: wifi8_types.h:465
wifi8_m2m_wifi_wep_t
Definition: wifi8_types.h:1071
M2M_WIFI_REQ_CLIENT_CTRL
@ M2M_WIFI_REQ_CLIENT_CTRL
Definition: wifi8_types.h:641
wifi8_close_cmd_t
Definition: wifi8_types.h:968
M2M_WIFI_REQ_LSN_INT
@ M2M_WIFI_REQ_LSN_INT
Definition: wifi8_types.h:467
wifi8_m2m_scan_done_t::s8_scan_state
int8_t s8_scan_state
Definition: wifi8_types.h:898
wifi8_network_id_t
Definition: wifi8_types.h:829
M2M_WIFI_RESP_CLIENT_INFO
@ M2M_WIFI_RESP_CLIENT_INFO
Definition: wifi8_types.h:642
wifi8_m2m_provision_mode_config_t::u8_enable_redirect
uint8_t u8_enable_redirect
Definition: wifi8_types.h:1063
M2M_WIFI_REQ_CUST_INFO_ELEMENT
@ M2M_WIFI_REQ_CUST_INFO_ELEMENT
Definition: wifi8_types.h:496
wifi8_m2m_conn_cred_hdr_t
Definition: wifi8_types.h:1115
wifi8_bind_cmd_t::sock
int8_t sock
Definition: wifi8_types.h:940
wifi8_init_param_t::str_eth_init_param
wifi8_eth_init_param_t str_eth_init_param
Definition: wifi8_types.h:1351
wifi8_socket_accept_msg_t::str_addr
wifi8_sockaddr_in_t str_addr
Definition: wifi8_types.h:1005
M2M_WIFI_NUM_AUTH_TYPES
@ M2M_WIFI_NUM_AUTH_TYPES
Definition: wifi8_types.h:436
wifi8_socket_bind_msg_t
Definition: wifi8_types.h:932
M2M_WIFI_REQ_SET_BATTERY_VOLTAGE
@ M2M_WIFI_REQ_SET_BATTERY_VOLTAGE
Definition: wifi8_types.h:505
wifi8_socket_recv_msg_t::s16_buffer_size
int16_t s16_buffer_size
Definition: wifi8_types.h:801
wifi8_m2m_wifi1x_hdr_t::u8_flags
uint8_t u8_flags
Definition: wifi8_types.h:690
M2M_WIFI_REQ_SET_TX_POWER
@ M2M_WIFI_REQ_SET_TX_POWER
Definition: wifi8_types.h:504
wifi8_socket_accept_msg_t
Definition: wifi8_types.h:1002
WIFI_1X_BYPASS_SERVER_AUTH
@ WIFI_1X_BYPASS_SERVER_AUTH
Definition: wifi8_types.h:660
wifi8_m2m_wps_info_t::u8_auth_type
uint8_t u8_auth_type
Definition: wifi8_types.h:904
wifi8_network_id_t::enu_channel
wifi8_m2m_scan_ch_t enu_channel
Definition: wifi8_types.h:833
M2M_WIFI_RESP_IP_CONFIGURED
@ M2M_WIFI_RESP_IP_CONFIGURED
Definition: wifi8_types.h:461
wifi8_m2m_ap_mode_config_t
Definition: wifi8_types.h:1054
WIFI_1X_SPECIFIC_ROOTCERT
@ WIFI_1X_SPECIFIC_ROOTCERT
Definition: wifi8_types.h:673
wifi8_m2m_wifi_connect_legacy_1_2_t::u8_no_save_cred
uint8_t u8_no_save_cred
Definition: wifi8_types.h:1167
wifi8_bind_cmd_t
Definition: wifi8_types.h:938
wifi8_auth_wep_t::u8_key_indx
uint8_t u8_key_indx
Definition: wifi8_types.h:1111
wifi8_m2m_conn_cred_hdr_t::u8_cred_store_flags
uint8_t u8_cred_store_flags
Definition: wifi8_types.h:1118
wifi8_m2m_wifi_mode_t
wifi8_m2m_wifi_mode_t
Definition: wifi8_types.h:579
wifi8_m2m_wifi_rx_packet_info_t::u16_frame_length
uint16_t u16_frame_length
Definition: wifi8_types.h:882
wifi8_m2m_wps_info_t
Definition: wifi8_types.h:903
M2M_WIFI_REQ_SET_DEVICE_NAME
@ M2M_WIFI_REQ_SET_DEVICE_NAME
Definition: wifi8_types.h:487
M2M_WIFI_REQ_CONNECT
@ M2M_WIFI_REQ_CONNECT
Definition: wifi8_types.h:449
HOSTNAME_MAX_SIZE
#define HOSTNAME_MAX_SIZE
Definition: wifi8_types.h:230
wifi8_m2m_scan_done_t
Definition: wifi8_types.h:896
wifi8_socket_info_t::buffer
wifi8_socket_buffer_t buffer
Definition: wifi8_types.h:811
M2M_WIFI_CH_14
@ M2M_WIFI_CH_14
Definition: wifi8_types.h:425
M2M_SSL_REQ_ECC
@ M2M_SSL_REQ_ECC
Definition: wifi8_types.h:607
wifi8_bind_cmd_t::u16_session_id
uint16_t u16_session_id
Definition: wifi8_types.h:942
M2M_WIFI_REQ_DISABLE_AP
@ M2M_WIFI_REQ_DISABLE_AP
Definition: wifi8_types.h:549
wifi8_m2m_wifi_wep_params_legacy_1_2_t
Definition: wifi8_types.h:1137
wifi8_m2mip_config_t::u32dns
uint32_t u32dns
Definition: wifi8_types.h:1241
wifi8_socket_t::b_is_used
uint8_t b_is_used
Definition: wifi8_types.h:980
wifi8_network_id_t::pu8_ssid
uint8_t * pu8_ssid
Definition: wifi8_types.h:831
SOCKET_MSG_RECVFROM
@ SOCKET_MSG_RECVFROM
Definition: wifi8_types.h:535
wifi8_socket_info_t
Definition: wifi8_types.h:807
wifi8_send_reply_t::u16_void
uint16_t u16_void
Definition: wifi8_types.h:1197
TLS_CERT_EXP_CHECK_EN_IF_SYS_TIME
@ TLS_CERT_EXP_CHECK_EN_IF_SYS_TIME
Definition: wifi8_types.h:684
M2M_WIFI_CH_12
@ M2M_WIFI_CH_12
Definition: wifi8_types.h:423
wifi8_listen_cmd_t::sock
int8_t sock
Definition: wifi8_types.h:926
wifi8_m2m_provision_info_t::u8_status
uint8_t u8_status
Definition: wifi8_types.h:1251
wifi8_m2m_req_group_t
wifi8_m2m_req_group_t
Definition: wifi8_types.h:587
M2M_WIFI_REQ_ENABLE_MONITORING
@ M2M_WIFI_REQ_ENABLE_MONITORING
Definition: wifi8_types.h:463
wifi8_m2m_ap_config_ext_t
Definition: wifi8_types.h:1047
__PADDING_TSTR_M2MWPS_INFO_
#define __PADDING_TSTR_M2MWPS_INFO_
Definition: wifi8_types.h:909
M2M_WIFI_CONNECTED
@ M2M_WIFI_CONNECTED
Definition: wifi8_types.h:442
wifi8_m2m_conn_cred_cmn_t::u8_auth_type
uint8_t u8_auth_type
Definition: wifi8_types.h:1132
wifi8_m2m_reqpkt_t
wifi8_m2m_reqpkt_t
Definition: wifi8_types.h:599
M2M_WIFI_REQ_SET_GAIN_TABLE
@ M2M_WIFI_REQ_SET_GAIN_TABLE
Definition: wifi8_types.h:514
wifi8_socket_recv_msg_t::u16_remaining_size
uint16_t u16_remaining_size
Definition: wifi8_types.h:802
wifi8_connect_reply_t::s8_error
int8_t s8_error
Definition: wifi8_types.h:1011
M2M_WIFI_CH_5
@ M2M_WIFI_CH_5
Definition: wifi8_types.h:416
wifi8_m2m_wifi_psk_t
Definition: wifi8_types.h:1091
M2M_WIFI_RESP_CON_STATE_CHANGED
@ M2M_WIFI_RESP_CON_STATE_CHANGED
Definition: wifi8_types.h:454
WIFI_CRED_SAVE_UNENCRYPTED
@ WIFI_CRED_SAVE_UNENCRYPTED
Definition: wifi8_types.h:650
wifi8_gp_regs_t::u32_mac_efuse_mib
uint32_t u32_mac_efuse_mib
Definition: wifi8_types.h:866
WIFI8_ERROR
@ WIFI8_ERROR
Definition: wifi8_types.h:574
NM_STATE_DEINIT
@ NM_STATE_DEINIT
Definition: wifi8_types.h:619
wifi8_m2m_provision_mode_config_t
Definition: wifi8_types.h:1060
M2M_WIFI_REQRSP_DELETE_APID
@ M2M_WIFI_REQRSP_DELETE_APID
Definition: wifi8_types.h:540
wifi8_recv_cmd_t::u16_session_id
uint16_t u16_session_id
Definition: wifi8_types.h:956
M2M_REQ_CONFIG_PKT
@ M2M_REQ_CONFIG_PKT
Definition: wifi8_types.h:600
wifi8_m2m_rev_t::u16_firmware_hif_info
uint16_t u16_firmware_hif_info
Definition: wifi8_types.h:838
wifi8_bind_reply_t::u16_session_id
uint16_t u16_session_id
Definition: wifi8_types.h:992
wifi8_sockaddr_t::sa_family
uint16_t sa_family
Definition: wifi8_types.h:773
M2M_WIFI_CH_9
@ M2M_WIFI_CH_9
Definition: wifi8_types.h:420
wifi8_m2m_ap_mode_config_t::str_ap_config_ext
wifi8_m2m_ap_config_ext_t str_ap_config_ext
Definition: wifi8_types.h:1056
wifi8_socket_t::b_is_recv_pending
uint8_t b_is_recv_pending
Definition: wifi8_types.h:982
wifi8_m2m_rev_t::u8_firmware_patch
uint8_t u8_firmware_patch
Definition: wifi8_types.h:842
M2M_WIFI_IND_CONN_PARAM
@ M2M_WIFI_IND_CONN_PARAM
Definition: wifi8_types.h:473
wifi8_m2m_gen_cmd_t
wifi8_m2m_gen_cmd_t
Definition: wifi8_types.h:539
M2M_WIFI_MAX_AP_ALL
@ M2M_WIFI_MAX_AP_ALL
Definition: wifi8_types.h:551
wifi8_m2m_wifi_rx_packet_info_t::u16_data_length
uint16_t u16_data_length
Definition: wifi8_types.h:881
wifi8_m2m_default_conn_resp_t::s8_error_code
int8_t s8_error_code
Definition: wifi8_types.h:1259
wifi8_auth_wep_t
Definition: wifi8_types.h:1108
wifi8_m2m_wifi_psk_t::u8_psk_calculated
uint8_t u8_psk_calculated
Definition: wifi8_types.h:1095
wifi8_m2m_conn_cred_cmn_t::u8_options
uint8_t u8_options
Definition: wifi8_types.h:1130
wifi8_send_cmd_t::u16_data_size
uint16_t u16_data_size
Definition: wifi8_types.h:858
wifi8_send_cmd_t::u8_void
uint8_t u8_void
Definition: wifi8_types.h:857
wifi8_m2m_wifi_conn_hdr_t
Definition: wifi8_types.h:1150
wifi8_m2m_wifi_rx_packet_info_t::u8_frame_subtype
uint8_t u8_frame_subtype
Definition: wifi8_types.h:873
M2M_WIFI_MAX_GEN_ALL
@ M2M_WIFI_MAX_GEN_ALL
Definition: wifi8_types.h:543
wifi8_sock_addr_t::u16_family
uint16_t u16_family
Definition: wifi8_types.h:849
wifi8_auth_psk_t::pu8_psk
uint8_t * pu8_psk
Definition: wifi8_types.h:1101
wifi8_m2m_conn_cred_hdr_t::u16_cred_size
uint16_t u16_cred_size
Definition: wifi8_types.h:1116
M2M_WIFI_REQ_START_PROVISION_MODE
@ M2M_WIFI_REQ_START_PROVISION_MODE
Definition: wifi8_types.h:518
wifi8_auth1x_mschap2_t::u16_password_len
uint16_t u16_password_len
Definition: wifi8_types.h:756
M2M_REQ_GROUP_INTERNAL
@ M2M_REQ_GROUP_INTERNAL
Definition: wifi8_types.h:595
wifi8_socket_info_t::state
uint8_t state
Definition: wifi8_types.h:808
wifi8_auth1x_mschap2_t::pu8_password
uint8_t * pu8_password
Definition: wifi8_types.h:744
M2M_REQ_GROUP_WIFI
@ M2M_REQ_GROUP_WIFI
Definition: wifi8_types.h:589
M2M_SSL_REQ_WRITE_OWN_CERTS
@ M2M_SSL_REQ_WRITE_OWN_CERTS
Definition: wifi8_types.h:610
wifi8_app_eth_cb_t
void(* wifi8_app_eth_cb_t)(uint8_t u8_msg_type, void *pv_msg, void *pv_ctrl_buf)
Definition: wifi8_types.h:1336
wifi8_m2m_wifi_connect_legacy_1_2_t::u16_ch
uint16_t u16_ch
Definition: wifi8_types.h:1165
wifi8_system_time_t::u8_second
uint8_t u8_second
Definition: wifi8_types.h:1323
wifi8_m2m_wifi1x_hdr_t::u16_certificate_length
uint16_t u16_certificate_length
Definition: wifi8_types.h:711
wifi8_m2m_wifi_auth_legacy_1_2_t
Definition: wifi8_types.h:1144
wifi8_close_cmd_t::sock
int8_t sock
Definition: wifi8_types.h:969
M2M_OTA_RESP_UPDATE_STATUS
@ M2M_OTA_RESP_UPDATE_STATUS
Definition: wifi8_types.h:634
M2M_SSL_REQ_SET_CERT_VERIF_MODE
@ M2M_SSL_REQ_SET_CERT_VERIF_MODE
Definition: wifi8_types.h:614
wifi8_send_reply_t::s16_sent_bytes
int16_t s16_sent_bytes
Definition: wifi8_types.h:1195
wifi8_system_time_t::u8_day
uint8_t u8_day
Definition: wifi8_types.h:1320
wifi8_m2mip_config_t::u32_dhcp_lease_time
uint32_t u32_dhcp_lease_time
Definition: wifi8_types.h:1243
wifi8_m2m_wifi_wep_params_t::u8_key_indx
uint8_t u8_key_indx
Definition: wifi8_types.h:1040
wifi8_sockaddr_in_t::sin_family
uint16_t sin_family
Definition: wifi8_types.h:792
M2M_WIFI_REQ_ENABLE_AP
@ M2M_WIFI_REQ_ENABLE_AP
Definition: wifi8_types.h:550
wifi8_connect_cmd_t
Definition: wifi8_types.h:1220
wifi8_socket_recv_msg_t
Definition: wifi8_types.h:799
wifi8_m2mip_config_t::u32_subnet_mask
uint32_t u32_subnet_mask
Definition: wifi8_types.h:1242
PSK_CALC_LEN
#define PSK_CALC_LEN
Definition: wifi8_types.h:380
M2M_WIFI_REQ_SET_ENABLE_LOGS
@ M2M_WIFI_REQ_SET_ENABLE_LOGS
Definition: wifi8_types.h:506
SOCKET_MSG_SENDTO
@ SOCKET_MSG_SENDTO
Definition: wifi8_types.h:534
wifi8_1x_option_t
wifi8_1x_option_t
Definition: wifi8_types.h:659
M2M_WIFI_REQ_SET_POWER_PROFILE
@ M2M_WIFI_REQ_SET_POWER_PROFILE
Definition: wifi8_types.h:503
M2M_WIFI_REQ_SEND_ETHERNET_PACKET
@ M2M_WIFI_REQ_SEND_ETHERNET_PACKET
Definition: wifi8_types.h:509
wifi8_connect_reply_t::u8_err_code
uint8_t u8_err_code
Definition: wifi8_types.h:1019
wifi8_prng_t::u16_prng_size
uint16_t u16_prng_size
Definition: wifi8_types.h:1281
wifi8_auth1x_mschap2_t::u16_user_name_len
uint16_t u16_user_name_len
Definition: wifi8_types.h:752
M2M_WIFI_REQ_SCAN_RESULT
@ M2M_WIFI_REQ_SCAN_RESULT
Definition: wifi8_types.h:499
wifi8_m2m_ota_cmd_t
wifi8_m2m_ota_cmd_t
Definition: wifi8_types.h:625
wifi8_hif_hdr_t::u8_gid
uint8_t u8_gid
Definition: wifi8_types.h:1311
wifi8_auth_psk_t
Definition: wifi8_types.h:1100
wifi8_m2m_generic_resp_t::s8_error_code
int8_t s8_error_code
Definition: wifi8_types.h:1294
wifi8_network_id_t::pu8_bssid
uint8_t * pu8_bssid
Definition: wifi8_types.h:830
wifi8_prng_t
Definition: wifi8_types.h:1277
M2M_WIFI_MODE_MAX
@ M2M_WIFI_MODE_MAX
Definition: wifi8_types.h:583
M2M_STA_CMD_BASE
#define M2M_STA_CMD_BASE
Definition: wifi8_types.h:30
M2M_WIFI_REQ_WPS_SCAN
@ M2M_WIFI_REQ_WPS_SCAN
Definition: wifi8_types.h:456
SOCKET_MSG_RECV
@ SOCKET_MSG_RECV
Definition: wifi8_types.h:532
wifi8_m2m_wps_info_t::u8_ch
uint8_t u8_ch
Definition: wifi8_types.h:905
SOCKET_MSG_BIND
@ SOCKET_MSG_BIND
Definition: wifi8_types.h:527
wifi8_connect_alpn_reply_t::str_conn_reply
wifi8_connect_reply_t str_conn_reply
Definition: wifi8_types.h:1026
wifi8_m2m_conn_info_t::s8rssi
uint8_t s8rssi
Definition: wifi8_types.h:1233
M2M_OTA_REQ_ROLLBACK
@ M2M_OTA_REQ_ROLLBACK
Definition: wifi8_types.h:631
SSID_MODE_HIDDEN
@ SSID_MODE_HIDDEN
Definition: wifi8_types.h:557
wifi8_ping_reply_t
Definition: wifi8_types.h:1201
wifi8_m2m_wifi_rx_packet_info_t::u8_header_length
uint8_t u8_header_length
Definition: wifi8_types.h:876
wifi8_sock_addr_t::u32ip_addr
uint32_t u32ip_addr
Definition: wifi8_types.h:851
wifi8_socket_recv_msg_t::str_remote_addr
wifi8_sockaddr_in_t str_remote_addr
Definition: wifi8_types.h:803
M2M_WIFI_REQ_SLEEP
@ M2M_WIFI_REQ_SLEEP
Definition: wifi8_types.h:455
wifi8_auth_wep_t::pu8_wep_key
uint8_t * pu8_wep_key
Definition: wifi8_types.h:1109
M2M_SSL_RSV
@ M2M_SSL_RSV
Definition: wifi8_types.h:609
wifi8_auth1x_mschap2_t::b_prepend_domain
uint8_t b_prepend_domain
Definition: wifi8_types.h:765
wifi8_accept_reply_t::u16_void
uint16_t u16_void
Definition: wifi8_types.h:1216
M2M_REQ_GROUP_SIGMA
@ M2M_REQ_GROUP_SIGMA
Definition: wifi8_types.h:594
WIFI_CRED_SAVE_ENCRYPTED
@ WIFI_CRED_SAVE_ENCRYPTED
Definition: wifi8_types.h:651
M2M_SERVER_CMD_BASE
#define M2M_SERVER_CMD_BASE
Definition: wifi8_types.h:33
wifi8_m2m_ap_cmd_t
wifi8_m2m_ap_cmd_t
Definition: wifi8_types.h:547
SOCKET_MSG_LISTEN
@ SOCKET_MSG_LISTEN
Definition: wifi8_types.h:528
wifi8_eth_init_param_t::pf_app_eth_cb
wifi8_app_eth_cb_t pf_app_eth_cb
Definition: wifi8_types.h:1341
wifi8_listen_reply_t::s8_status
int8_t s8_status
Definition: wifi8_types.h:963
wifi8_send_cmd_t::str_addr
wifi8_sock_addr_t str_addr
Definition: wifi8_types.h:859
wifi8_gp_regs_t::u32_firmware_ota_rev
uint32_t u32_firmware_ota_rev
Definition: wifi8_types.h:867
wifi8_m2m_conn_info_t
Definition: wifi8_types.h:1228
wifi8_close_cmd_t::u16_session_id
uint16_t u16_session_id
Definition: wifi8_types.h:971
wifi8_m2m_provision_mode_config_t::str_ap_config
wifi8_m2m_ap_config_t str_ap_config
Definition: wifi8_types.h:1061
M2M_WIFI_RESP_CURRENT_RSSI
@ M2M_WIFI_RESP_CURRENT_RSSI
Definition: wifi8_types.h:482
M2M_WIFI_SEC_WEP
@ M2M_WIFI_SEC_WEP
Definition: wifi8_types.h:434
wifi8_listen_reply_t::u16_session_id
uint16_t u16_session_id
Definition: wifi8_types.h:964
wifi8_auth1x_mschap2_t::pu8_domain
uint8_t * pu8_domain
Definition: wifi8_types.h:730
wifi8_m2mip_config_t
Definition: wifi8_types.h:1238
wifi8_auth1x_mschap2_t::pu8_user_name
uint8_t * pu8_user_name
Definition: wifi8_types.h:739
M2M_WIFI_REQ_SERVER_INIT
@ M2M_WIFI_REQ_SERVER_INIT
Definition: wifi8_types.h:643
wifi8_connect_alpn_reply_t
Definition: wifi8_types.h:1025
wifi8_m2m_conn_cred_cmn_t
Definition: wifi8_types.h:1127
wifi8_ping_cb_t
void(* wifi8_ping_cb_t)(uint32_t u32ip_addr, uint32_t u32rtt, uint8_t u8_error_code)
Definition: wifi8_types.h:1335
wifi8_m2m_wifi1x_hdr_t::u32_tls_hs_flags
uint32_t u32_tls_hs_flags
Definition: wifi8_types.h:719
SOCKET_MSG_DNS_RESOLVE
@ SOCKET_MSG_DNS_RESOLVE
Definition: wifi8_types.h:529
wifi8_socket_buffer_t::data_buf
uint8_t * data_buf
Definition: wifi8_types.h:779
M2M_WIFI_REQ_DISABLE_SNTP_CLIENT
@ M2M_WIFI_REQ_DISABLE_SNTP_CLIENT
Definition: wifi8_types.h:494
wifi8_app_resolve_cb_t
void(* wifi8_app_resolve_cb_t)(uint8_t *pu8_domain_name, uint32_t u32_server_ip)
Definition: wifi8_types.h:1334
wifi8_m2m_server_cmd_t
wifi8_m2m_server_cmd_t
Definition: wifi8_types.h:640
WIFI_1X_TIME_VERIF_MODE
@ WIFI_1X_TIME_VERIF_MODE
Definition: wifi8_types.h:664
WIFI_STATE_START
@ WIFI_STATE_START
Definition: wifi8_types.h:564
wifi8_ssl_socket_create_cmd_t::ssl_sock
int8_t ssl_sock
Definition: wifi8_types.h:947
wifi8_m2m_wifiscan_result_t::_pad8_
uint8_t _pad8_
Definition: wifi8_types.h:921
wifi8_eth_init_param_t::u16eth_rcv_buf_size
uint16_t u16eth_rcv_buf_size
Definition: wifi8_types.h:1343
__padding_tstr_system_time_
#define __padding_tstr_system_time_
Definition: wifi8_types.h:1325
wifi8_socket_t::u16_session_id
uint16_t u16_session_id
Definition: wifi8_types.h:978
wifi8_system_time_t::u16_year
uint16_t u16_year
Definition: wifi8_types.h:1318
wifi8_socket_t
Definition: wifi8_types.h:975
wifi8_m2m_ssl_cmd_t
wifi8_m2m_ssl_cmd_t
Definition: wifi8_types.h:605
wifi8_m2m_sta_cmd_t
wifi8_m2m_sta_cmd_t
Definition: wifi8_types.h:448
wifi8_recv_reply_t::sock
int8_t sock
Definition: wifi8_types.h:1186
WIFI_STATE_DEINIT
@ WIFI_STATE_DEINIT
Definition: wifi8_types.h:562
M2M_WIFI_REQ_SEND_WIFI_PACKET
@ M2M_WIFI_REQ_SEND_WIFI_PACKET
Definition: wifi8_types.h:466
wifi8_m2m_rev_t
Definition: wifi8_types.h:837
M2M_WIFI_REQ_DISABLE_WPS
@ M2M_WIFI_REQ_DISABLE_WPS
Definition: wifi8_types.h:459
wifi8_auth_psk_t::u8_passphrase_len
uint8_t u8_passphrase_len
Definition: wifi8_types.h:1104
M2M_WIFI_REQ_SET_SCAN_REGION
@ M2M_WIFI_REQ_SET_SCAN_REGION
Definition: wifi8_types.h:502
M2M_WIFI_REQ_PASSIVE_SCAN
@ M2M_WIFI_REQ_PASSIVE_SCAN
Definition: wifi8_types.h:516
wifi8_m2m_provision_mode_config_t::str_ap_config_ext
wifi8_m2m_ap_config_ext_t str_ap_config_ext
Definition: wifi8_types.h:1066
wifi8_connect_cmd_t::u16_session_id
uint16_t u16_session_id
Definition: wifi8_types.h:1224
wifi8_listen_cmd_t
Definition: wifi8_types.h:925
wifi8_auth1x_mschap2_t
Definition: wifi8_types.h:729
wifi8_listen_cmd_t::u8_back_log
uint8_t u8_back_log
Definition: wifi8_types.h:927
wifi8_ping_reply_t::u16_fail
uint16_t u16_fail
Definition: wifi8_types.h:1206
M2M_SSL_RESP_SET_CS_LIST
@ M2M_SSL_RESP_SET_CS_LIST
Definition: wifi8_types.h:612
M2M_WIFI_REQ_SET_MAC_MCAST
@ M2M_WIFI_REQ_SET_MAC_MCAST
Definition: wifi8_types.h:511
wifi8_m2m_wifi_sec_info_legacy_1_2_t::uni_auth
wifi8_m2m_wifi_auth_legacy_1_2_t uni_auth
Definition: wifi8_types.h:1157
wifi8_recv_cmd_t::u16_buf_len
uint16_t u16_buf_len
Definition: wifi8_types.h:957
M2M_OTA_REQ_NOTIF_SCHED
@ M2M_OTA_REQ_NOTIF_SCHED
Definition: wifi8_types.h:628
wifi8_send_cmd_t::sock
int8_t sock
Definition: wifi8_types.h:856
wifi8_close_cmd_t::u8_dummy
uint8_t u8_dummy
Definition: wifi8_types.h:970
wifi8_m2m_wifi_rx_packet_info_t::u8_frame_type
uint8_t u8_frame_type
Definition: wifi8_types.h:872
wifi8_m2m_sec_type_t
wifi8_m2m_sec_type_t
Definition: wifi8_types.h:430
wifi8_socket_connect_msg_t::s8_error
int8_t s8_error
Definition: wifi8_types.h:1034
wifi8_m2m_wifi_rx_packet_info_t
Definition: wifi8_types.h:871
wifi8_m2m_wifi_connect_legacy_1_2_t
Definition: wifi8_types.h:1163
M2M_WIFI_MAX_STA_ALL
@ M2M_WIFI_MAX_STA_ALL
Definition: wifi8_types.h:474
wifi8_auth1x_mschap2_t::u16_domain_len
uint16_t u16_domain_len
Definition: wifi8_types.h:747
wifi8_socket_connect_msg_t
Definition: wifi8_types.h:1032
wifi8_app_mon_cb_t
void(* wifi8_app_mon_cb_t)(wifi8_m2m_wifi_rx_packet_info_t *pstr_wifi_rx_packet, uint8_t *pu8_payload, uint16_t u16_payload_size)
Definition: wifi8_types.h:1332
wifi8_m2m_ap_config_t::u8_key_sz
uint8_t u8_key_sz
Definition: wifi8_types.h:820
M2M_AP_CMD_BASE
#define M2M_AP_CMD_BASE
Definition: wifi8_types.h:32
M2M_WIFI_REQ_START_WPS
@ M2M_WIFI_REQ_START_WPS
Definition: wifi8_types.h:458
M2M_WIFI_REQ_DHCP_CONF
@ M2M_WIFI_REQ_DHCP_CONF
Definition: wifi8_types.h:460
wifi8_in_addr_t
Definition: wifi8_types.h:785
wifi8_ping_reply_t::u16_success
uint16_t u16_success
Definition: wifi8_types.h:1205
wifi8_sock_addr_t::u16_port
uint16_t u16_port
Definition: wifi8_types.h:850
M2M_WIFI_RESP_SCAN_RESULT
@ M2M_WIFI_RESP_SCAN_RESULT
Definition: wifi8_types.h:500
wifi8_in_addr_t::s_addr
uint32_t s_addr
Definition: wifi8_types.h:786
wifi8_m2m_wifi_wep_t::u8_rsv
uint8_t u8_rsv
Definition: wifi8_types.h:1075
M2M_WIFI_REQ_DEFAULT_CONNECT
@ M2M_WIFI_REQ_DEFAULT_CONNECT
Definition: wifi8_types.h:451
wifi8_socket_buffer_t
Definition: wifi8_types.h:778
wifi8_socket_t::pu8_user_buffer
uint8_t * pu8_user_buffer
Definition: wifi8_types.h:976
wifi8_m2m_rev_t::u8_firmware_minor
uint8_t u8_firmware_minor
Definition: wifi8_types.h:841
wifi8_socket_t::u8_alpn_status
uint8_t u8_alpn_status
Definition: wifi8_types.h:983
wifi8_m2m_default_conn_resp_t
Definition: wifi8_types.h:1258
wifi8_m2m_wifi_sec_info_legacy_1_2_t
Definition: wifi8_types.h:1156
wifi8_m2m_wifi1x_hdr_t::u32_rsv
uint32_t u32_rsv
Definition: wifi8_types.h:721
M2M_WIFI_CH_4
@ M2M_WIFI_CH_4
Definition: wifi8_types.h:415
wifi8_socket_bind_msg_t::status
int8_t status
Definition: wifi8_types.h:933
wifi8_m2m_ble_api_msg_t::u16_len
uint16_t u16_len
Definition: wifi8_types.h:1270
M2M_GEN_CMD_BASE
#define M2M_GEN_CMD_BASE
Definition: wifi8_types.h:34
M2M_WIFI_RESP_SET_GAIN_TABLE
@ M2M_WIFI_RESP_SET_GAIN_TABLE
Definition: wifi8_types.h:515
wifi8_m2m_wifi_psk_t::u8_passphrase_len
uint8_t u8_passphrase_len
Definition: wifi8_types.h:1092
wifi8_return_value_t
wifi8_return_value_t
WiFi 8 Click return value data.
Definition: wifi8_types.h:572
M2M_WIFI_MAX_SERVER_ALL
@ M2M_WIFI_MAX_SERVER_ALL
Definition: wifi8_types.h:644
WIFI_CRED_DONTSAVE
@ WIFI_CRED_DONTSAVE
Definition: wifi8_types.h:649
M2M_WIFI_CH_ALL
@ M2M_WIFI_CH_ALL
Definition: wifi8_types.h:426
wifi8_socket_t::u16_data_offset
uint16_t u16_data_offset
Definition: wifi8_types.h:979
M2M_OTA_REQ_SWITCH_FIRMWARE
@ M2M_OTA_REQ_SWITCH_FIRMWARE
Definition: wifi8_types.h:630
wifi8_tls_cert_exp_settings_t
wifi8_tls_cert_exp_settings_t
Definition: wifi8_types.h:680
M2M_WIFI_REQ_BLE_API_SEND
@ M2M_WIFI_REQ_BLE_API_SEND
Definition: wifi8_types.h:512
wifi8_send_cmd_t::u16_session_id
uint16_t u16_session_id
Definition: wifi8_types.h:860
wifi8_socket_buffer_t::head
uint8_t * head
Definition: wifi8_types.h:780
wifi8_connect_reply_t::u16_app_data_offset
uint16_t u16_app_data_offset
Definition: wifi8_types.h:1014
M2M_WIFI_REQ_RESTRICT_BLE
@ M2M_WIFI_REQ_RESTRICT_BLE
Definition: wifi8_types.h:483
M2M_MAX_SSID_LEN
#define M2M_MAX_SSID_LEN
Definition: wifi8_types.h:404
M2M_WIFI_REQ_RESTART
@ M2M_WIFI_REQ_RESTART
Definition: wifi8_types.h:479
wifi8_m2m_provision_info_t
Definition: wifi8_types.h:1247
M2M_WIFI_REQ_SET_SYS_TIME
@ M2M_WIFI_REQ_SET_SYS_TIME
Definition: wifi8_types.h:491
M2M_MAX_PSK_LEN
#define M2M_MAX_PSK_LEN
Definition: wifi8_types.h:408
wifi8_connect_reply_t::u8_err_source
uint8_t u8_err_source
Definition: wifi8_types.h:1018
wifi8_wifi_state_t
wifi8_wifi_state_t
Definition: wifi8_types.h:561
M2M_WIFI_RESP_CONN_INFO
@ M2M_WIFI_RESP_CONN_INFO
Definition: wifi8_types.h:486
wifi8_m2m_wifi_wep_params_legacy_1_2_t::u8_key_indx
uint8_t u8_key_indx
Definition: wifi8_types.h:1138
M2M_WIFI_REQ_GET_PRNG
@ M2M_WIFI_REQ_GET_PRNG
Definition: wifi8_types.h:469
wifi8_m2m_rev_t::u8_firmware_major
uint8_t u8_firmware_major
Definition: wifi8_types.h:839
wifi8_m2m_conn_cred_cmn_t::u8_ssid_len
uint8_t u8_ssid_len
Definition: wifi8_types.h:1128
wifi8_m2m_wifi1x_hdr_t::u16_private_key_offset
uint16_t u16_private_key_offset
Definition: wifi8_types.h:705
wifi8_m2m_wifiscan_result_t::u8_auth_type
uint8_t u8_auth_type
Definition: wifi8_types.h:917
wifi8_sockaddr_in_t
Definition: wifi8_types.h:791
wifi8_m2m_gain_table_t::u8_gain_table
uint8_t u8_gain_table
Definition: wifi8_types.h:1305
wifi8_m2m_wifi_state_changed_t::u8_curr_state
uint8_t u8_curr_state
Definition: wifi8_types.h:890
wifi8_send_cmd_t::u16_void
uint16_t u16_void
Definition: wifi8_types.h:861
wifi8_system_time_t::u8_hour
uint8_t u8_hour
Definition: wifi8_types.h:1321
wifi8_m2m_wifi_rx_packet_info_t::u8_priority
uint8_t u8_priority
Definition: wifi8_types.h:875
M2M_WIFI_REQ_CONN
@ M2M_WIFI_REQ_CONN
Definition: wifi8_types.h:471
M2M_WIFI_CH_10
@ M2M_WIFI_CH_10
Definition: wifi8_types.h:421
M2M_WIFI_REQ_CURRENT_RSSI
@ M2M_WIFI_REQ_CURRENT_RSSI
Definition: wifi8_types.h:481
M2M_WIFI_REQ_ENABLE_SNTP_CLIENT
@ M2M_WIFI_REQ_ENABLE_SNTP_CLIENT
Definition: wifi8_types.h:492
wifi8_init_param_t::pf_app_wifi_cb
wifi8_app_wifi_cb_t pf_app_wifi_cb
Definition: wifi8_types.h:1349
wifi8_m2m_scan_t::u8_ch_num
uint8_t u8_ch_num
Definition: wifi8_types.h:1086
wifi8_sockaddr_in_t::sin_port
uint16_t sin_port
Definition: wifi8_types.h:793
wifi8_m2m_wifi_wep_t::u8_key_index
uint8_t u8_key_index
Definition: wifi8_types.h:1072
WEP_104_KEY_STRING_SIZE
#define WEP_104_KEY_STRING_SIZE
Definition: wifi8_types.h:406
M2M_OTA_REQ_NOTIF_SET_URL
@ M2M_OTA_REQ_NOTIF_SET_URL
Definition: wifi8_types.h:626
wifi8_bind_reply_t
Definition: wifi8_types.h:989
wifi8_socket_buffer_t::length
int length
Definition: wifi8_types.h:781
wifi8_recv_reply_t::u16_session_id
uint16_t u16_session_id
Definition: wifi8_types.h:1188
wifi8_connect_cmd_t::sock
int8_t sock
Definition: wifi8_types.h:1222
WIFI8_OK
@ WIFI8_OK
Definition: wifi8_types.h:573
wifi8_m2m_wifiscan_result_t::u8ch
uint8_t u8ch
Definition: wifi8_types.h:918
M2M_MAC_ADDRES_LEN
#define M2M_MAC_ADDRES_LEN
Definition: wifi8_types.h:382
wifi8_recv_cmd_t
Definition: wifi8_types.h:952
M2M_WIFI_DISCONNECTED
@ M2M_WIFI_DISCONNECTED
Definition: wifi8_types.h:441
wifi8_listen_cmd_t::u16_session_id
uint16_t u16_session_id
Definition: wifi8_types.h:928
wifi8_socket_listen_msg_t::status
int8_t status
Definition: wifi8_types.h:997
M2M_WIFI_REQ_GET_CONN_INFO
@ M2M_WIFI_REQ_GET_CONN_INFO
Definition: wifi8_types.h:485
wifi8_prng_t::pu8_rng_buff
uint8_t * pu8_rng_buff
Definition: wifi8_types.h:1279
M2M_WIFI_SEC_802_1X
@ M2M_WIFI_SEC_802_1X
Definition: wifi8_types.h:435
wifi8_ping_reply_t::u32_cmd_private
uint32_t u32_cmd_private
Definition: wifi8_types.h:1203
M2M_WIFI_SEC_WPA_PSK
@ M2M_WIFI_SEC_WPA_PSK
Definition: wifi8_types.h:433
wifi8_eth_init_param_t::u8_ethernet_enable
uint8_t u8_ethernet_enable
Definition: wifi8_types.h:1344
wifi8_ping_reply_t::u32rtt
uint32_t u32rtt
Definition: wifi8_types.h:1204
wifi8_bind_cmd_t::u8_void
uint8_t u8_void
Definition: wifi8_types.h:941
wifi8_app_wifi_cb_t
void(* wifi8_app_wifi_cb_t)(uint8_t u8_msg_type, void *pv_msg)
Definition: wifi8_types.h:1331
wifi8_m2m_wifiscan_result_t
Definition: wifi8_types.h:914
wifi8_m2m_wifi_auth_legacy_1_2_t::str_wep_info
wifi8_m2m_wifi_wep_params_legacy_1_2_t str_wep_info
Definition: wifi8_types.h:1146
M2M_WIFI_REQ_UNRESTRICT_BLE
@ M2M_WIFI_REQ_UNRESTRICT_BLE
Definition: wifi8_types.h:484
wifi8_nm_bus_capabilities_t::u16_max_trx_sz
uint16_t u16_max_trx_sz
Definition: wifi8_types.h:1172
NM_STATE_INIT
@ NM_STATE_INIT
Definition: wifi8_types.h:620
wifi8_m2m_conn_info_t::u8_sec_type
uint8_t u8_sec_type
Definition: wifi8_types.h:1230
wifi8_m2m_wifi1x_hdr_t::u8_domain_length
uint8_t u8_domain_length
Definition: wifi8_types.h:697
M2M_WIFI_REQ_GET_SYS_TIME
@ M2M_WIFI_REQ_GET_SYS_TIME
Definition: wifi8_types.h:507
M2M_WIFI_RESP_PROVISION_INFO
@ M2M_WIFI_RESP_PROVISION_INFO
Definition: wifi8_types.h:489
wifi8_m2m_wifi_rx_packet_info_t::u8_cipher_type
uint8_t u8_cipher_type
Definition: wifi8_types.h:877
WIFI_STATE_INIT
@ WIFI_STATE_INIT
Definition: wifi8_types.h:563
M2M_REQ_DATA_PKT
@ M2M_REQ_DATA_PKT
Definition: wifi8_types.h:601
wifi8_m2m_wifi_state_changed_t::u8_err_code
uint8_t u8_err_code
Definition: wifi8_types.h:891
wifi8_accept_reply_t::str_addr
wifi8_sock_addr_t str_addr
Definition: wifi8_types.h:1213
wifi8_m2m_wifi_connect_legacy_1_2_t::str_sec
wifi8_m2m_wifi_sec_info_legacy_1_2_t str_sec
Definition: wifi8_types.h:1164
SOCKET_MSG_CONNECT
@ SOCKET_MSG_CONNECT
Definition: wifi8_types.h:531
wifi8_m2m_gain_table_rsp_t::s8_error_code
int8_t s8_error_code
Definition: wifi8_types.h:1288
wifi8_m2m_wifi1x_hdr_t::u8_user_name_length
uint8_t u8_user_name_length
Definition: wifi8_types.h:699
wifi8_m2m_ssid_mode_t
wifi8_m2m_ssid_mode_t
Definition: wifi8_types.h:555
wifi8_m2m_ap_config_t::u8_sec_type
uint8_t u8_sec_type
Definition: wifi8_types.h:822
wifi8_cred_store_option_t
wifi8_cred_store_option_t
Definition: wifi8_types.h:648
wifi8_send_reply_t::sock
int8_t sock
Definition: wifi8_types.h:1193
M2M_CONFIG_CMD_BASE
#define M2M_CONFIG_CMD_BASE
Definition: wifi8_types.h:31
M2M_WIFI_MODE_ETHERNET
@ M2M_WIFI_MODE_ETHERNET
Definition: wifi8_types.h:582
wifi8_m2m_ap_config_t::u8_key_indx
uint8_t u8_key_indx
Definition: wifi8_types.h:819
wifi8_socket_accept_msg_t::sock
int8_t sock
Definition: wifi8_types.h:1003
M2M_SSL_REQ_SET_CS_LIST
@ M2M_SSL_REQ_SET_CS_LIST
Definition: wifi8_types.h:611
wifi8_recv_reply_t::str_remote_addr
wifi8_sock_addr_t str_remote_addr
Definition: wifi8_types.h:1183
wifi8_m2m_wifi_rx_packet_info_t::s8rssi
int8_t s8rssi
Definition: wifi8_types.h:884
M2M_WIFI_SEC_INVALID
@ M2M_WIFI_SEC_INVALID
Definition: wifi8_types.h:431
wifi8_recv_reply_t::u16_data_offset
uint16_t u16_data_offset
Definition: wifi8_types.h:1185