Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
wifi_mgmt.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2017 Intel Corporation.
3 * Copyright 2024 NXP
4 * Copyright (c) 2024 Nordic Semiconductor ASA
5 *
6 * SPDX-License-Identifier: Apache-2.0
7 */
8
14
15#ifndef ZEPHYR_INCLUDE_NET_WIFI_MGMT_H_
16#define ZEPHYR_INCLUDE_NET_WIFI_MGMT_H_
17
18#include <zephyr/net/net_mgmt.h>
19#include <zephyr/net/wifi.h>
20#include <zephyr/net/ethernet.h>
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
31
32/* Management part definitions */
33
35
36#define NET_WIFI_LAYER NET_MGMT_LAYER_L2
37#define NET_WIFI_CODE NET_MGMT_LAYER_CODE_WIFI
38#define NET_WIFI_BASE (NET_MGMT_IFACE_BIT | \
39 NET_MGMT_LAYER(NET_WIFI_LAYER) | \
40 NET_MGMT_LAYER_CODE(NET_WIFI_CODE))
41#define NET_WIFI_EVENT (NET_WIFI_BASE | NET_MGMT_EVENT_BIT)
42
43#ifdef CONFIG_WIFI_MGMT_SCAN_SSID_FILT_MAX
44#define WIFI_MGMT_SCAN_SSID_FILT_MAX CONFIG_WIFI_MGMT_SCAN_SSID_FILT_MAX
45#else
46#define WIFI_MGMT_SCAN_SSID_FILT_MAX 1
47#endif /* CONFIG_WIFI_MGMT_SCAN_SSID_FILT_MAX */
48
49#ifdef CONFIG_WIFI_MGMT_SCAN_CHAN_MAX_MANUAL
50#define WIFI_MGMT_SCAN_CHAN_MAX_MANUAL CONFIG_WIFI_MGMT_SCAN_CHAN_MAX_MANUAL
51#else
52#define WIFI_MGMT_SCAN_CHAN_MAX_MANUAL 1
53#endif /* CONFIG_WIFI_MGMT_SCAN_CHAN_MAX_MANUAL */
54
55#ifdef CONFIG_WIFI_ENT_IDENTITY_MAX_USERS
56#define WIFI_ENT_IDENTITY_MAX_USERS CONFIG_WIFI_ENT_IDENTITY_MAX_USERS
57#else
58#define WIFI_ENT_IDENTITY_MAX_USERS 1
59#endif /* CONFIG_WIFI_ENT_IDENTITY_MAX_USERS */
60
61#define WIFI_MGMT_BAND_STR_SIZE_MAX 8
62#define WIFI_MGMT_SCAN_MAX_BSS_CNT 65535
63
64#define WIFI_MGMT_SKIP_INACTIVITY_POLL IS_ENABLED(CONFIG_WIFI_MGMT_AP_STA_SKIP_INACTIVITY_POLL)
65
66#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_NAN
67#define WIFI_NAN_MAX_SSI_LEN CONFIG_WIFI_NAN_MAX_SSI_LEN
68#define WIFI_NAN_MAX_SERVICE_NAME_LEN 64
69/* Holds multi-line NAN_STATUS output from hostap. */
70#define WIFI_NAN_RESP_SIZE 512
71#define WIFI_NAN_MAX_SET_PARAM_LEN 32
72#define WIFI_NAN_MAX_SET_VALUE_LEN 256
73#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_NAN */
75
138#ifdef CONFIG_WIFI_CREDENTIALS_CONNECT_STORED
140 NET_REQUEST_WIFI_CMD_CONNECT_STORED,
141#endif
157 NET_REQUEST_WIFI_CMD_MAX
159};
160
162#define NET_REQUEST_WIFI_SCAN \
163 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_SCAN)
164
166
168#define NET_REQUEST_WIFI_CONNECT \
169 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_CONNECT)
170
172
174#define NET_REQUEST_WIFI_DISCONNECT \
175 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_DISCONNECT)
176
178
180#define NET_REQUEST_WIFI_AP_ENABLE \
181 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_AP_ENABLE)
182
184
186#define NET_REQUEST_WIFI_AP_DISABLE \
187 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_AP_DISABLE)
188
190
192#define NET_REQUEST_WIFI_AP_RTS_THRESHOLD \
193 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_AP_RTS_THRESHOLD)
194
196
198#define NET_REQUEST_WIFI_IFACE_STATUS \
199 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_IFACE_STATUS)
200
202
204#define NET_REQUEST_WIFI_11K_CONFIG \
205 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_11K_CONFIG)
206
208
210#define NET_REQUEST_WIFI_11K_NEIGHBOR_REQUEST \
211 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_11K_NEIGHBOR_REQUEST)
212
214
216#define NET_REQUEST_WIFI_PS \
217 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_PS)
218
220
222#define NET_REQUEST_WIFI_TWT \
223 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_TWT)
224
226
228#define NET_REQUEST_WIFI_BTWT \
229 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_BTWT)
230
232
234#define NET_REQUEST_WIFI_PS_CONFIG \
235 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_PS_CONFIG)
236
238
240#define NET_REQUEST_WIFI_REG_DOMAIN \
241 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_REG_DOMAIN)
242
244
246#define NET_REQUEST_WIFI_MODE \
247 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_MODE)
248
250
252#define NET_REQUEST_WIFI_PACKET_FILTER \
253 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_PACKET_FILTER)
254
256
258#define NET_REQUEST_WIFI_CHANNEL \
259 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_CHANNEL)
260
262
264#define NET_REQUEST_WIFI_AP_STA_DISCONNECT \
265 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_AP_STA_DISCONNECT)
266
268
270#define NET_REQUEST_WIFI_VERSION \
271 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_VERSION)
272
274
276#define NET_REQUEST_WIFI_CONN_PARAMS \
277 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_CONN_PARAMS)
278
280
282#define NET_REQUEST_WIFI_RTS_THRESHOLD \
283 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_RTS_THRESHOLD)
284
286
288#define NET_REQUEST_WIFI_AP_CONFIG_PARAM \
289 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_AP_CONFIG_PARAM)
290
292
294#define NET_REQUEST_WIFI_CONFIG_PARAM \
295 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_CONFIG_PARAM)
296
298
299#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP
301#define NET_REQUEST_WIFI_DPP \
302 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_DPP)
303
304NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_WIFI_DPP);
305#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
306
307#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_NAN
309#define NET_REQUEST_WIFI_NAN \
310 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_NAN)
311
312NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_WIFI_NAN);
313#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_NAN */
314
316#define NET_REQUEST_WIFI_BTM_QUERY (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_BTM_QUERY)
317
319
321#define NET_REQUEST_WIFI_PMKSA_FLUSH \
322 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_PMKSA_FLUSH)
323
325
327#define NET_REQUEST_WIFI_ENTERPRISE_CREDS \
328 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_ENTERPRISE_CREDS)
329
331
333#define NET_REQUEST_WIFI_RTS_THRESHOLD_CONFIG \
334 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_RTS_THRESHOLD_CONFIG)
335
337
339#define NET_REQUEST_WIFI_WPS_CONFIG (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_WPS_CONFIG)
340
342#ifdef CONFIG_WIFI_CREDENTIALS_CONNECT_STORED
343#define NET_REQUEST_WIFI_CONNECT_STORED (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_CONNECT_STORED)
344
345NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_WIFI_CONNECT_STORED);
346#endif
347
349#define NET_REQUEST_WIFI_START_ROAMING \
350 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_START_ROAMING)
351
353
355#define NET_REQUEST_WIFI_NEIGHBOR_REP_COMPLETE \
356 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_NEIGHBOR_REP_COMPLETE)
357
359
361#define NET_REQUEST_WIFI_BSS_MAX_IDLE_PERIOD \
362 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_BSS_MAX_IDLE_PERIOD)
363
365
367#define NET_REQUEST_WIFI_BGSCAN \
368 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_BGSCAN)
369
371
373#define NET_REQUEST_WIFI_P2P_OPER \
374 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_P2P_OPER)
375
377
379
380enum {
381 NET_EVENT_WIFI_CMD_SCAN_RESULT_VAL,
382 NET_EVENT_WIFI_CMD_SCAN_DONE_VAL,
383 NET_EVENT_WIFI_CMD_CONNECT_RESULT_VAL,
384 NET_EVENT_WIFI_CMD_DISCONNECT_RESULT_VAL,
385 NET_EVENT_WIFI_CMD_IFACE_STATUS_VAL,
386 NET_EVENT_WIFI_CMD_TWT_VAL,
387 NET_EVENT_WIFI_CMD_TWT_SLEEP_STATE_VAL,
388 NET_EVENT_WIFI_CMD_RAW_SCAN_RESULT_VAL,
389 NET_EVENT_WIFI_CMD_DISCONNECT_COMPLETE_VAL,
390 NET_EVENT_WIFI_CMD_SIGNAL_CHANGE_VAL,
391 NET_EVENT_WIFI_CMD_NEIGHBOR_REP_RECEIVED_VAL,
392 NET_EVENT_WIFI_CMD_NEIGHBOR_REP_COMPLETE_VAL,
393 NET_EVENT_WIFI_CMD_AP_ENABLE_RESULT_VAL,
394 NET_EVENT_WIFI_CMD_AP_DISABLE_RESULT_VAL,
395 NET_EVENT_WIFI_CMD_AP_STA_CONNECTED_VAL,
396 NET_EVENT_WIFI_CMD_AP_STA_DISCONNECTED_VAL,
397 NET_EVENT_WIFI_CMD_SUPPLICANT_VAL,
398 NET_EVENT_WIFI_CMD_P2P_DEVICE_FOUND_VAL,
399 NET_EVENT_WIFI_CMD_NAN_DISCOVERY_RESULT_VAL,
400 NET_EVENT_WIFI_CMD_NAN_REPLIED_VAL,
401 NET_EVENT_WIFI_CMD_NAN_PUBLISH_TERMINATED_VAL,
402 NET_EVENT_WIFI_CMD_NAN_SUBSCRIBE_TERMINATED_VAL,
403 NET_EVENT_WIFI_CMD_NAN_RECEIVE_VAL,
404
405 NET_EVENT_WIFI_CMD_MAX,
406};
407
408BUILD_ASSERT(NET_EVENT_WIFI_CMD_MAX <= NET_MGMT_MAX_COMMANDS,
409 "Number of events in net_event_wifi_cmd exceeds the limit");
410
412
416 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_SCAN_RESULT),
418 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_SCAN_DONE),
420 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_CONNECT_RESULT),
422 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_DISCONNECT_RESULT),
424 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_IFACE_STATUS),
426 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_TWT),
430 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_TWT_SLEEP_STATE),
432 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_RAW_SCAN_RESULT),
434 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_DISCONNECT_COMPLETE),
436 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_SIGNAL_CHANGE),
438 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_NEIGHBOR_REP_RECEIVED),
440 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_NEIGHBOR_REP_COMPLETE),
442 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_AP_ENABLE_RESULT),
444 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_AP_DISABLE_RESULT),
446 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_AP_STA_CONNECTED),
448 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_AP_STA_DISCONNECTED),
450 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_SUPPLICANT),
452 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_P2P_DEVICE_FOUND),
453#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_NAN
455 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_NAN_DISCOVERY_RESULT),
457 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_NAN_REPLIED),
459 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_NAN_PUBLISH_TERMINATED),
461 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_NAN_SUBSCRIBE_TERMINATED),
463 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_NAN_RECEIVE),
464#endif
465};
466
468#define NET_EVENT_WIFI_SCAN_RESULT \
469 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_SCAN_RESULT)
470
472#define NET_EVENT_WIFI_SCAN_DONE \
473 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_SCAN_DONE)
474
476#define NET_EVENT_WIFI_CONNECT_RESULT \
477 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_CONNECT_RESULT)
478
480#define NET_EVENT_WIFI_DISCONNECT_RESULT \
481 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_DISCONNECT_RESULT)
482
484#define NET_EVENT_WIFI_IFACE_STATUS \
485 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_IFACE_STATUS)
486
488#define NET_EVENT_WIFI_TWT \
489 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_TWT)
490
492#define NET_EVENT_WIFI_TWT_SLEEP_STATE \
493 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_TWT_SLEEP_STATE)
494
496#define NET_EVENT_WIFI_RAW_SCAN_RESULT \
497 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_RAW_SCAN_RESULT)
498
500#define NET_EVENT_WIFI_DISCONNECT_COMPLETE \
501 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_DISCONNECT_COMPLETE)
502
504#define NET_EVENT_WIFI_SIGNAL_CHANGE \
505 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_SIGNAL_CHANGE)
506
508#define NET_EVENT_WIFI_NEIGHBOR_REP_COMP \
509 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_NEIGHBOR_REP_COMPLETE)
510
512#define NET_EVENT_WIFI_AP_ENABLE_RESULT \
513 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_AP_ENABLE_RESULT)
514
516#define NET_EVENT_WIFI_AP_DISABLE_RESULT \
517 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_AP_DISABLE_RESULT)
518
520#define NET_EVENT_WIFI_AP_STA_CONNECTED \
521 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_AP_STA_CONNECTED)
522
524#define NET_EVENT_WIFI_AP_STA_DISCONNECTED \
525 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_AP_STA_DISCONNECTED)
526
528#define NET_EVENT_WIFI_P2P_DEVICE_FOUND \
529 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_P2P_DEVICE_FOUND)
530
531#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_P2P
533#define WIFI_P2P_DEVICE_NAME_MAX_LEN 32
535#define WIFI_P2P_PRI_DEV_TYPE_SIZE 8
537#define WIFI_P2P_PRI_DEV_TYPE_STR_MAX_LEN 32
539#define WIFI_P2P_CONFIG_METHODS_STR_MAX_LEN 16
541#define WIFI_P2P_MANUFACTURER_MAX_LEN 64
543#define WIFI_P2P_MODEL_NAME_MAX_LEN 32
544
546struct wifi_p2p_device_info {
550 char device_name[WIFI_P2P_DEVICE_NAME_MAX_LEN + 1];
552 uint8_t pri_dev_type[WIFI_P2P_PRI_DEV_TYPE_SIZE];
554 char pri_dev_type_str[WIFI_P2P_PRI_DEV_TYPE_STR_MAX_LEN];
556 int8_t rssi;
558 uint16_t config_methods;
560 char config_methods_str[WIFI_P2P_CONFIG_METHODS_STR_MAX_LEN];
562 uint8_t dev_capab;
564 uint8_t group_capab;
566 char manufacturer[WIFI_P2P_MANUFACTURER_MAX_LEN + 1];
568 char model_name[WIFI_P2P_MODEL_NAME_MAX_LEN + 1];
569};
570#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_P2P */
571
572#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_NAN
574#define NET_EVENT_WIFI_NAN_DISCOVERY_RESULT \
575 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_NAN_DISCOVERY_RESULT)
576
578#define NET_EVENT_WIFI_NAN_REPLIED \
579 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_NAN_REPLIED)
580
582#define NET_EVENT_WIFI_NAN_PUBLISH_TERMINATED \
583 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_NAN_PUBLISH_TERMINATED)
584
586#define NET_EVENT_WIFI_NAN_SUBSCRIBE_TERMINATED \
587 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_NAN_SUBSCRIBE_TERMINATED)
588
590#define NET_EVENT_WIFI_NAN_RECEIVE \
591 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_NAN_RECEIVE)
592#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_NAN */
593
597 const char *drv_version;
599 const char *fw_version;
600};
601
611
663
689
881
897
900
922
945
983
1010
1012#define WIFI_BTWT_AGREEMENT_MAX 5
1013
1025
1093
1095
1096/* Flow ID is only 3 bits */
1097#define WIFI_MAX_TWT_FLOWS 8
1098/* The TWT interval is encoded per IEEE 802.11 as mantissa * 2^exponent
1099 * micro-seconds, with a 16-bit mantissa and a 5-bit exponent. The maximum
1100 * representable interval is therefore UINT16_MAX * 2^WIFI_MAX_TWT_EXPONENT us.
1101 */
1102#define WIFI_MAX_TWT_EXPONENT 31
1103#define WIFI_MAX_TWT_INTERVAL_US ((uint64_t)UINT16_MAX << WIFI_MAX_TWT_EXPONENT)
1104/* 256 (u8) * 1TU */
1105#define WIFI_MAX_TWT_WAKE_INTERVAL_US 262144
1106#define WIFI_MAX_TWT_WAKE_AHEAD_DURATION_US (LONG_MAX - 1)
1107
1109
1133
1178
1188
1196
1206
1208#define MAX_REG_CHAN_NUM 42
1209
1213 unsigned short center_frequency;
1215 unsigned short max_power:8;
1217 unsigned short supported:1;
1219 unsigned short passive_only:1;
1221 unsigned short dfs:1;
1222} __packed;
1223
1239
1247
1248#if defined(CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS) || defined(__DOXYGEN__)
1256 unsigned short frequency;
1258 uint8_t data[CONFIG_WIFI_MGMT_RAW_SCAN_RESULT_LENGTH];
1259};
1260#endif /* CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS */
1261
1273
1274#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_NAN
1276struct wifi_nan_discovery_result_event {
1278 uint8_t subscribe_id;
1280 uint8_t publish_id;
1282 uint8_t peer_addr[WIFI_MAC_ADDR_LEN];
1284 bool fsd;
1286 bool fsd_gas;
1288 uint8_t srv_proto_type;
1290 size_t ssi_len;
1292 uint8_t ssi[WIFI_NAN_MAX_SSI_LEN];
1293};
1294
1296struct wifi_nan_replied_event {
1298 uint8_t publish_id;
1300 uint8_t peer_addr[WIFI_MAC_ADDR_LEN];
1302 uint8_t subscribe_id;
1304 uint8_t srv_proto_type;
1306 size_t ssi_len;
1308 uint8_t ssi[WIFI_NAN_MAX_SSI_LEN];
1309};
1310
1312struct wifi_nan_terminated_event {
1314 uint8_t id;
1316 char reason[32];
1317};
1318
1320struct wifi_nan_receive_event {
1322 uint8_t id;
1324 uint8_t peer_instance_id;
1326 uint8_t peer_addr[WIFI_MAC_ADDR_LEN];
1328 uint8_t ssi[WIFI_NAN_MAX_SSI_LEN];
1330 size_t ssi_len;
1331};
1332#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_NAN */
1333
1335
1336/* for use in max info size calculations */
1337union wifi_mgmt_events {
1338 struct wifi_scan_result scan_result;
1339 struct wifi_status connect_status;
1340 struct wifi_iface_status iface_status;
1341#ifdef CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS
1342 struct wifi_raw_scan_result raw_scan_result;
1343#endif /* CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS */
1344 struct wifi_twt_params twt_params;
1345 struct wifi_ap_sta_info ap_sta_info;
1346#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_P2P
1347 struct wifi_p2p_device_info p2p_device_info;
1348#endif
1349#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_NAN
1350 struct wifi_nan_discovery_result_event nan_discovery_result;
1351 struct wifi_nan_replied_event nan_replied;
1352 struct wifi_nan_terminated_event nan_publish_terminated;
1353 struct wifi_nan_terminated_event nan_subscribe_terminated;
1354 struct wifi_nan_receive_event nan_receive;
1355#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_NAN */
1356};
1357
1359
1369
1381
1396
1398#define WIFI_AP_STA_MAX_INACTIVITY (LONG_MAX - 1)
1399#define WIFI_AP_IEEE_80211_CAPAB_MAX_LEN 64
1401
1412#if defined(CONFIG_WIFI_NM_HOSTAPD_AP)
1414 char ht_capab[WIFI_AP_IEEE_80211_CAPAB_MAX_LEN + 1];
1416 char vht_capab[WIFI_AP_IEEE_80211_CAPAB_MAX_LEN + 1];
1417#endif
1418};
1419
1427
1428#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP
1431#define WIFI_DPP_QRCODE_MAX_LEN 255
1432
1434enum wifi_dpp_op {
1436 WIFI_DPP_OP_INVALID = 0,
1438 WIFI_DPP_CONFIGURATOR_ADD,
1440 WIFI_DPP_AUTH_INIT,
1442 WIFI_DPP_QR_CODE,
1444 WIFI_DPP_CHIRP,
1446 WIFI_DPP_LISTEN,
1448 WIFI_DPP_BOOTSTRAP_GEN,
1450 WIFI_DPP_BOOTSTRAP_GET_URI,
1452 WIFI_DPP_SET_CONF_PARAM,
1454 WIFI_DPP_SET_WAIT_RESP_TIME,
1456 WIFI_DPP_RECONFIG
1457};
1458
1460enum wifi_dpp_curves {
1462 WIFI_DPP_CURVES_DEFAULT = 0,
1464 WIFI_DPP_CURVES_P_256,
1466 WIFI_DPP_CURVES_P_384,
1468 WIFI_DPP_CURVES_P_512,
1470 WIFI_DPP_CURVES_BP_256,
1472 WIFI_DPP_CURVES_BP_384,
1474 WIFI_DPP_CURVES_BP_512
1475};
1476
1478enum wifi_dpp_role {
1480 WIFI_DPP_ROLE_UNSET = 0,
1482 WIFI_DPP_ROLE_CONFIGURATOR,
1484 WIFI_DPP_ROLE_ENROLLEE,
1486 WIFI_DPP_ROLE_EITHER
1487};
1488
1493enum wifi_dpp_conf {
1495 WIFI_DPP_CONF_UNSET = 0,
1497 WIFI_DPP_CONF_STA,
1499 WIFI_DPP_CONF_AP,
1501 WIFI_DPP_CONF_QUERY
1502};
1503
1508enum wifi_dpp_bootstrap_type {
1510 WIFI_DPP_BOOTSTRAP_TYPE_UNSET = 0,
1512 WIFI_DPP_BOOTSTRAP_TYPE_QRCODE,
1514 WIFI_DPP_BOOTSTRAP_TYPE_PKEX,
1516 WIFI_DPP_BOOTSTRAP_TYPE_NFC_URI
1517};
1518
1520struct wifi_dpp_configurator_add_params {
1522 int curve;
1524 int net_access_key_curve;
1525};
1526
1528struct wifi_dpp_auth_init_params {
1530 int peer;
1532 int configurator;
1534 int role;
1536 int conf;
1538 char ssid[WIFI_SSID_MAX_LEN + 1];
1539};
1540
1542struct wifi_dpp_chirp_params {
1544 int id;
1546 int freq;
1547};
1548
1550struct wifi_dpp_listen_params {
1552 int freq;
1554 int role;
1555};
1556
1558struct wifi_dpp_bootstrap_gen_params {
1560 int type;
1562 int op_class;
1564 int chan;
1566 int curve;
1569};
1570
1572struct wifi_dpp_configurator_set_params {
1574 int peer;
1576 int configurator;
1578 int role;
1580 int conf;
1582 int curve;
1584 int net_access_key_curve;
1586 char ssid[WIFI_SSID_MAX_LEN + 1];
1587};
1588
1591struct wifi_dpp_params {
1593 int action;
1594 union {
1596 struct wifi_dpp_configurator_add_params configurator_add;
1598 struct wifi_dpp_auth_init_params auth_init;
1600 struct wifi_dpp_chirp_params chirp;
1602 struct wifi_dpp_listen_params listen;
1604 struct wifi_dpp_bootstrap_gen_params bootstrap_gen;
1606 struct wifi_dpp_configurator_set_params configurator_set;
1608 int id;
1610 int dpp_resp_wait_time;
1612 int network_id;
1614 uint8_t dpp_qr_code[WIFI_DPP_QRCODE_MAX_LEN + 1];
1619 char resp[WIFI_DPP_QRCODE_MAX_LEN + 1];
1620 };
1621};
1622#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
1623
1624#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_NAN
1626enum wifi_nan_operation {
1627 WIFI_NAN_OP_START,
1628 WIFI_NAN_OP_STOP,
1629 WIFI_NAN_OP_SET,
1630 WIFI_NAN_OP_UPDATE_CONF,
1631 WIFI_NAN_OP_STATUS,
1632 WIFI_NAN_OP_PUBLISH,
1633 WIFI_NAN_OP_CANCEL_PUBLISH,
1634 WIFI_NAN_OP_UPDATE_PUBLISH,
1635 WIFI_NAN_OP_SUBSCRIBE,
1636 WIFI_NAN_OP_CANCEL_SUBSCRIBE,
1637 WIFI_NAN_OP_TRANSMIT,
1638};
1639
1641enum wifi_nan_service_protocol_type {
1643 WIFI_NAN_SRV_PROTO_BONJOUR = 1,
1645 WIFI_NAN_SRV_PROTO_GENERIC = 2,
1647 WIFI_NAN_SRV_PROTO_CSA_MATTER = 3,
1648};
1649
1651struct wifi_nan_publish_params {
1652 /* Service name for NAN */
1653 char service_name[WIFI_NAN_MAX_SERVICE_NAME_LEN];
1654 /* NAN service protocol type */
1655 enum wifi_nan_service_protocol_type srv_proto_type;
1656 /* Time to live (in seconds); 0 = one TX only */
1657 uint32_t ttl;
1658 /* Default frequency in MHz (defaultPublishChannel) */
1659 uint32_t freq;
1660 /* Multi-channel frequencies */
1661 char freq_list[64];
1662 /* Service specific information (binary data) */
1663 uint8_t ssi[WIFI_NAN_MAX_SSI_LEN];
1664 /* Actual length of SSI data */
1665 uint16_t ssi_len;
1666 /* Unsolicited transmission (true by default) */
1667 bool unsolicited;
1668 /* Solicited transmission (true by default) */
1669 bool solicited;
1670 /* Further Service Discovery (true by default) */
1671 bool fsd;
1672};
1673
1674/* This structure is used to configure nan update publish parameters */
1675struct wifi_nan_update_publish_params {
1676 uint8_t publish_id;
1677 /* Service specific information (binary data) */
1678 uint8_t ssi[WIFI_NAN_MAX_SSI_LEN];
1679 /* Actual length of SSI data */
1680 uint16_t ssi_len;
1681};
1682
1684struct wifi_nan_subscribe_params {
1685 /* Service name for NAN */
1686 char service_name[WIFI_NAN_MAX_SERVICE_NAME_LEN];
1687 /* NAN service protocol type */
1688 enum wifi_nan_service_protocol_type srv_proto_type;
1689 /* Subscribe type */
1690 bool active;
1691 /* Time to live (in seconds); 0 = until first result */
1692 unsigned int ttl;
1693 /* Selected frequency in MHz */
1694 unsigned int freq;
1695 /* Service specific information (binary data) */
1696 uint8_t ssi[WIFI_NAN_MAX_SSI_LEN];
1697 /* Actual length of SSI data */
1698 uint16_t ssi_len;
1699};
1700
1702struct wifi_nan_transmit_params {
1703 /* publish_id or subscribe_id */
1704 uint8_t handle;
1705 /* peer publish_id or subscribe_id */
1706 uint8_t req_instance_id;
1707 /* peer MAC address */
1708 uint8_t peer_addr[WIFI_MAC_ADDR_LEN];
1709 /* Service specific information (binary data) */
1710 uint8_t ssi[WIFI_NAN_MAX_SSI_LEN];
1711 /* Actual length of SSI data */
1712 uint16_t ssi_len;
1713};
1714
1716struct wifi_nan_set_params {
1718 char param[WIFI_NAN_MAX_SET_PARAM_LEN];
1720 char value[WIFI_NAN_MAX_SET_VALUE_LEN];
1721};
1722
1724struct wifi_nan_params {
1726 enum wifi_nan_operation op;
1727
1729 union {
1731 struct wifi_nan_publish_params publish;
1733 struct wifi_nan_update_publish_params update_publish;
1735 struct wifi_nan_subscribe_params subscribe;
1737 struct wifi_nan_transmit_params transmit;
1739 struct wifi_nan_set_params set;
1741 uint8_t cancel_id;
1742 };
1743
1744 /* Operation response */
1745 char resp[WIFI_NAN_RESP_SIZE];
1746};
1747
1748#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_NAN */
1749
1750
1752#define WIFI_WPS_PIN_MAX_LEN 8
1753
1763
1771
1772#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_P2P
1774enum wifi_p2p_op {
1776 WIFI_P2P_FIND = 0,
1778 WIFI_P2P_STOP_FIND,
1782 WIFI_P2P_PEER,
1784 WIFI_P2P_CONNECT,
1786 WIFI_P2P_GROUP_ADD,
1788 WIFI_P2P_GROUP_REMOVE,
1790 WIFI_P2P_INVITE,
1792 WIFI_P2P_POWER_SAVE,
1794 WIFI_P2P_LIST_NETWORKS,
1796 WIFI_P2P_PERSISTENT_REMOVE,
1798 WIFI_P2P_SET_DEV_NAME,
1800 WIFI_P2P_STATUS,
1801};
1802
1804enum wifi_p2p_discovery_type {
1806 WIFI_P2P_FIND_START_WITH_FULL = 0,
1808 WIFI_P2P_FIND_ONLY_SOCIAL,
1810 WIFI_P2P_FIND_PROGRESSIVE,
1811};
1812
1814enum wifi_p2p_connection_method {
1816 WIFI_P2P_METHOD_PBC = 0,
1818 WIFI_P2P_METHOD_DISPLAY,
1820 WIFI_P2P_METHOD_KEYPAD,
1821};
1822
1824#define WIFI_P2P_MAX_PEERS CONFIG_WIFI_P2P_MAX_PEERS
1825#define WIFI_P2P_LIST_NETWORKS_BUF_SIZE 2048
1826#define WIFI_P2P_STATUS_BUF_SIZE 512
1827
1829struct wifi_p2p_params {
1831 enum wifi_p2p_op oper;
1833 char device_name[WIFI_P2P_DEVICE_NAME_MAX_LEN + 1];
1835 enum wifi_p2p_discovery_type discovery_type;
1837 uint16_t timeout;
1839 uint8_t peer_addr[WIFI_MAC_ADDR_LEN];
1841 bool discovered_only;
1843 struct wifi_p2p_device_info *peers;
1845 uint16_t peer_count;
1847 bool power_save;
1849 struct {
1851 enum wifi_p2p_connection_method method;
1856 char pin[WIFI_WPS_PIN_MAX_LEN + 1];
1858 uint8_t go_intent;
1860 unsigned int freq;
1862 bool join;
1864 bool persistent_set;
1865 } connect;
1867 struct {
1869 int freq;
1871 int persistent;
1873 bool persistent_set;
1875 bool ht40;
1877 bool vht;
1879 bool he;
1881 bool edmg;
1883 uint8_t go_bssid[WIFI_MAC_ADDR_LEN];
1885 uint8_t go_bssid_length;
1886 } group_add;
1888 struct {
1890 char ifname[CONFIG_NET_INTERFACE_NAME_LEN + 1];
1891 } group_remove;
1893 struct {
1895 enum {
1896 WIFI_P2P_INVITE_PERSISTENT = 0,
1897 WIFI_P2P_INVITE_GROUP,
1898 } type;
1900 int persistent_id;
1902 char group_ifname[CONFIG_NET_INTERFACE_NAME_LEN + 1];
1904 uint8_t peer_addr[WIFI_MAC_ADDR_LEN];
1906 int freq;
1908 uint8_t go_dev_addr[WIFI_MAC_ADDR_LEN];
1910 uint8_t go_dev_addr_length;
1911 } invite;
1913 struct {
1915 char *buf;
1917 size_t buf_size;
1918 } list_networks;
1920 struct {
1925 int id;
1926 } persistent_remove;
1928 struct {
1930 char *buf;
1932 size_t buf_size;
1933 } status;
1934};
1935#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_P2P */
1936
1957
1958#if defined(CONFIG_WIFI_NM_WPA_SUPPLICANT_BGSCAN) || defined(__DOXYGEN__)
1968
1982#endif
1983
1997
1998#include <zephyr/net/net_if.h>
1999
2006typedef void (*scan_result_cb_t)(struct net_if *iface, int status,
2007 struct wifi_scan_result *entry);
2008
2009#ifdef CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS
2016typedef void (*raw_scan_result_cb_t)(struct net_if *iface, int status,
2017 struct wifi_raw_scan_result *entry);
2018#endif /* CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS */
2019
2034 int (*scan)(const struct device *dev,
2035 struct net_if *iface,
2036 struct wifi_scan_params *params,
2037 scan_result_cb_t cb);
2050 int (*connect)(const struct device *dev,
2051 struct net_if *iface,
2052 struct wifi_connect_req_params *params);
2060 int (*disconnect)(const struct device *dev,
2061 struct net_if *iface);
2070 int (*ap_enable)(const struct device *dev,
2071 struct net_if *iface,
2072 struct wifi_connect_req_params *params);
2079 int (*ap_disable)(const struct device *dev, struct net_if *iface);
2088 int (*ap_sta_disconnect)(const struct device *dev, struct net_if *iface,
2089 const uint8_t *mac);
2098 int (*iface_status)(const struct device *dev,
2099 struct net_if *iface,
2100 struct wifi_iface_status *status);
2101#if defined(CONFIG_NET_STATISTICS_WIFI) || defined(__DOXYGEN__)
2110 int (*get_stats)(const struct device *dev,
2111 struct net_if *iface,
2112 struct net_stats_wifi *stats);
2120 int (*reset_stats)(const struct device *dev, struct net_if *iface);
2121#endif /* CONFIG_NET_STATISTICS_WIFI */
2130 int (*cfg_11k)(const struct device *dev,
2131 struct net_if *iface,
2132 struct wifi_11k_params *params);
2141 int (*send_11k_neighbor_request)(const struct device *dev,
2142 struct net_if *iface,
2143 struct wifi_11k_params *params);
2152 int (*set_power_save)(const struct device *dev,
2153 struct net_if *iface,
2154 struct wifi_ps_params *params);
2163 int (*set_twt)(const struct device *dev,
2164 struct net_if *iface,
2165 struct wifi_twt_params *params);
2174 int (*set_btwt)(const struct device *dev,
2175 struct net_if *iface,
2176 struct wifi_twt_params *params);
2185 int (*get_power_save_config)(const struct device *dev,
2186 struct net_if *iface,
2187 struct wifi_ps_config *config);
2196 int (*reg_domain)(const struct device *dev,
2197 struct net_if *iface,
2198 struct wifi_reg_domain *reg_domain);
2207 int (*filter)(const struct device *dev,
2208 struct net_if *iface,
2209 struct wifi_filter_info *filter);
2218 int (*mode)(const struct device *dev, struct net_if *iface, struct wifi_mode_info *mode);
2227 int (*channel)(const struct device *dev,
2228 struct net_if *iface,
2229 struct wifi_channel_info *channel);
2230
2239 int (*btm_query)(const struct device *dev, struct net_if *iface, uint8_t reason);
2240
2247 bool (*bss_support_neighbor_rep)(const struct device *dev, struct net_if *iface);
2248
2257 int (*bss_ext_capab)(const struct device *dev, struct net_if *iface, int capab);
2258
2266 int (*legacy_roam)(const struct device *dev, struct net_if *iface);
2267
2281 int (*get_version)(const struct device *dev,
2282 struct net_if *iface,
2283 struct wifi_version *params);
2297 int (*get_conn_params)(const struct device *dev,
2298 struct net_if *iface,
2299 struct wifi_connect_req_params *params);
2308 int (*set_rts_threshold)(const struct device *dev,
2309 struct net_if *iface,
2310 unsigned int rts_threshold);
2319 int (*ap_config_params)(const struct device *dev,
2320 struct net_if *iface,
2321 struct wifi_ap_config_params *params);
2330 int (*config_params)(const struct device *dev,
2331 struct net_if *iface,
2332 struct wifi_config_params *params);
2333#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP
2342 int (*dpp_dispatch)(const struct device *dev,
2343 struct net_if *iface,
2344 struct wifi_dpp_params *params);
2345#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
2346#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_NAN
2355 int (*nan_cfg)(const struct device *dev,
2356 struct net_if *iface,
2357 struct wifi_nan_params *params);
2358#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_NAN */
2359
2367 int (*pmksa_flush)(const struct device *dev, struct net_if *iface);
2382#ifdef CONFIG_WIFI_CERTIFICATE_LIB
2383 int (*enterprise_creds)(const struct device *dev,
2384 struct net_if *iface,
2385 struct wifi_enterprise_creds_params *creds);
2386#endif
2395 int (*get_rts_threshold)(const struct device *dev,
2396 struct net_if *iface,
2397 unsigned int *rts_threshold);
2406 int (*wps_config)(const struct device *dev,
2407 struct net_if *iface,
2408 struct wifi_wps_config_params *params);
2417 int (*candidate_scan)(const struct device *dev,
2418 struct net_if *iface,
2419 struct wifi_scan_params *params);
2429 __deprecated int (*start_11r_roaming)(const struct device *dev, struct net_if *iface);
2438 int (*set_bss_max_idle_period)(const struct device *dev,
2439 struct net_if *iface,
2440 unsigned short bss_max_idle_period);
2441#if defined(CONFIG_WIFI_NM_WPA_SUPPLICANT_BGSCAN) || defined(__DOXYGEN__)
2450 int (*set_bgscan)(const struct device *dev,
2451 struct net_if *iface,
2452 struct wifi_bgscan_params *params);
2453#endif
2454#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_P2P
2464 int (*p2p_oper)(const struct device *dev,
2465 struct net_if *iface,
2466 struct wifi_p2p_params *params);
2467#endif
2479 uint32_t (*get_iface_caps)(const struct device *dev, struct net_if *iface);
2480};
2481
2490#if defined(CONFIG_WIFI_USE_NATIVE_NETWORKING) || defined(__DOXYGEN__)
2493#else
2496#endif
2498 const struct wifi_mgmt_ops *const wifi_mgmt_api;
2499
2500#if defined(CONFIG_WIFI_NM_WPA_SUPPLICANT) || defined(__DOXYGEN__)
2502 const void *wifi_drv_ops;
2503#endif
2504};
2505
2506#if defined(CONFIG_WIFI_NM_WPA_SUPPLICANT)
2507/* Make sure wifi_drv_ops is after wifi_mgmt_api */
2508BUILD_ASSERT(offsetof(struct net_wifi_mgmt_offload, wifi_mgmt_api) <
2509 offsetof(struct net_wifi_mgmt_offload, wifi_drv_ops));
2510#endif
2511
2512/* Make sure that the network interface API is properly setup inside
2513 * Wifi mgmt offload API struct (it is the first one).
2514 */
2515BUILD_ASSERT(offsetof(struct net_wifi_mgmt_offload, wifi_iface) == 0);
2516
2522void wifi_mgmt_raise_connect_result_event(struct net_if *iface, int status);
2523
2533 const struct wifi_status *status);
2534
2540void wifi_mgmt_raise_disconnect_result_event(struct net_if *iface, int status);
2541
2551 const struct wifi_status *status);
2552
2560
2567 struct wifi_twt_params *twt_params);
2568
2574void wifi_mgmt_raise_twt_sleep_state(struct net_if *iface, int twt_sleep_state);
2575
2576#if defined(CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS) || defined(__DOXYGEN__)
2583 struct wifi_raw_scan_result *raw_scan_info);
2584#endif /* CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS */
2585
2592
2593#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_ROAMING
2600void wifi_mgmt_raise_neighbor_rep_recv_event(struct net_if *iface,
2601 char *inbuf, size_t buf_len);
2602#endif
2603
2610
2617
2624 struct wifi_ap_sta_info *sta_info);
2625
2631 struct wifi_ap_sta_info *sta_info);
2632
2633#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_P2P
2640void wifi_mgmt_raise_p2p_device_found_event(struct net_if *iface,
2641 struct wifi_p2p_device_info *peer_info);
2642#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_P2P */
2643
2647#ifdef __cplusplus
2648}
2649#endif
2650
2651#endif /* ZEPHYR_INCLUDE_NET_WIFI_MGMT_H_ */
Ethernet.
#define NET_MGMT_DEFINE_REQUEST_HANDLER(_mgmt_request)
Declare a request handler function for the given network event.
Definition net_mgmt.h:130
void wifi_mgmt_raise_connect_result_event(struct net_if *iface, int status)
Wi-Fi management connect result event.
wifi_ext_capab
IEEE 802.11 Extended Capabilities bit positions.
Definition wifi_mgmt.h:1985
wifi_sap_iface_state
Wi-Fi AP status.
Definition wifi_mgmt.h:1939
wifi_ps
Wi-Fi power save states.
Definition wifi.h:496
#define NET_REQUEST_WIFI_PS_CONFIG
Request a Wi-Fi power save configuration.
Definition wifi_mgmt.h:234
void wifi_mgmt_raise_twt_sleep_state(struct net_if *iface, int twt_sleep_state)
Wi-Fi management TWT sleep state event.
const char * wifi_disconn_reason_txt(enum wifi_disconn_reason reason)
Helper function to get user-friendly disconnect reason name.
#define NET_REQUEST_WIFI_SCAN
Request a Wi-Fi scan.
Definition wifi_mgmt.h:162
wifi_frequency_bands
IEEE 802.11 operational frequency bands (not exhaustive).
Definition wifi.h:298
wifi_mfp_options
IEEE 802.11w - Management frame protection.
Definition wifi.h:277
#define NET_REQUEST_WIFI_RTS_THRESHOLD
Request a Wi-Fi RTS threshold.
Definition wifi_mgmt.h:282
#define WIFI_WPS_PIN_MAX_LEN
Maximum length of a WPS PIN.
Definition wifi_mgmt.h:1752
#define NET_REQUEST_WIFI_RTS_THRESHOLD_CONFIG
Request a Wi-Fi RTS threshold configuration.
Definition wifi_mgmt.h:333
#define WIFI_MAC_ADDR_LEN
MAC address length.
Definition wifi.h:364
#define NET_REQUEST_WIFI_REG_DOMAIN
Request a Wi-Fi regulatory domain.
Definition wifi_mgmt.h:240
wifi_ps_exit_strategy
Wi-Fi power save exit strategy.
Definition wifi.h:705
#define NET_REQUEST_WIFI_PACKET_FILTER
Request Wi-Fi packet filter.
Definition wifi_mgmt.h:252
wifi_twt_setup_cmd
Wi-Fi Target Wake Time (TWT) setup commands.
Definition wifi.h:578
#define NET_REQUEST_WIFI_BSS_MAX_IDLE_PERIOD
Request a Wi-Fi BSS maximum idle period configuration.
Definition wifi_mgmt.h:361
#define NET_REQUEST_WIFI_NEIGHBOR_REP_COMPLETE
Notify that processing of a Wi-Fi neighbor report is complete.
Definition wifi_mgmt.h:355
wifi_twt_sleep_state
Wi-Fi TWT sleep states.
Definition wifi_mgmt.h:1241
#define WIFI_BTWT_AGREEMENT_MAX
Maximum number of broadcast TWT agreement sets.
Definition wifi_mgmt.h:1012
void wifi_mgmt_raise_twt_event(struct net_if *iface, struct wifi_twt_params *twt_params)
Wi-Fi management TWT event.
wifi_frequency_bandwidths
IEEE 802.11 operational frequency bandwidths (not exhaustive).
Definition wifi.h:323
void wifi_mgmt_raise_disconnect_result_event(struct net_if *iface, int status)
Wi-Fi management disconnect result event.
#define NET_REQUEST_WIFI_IFACE_STATUS
Request a Wi-Fi network interface status.
Definition wifi_mgmt.h:198
#define NET_REQUEST_WIFI_VERSION
Request a Wi-Fi version.
Definition wifi_mgmt.h:270
void wifi_mgmt_raise_disconnect_result_status_event(struct net_if *iface, const struct wifi_status *status)
Wi-Fi management disconnect result event with the IEEE 802.11 codes.
wifi_wpa3_enterprise_type
WPA3 Enterprise security types.
Definition wifi.h:176
void wifi_mgmt_raise_ap_sta_disconnected_event(struct net_if *iface, struct wifi_ap_sta_info *sta_info)
Wi-Fi management AP mode STA disconnected event.
#define NET_REQUEST_WIFI_11K_NEIGHBOR_REQUEST
Request a Wi-Fi 11k neighbor request.
Definition wifi_mgmt.h:210
#define NET_REQUEST_WIFI_P2P_OPER
Request a Wi-Fi Direct (P2P) operation.
Definition wifi_mgmt.h:373
wifi_wps_op
Operation for WPS.
Definition wifi_mgmt.h:1755
wifi_twt_setup_resp_status
Wi-Fi Target Wake Time (TWT) negotiation status.
Definition wifi.h:601
#define NET_REQUEST_WIFI_CONFIG_PARAM
Request a Wi-Fi STA parameters configuration.
Definition wifi_mgmt.h:294
#define NET_REQUEST_WIFI_BTM_QUERY
Request a Wi-Fi BTM query.
Definition wifi_mgmt.h:316
wifi_iface_mode
Wi-Fi interface modes.
Definition wifi.h:429
#define NET_REQUEST_WIFI_AP_ENABLE
Request a Wi-Fi access point enable.
Definition wifi_mgmt.h:180
#define NET_REQUEST_WIFI_WPS_CONFIG
Request a Wi-Fi WPS configuration.
Definition wifi_mgmt.h:339
#define WIFI_COUNTRY_CODE_LEN
Length of the country code string.
Definition wifi.h:29
void wifi_mgmt_raise_ap_enable_result_event(struct net_if *iface, enum wifi_ap_status status)
Wi-Fi management AP mode enable result event.
#define NET_REQUEST_WIFI_PS
Request a Wi-Fi power save.
Definition wifi_mgmt.h:216
wifi_twt_negotiation_type
Wi-Fi Target Wake Time (TWT) negotiation types.
Definition wifi.h:565
void wifi_mgmt_raise_raw_scan_result_event(struct net_if *iface, struct wifi_raw_scan_result *raw_scan_info)
Wi-Fi management raw scan result event.
void wifi_mgmt_raise_iface_status_event(struct net_if *iface, struct wifi_iface_status *iface_status)
Wi-Fi management interface status event.
wifi_config_param
Wi-Fi STA mode configuration parameter.
Definition wifi.h:799
wifi_ap_config_param
Wi-Fi AP mode configuration parameter.
Definition wifi.h:785
wifi_conn_status
Wi-Fi connect result codes.
Definition wifi.h:45
#define NET_REQUEST_WIFI_START_ROAMING
Request a Wi-Fi roaming start.
Definition wifi_mgmt.h:349
#define NET_REQUEST_WIFI_PMKSA_FLUSH
Request a Wi-Fi PMKSA cache entries flush.
Definition wifi_mgmt.h:321
#define NET_REQUEST_WIFI_DISCONNECT
Request a Wi-Fi disconnect.
Definition wifi_mgmt.h:174
wifi_twt_fail_reason
Target Wake Time (TWT) error codes.
Definition wifi.h:609
#define NET_REQUEST_WIFI_AP_RTS_THRESHOLD
Request a Wi-Fi RTS threshold.
Definition wifi_mgmt.h:192
net_request_wifi_cmd
Wi-Fi management commands.
Definition wifi_mgmt.h:77
#define NET_REQUEST_WIFI_MODE
Request current Wi-Fi mode.
Definition wifi_mgmt.h:246
#define NET_REQUEST_WIFI_BGSCAN
Request a Wi-Fi background scan configuration.
Definition wifi_mgmt.h:367
#define NET_REQUEST_WIFI_AP_STA_DISCONNECT
Request a Wi-Fi access point to disconnect a station.
Definition wifi_mgmt.h:264
void wifi_mgmt_raise_disconnect_complete_event(struct net_if *iface, int status)
Wi-Fi management disconnect complete event.
#define NET_REQUEST_WIFI_CONNECT
Request a Wi-Fi connect.
Definition wifi_mgmt.h:168
wifi_bgscan_type
Wi-Fi background scan implementation.
Definition wifi_mgmt.h:1960
wifi_ap_status
Wi-Fi AP mode result codes.
Definition wifi_mgmt.h:904
#define NET_REQUEST_WIFI_TWT
Request a Wi-Fi TWT.
Definition wifi_mgmt.h:222
wifi_link_mode
Wi-Fi link operating modes.
Definition wifi.h:457
void wifi_mgmt_raise_connect_result_status_event(struct net_if *iface, const struct wifi_status *status)
Wi-Fi management connect result event with the IEEE 802.11 codes.
wifi_ps_param_type
Wi-Fi power save parameters.
Definition wifi.h:676
net_event_wifi_cmd
Wi-Fi management events.
Definition wifi_mgmt.h:414
#define NET_REQUEST_WIFI_CONN_PARAMS
Request a Wi-Fi connection parameters.
Definition wifi_mgmt.h:276
wifi_disconn_reason
Wi-Fi disconnect reason codes.
Definition wifi_mgmt.h:885
wifi_ps_wakeup_mode
Wi-Fi power save modes.
Definition wifi.h:692
void wifi_mgmt_raise_ap_sta_connected_event(struct net_if *iface, struct wifi_ap_sta_info *sta_info)
Wi-Fi management AP mode STA connected event.
wifi_twt_operation
Wi-Fi Target Wake Time (TWT) operations.
Definition wifi.h:554
wifi_scan_type
Wi-Fi scanning types.
Definition wifi.h:488
void(* scan_result_cb_t)(struct net_if *iface, int status, struct wifi_scan_result *entry)
Scan result callback.
Definition wifi_mgmt.h:2006
wifi_twt_teardown_status
Wi-Fi Target Wake Time (TWT) teradown status.
Definition wifi.h:635
#define WIFI_SSID_MAX_LEN
Max SSID length.
Definition wifi.h:352
#define NET_REQUEST_WIFI_CHANNEL
Request a Wi-Fi channel.
Definition wifi_mgmt.h:258
wifi_config_ps_param_fail_reason
Wi-Fi power save error codes.
Definition wifi.h:726
#define NET_REQUEST_WIFI_11K_CONFIG
Request a Wi-Fi 11k configuration.
Definition wifi_mgmt.h:204
wifi_security_type
IEEE 802.11 security types.
Definition wifi.h:80
void wifi_mgmt_raise_ap_disable_result_event(struct net_if *iface, enum wifi_ap_status status)
Wi-Fi management AP mode disable result event.
wifi_mgmt_op
Generic get/set operation for any command.
Definition wifi_mgmt.h:1190
#define NET_REQUEST_WIFI_ENTERPRISE_CREDS
Set Wi-Fi enterprise mode CA/client Cert and key.
Definition wifi_mgmt.h:327
#define NET_REQUEST_WIFI_BTWT
Request a Wi-Fi broadcast TWT flow setup.
Definition wifi_mgmt.h:228
#define NET_REQUEST_WIFI_AP_CONFIG_PARAM
Request a Wi-Fi AP parameters configuration.
Definition wifi_mgmt.h:288
#define NET_REQUEST_WIFI_AP_DISABLE
Request a Wi-Fi access point disable.
Definition wifi_mgmt.h:186
wifi_wep_key_type
WEP key type (based on key length).
Definition wifi.h:146
wifi_ps_mode
Wi-Fi power save modes.
Definition wifi.h:507
@ WIFI_EXT_CAPAB_GLK
General link (GLK) support.
Definition wifi_mgmt.h:1989
@ WIFI_EXT_CAPAB_20_40_COEX
20/40 BSS coexistence management support
Definition wifi_mgmt.h:1987
@ WIFI_EXT_CAPAB_BSS_TRANSITION
BSS transition management support.
Definition wifi_mgmt.h:1995
@ WIFI_EXT_CAPAB_EXT_CHAN_SWITCH
Extended channel switching support.
Definition wifi_mgmt.h:1991
@ WIFI_EXT_CAPAB_TIM_BROADCAST
TIM broadcast support.
Definition wifi_mgmt.h:1993
@ WIFI_SAP_IFACE_COUNTRY_UPDATE
Country code update in progress.
Definition wifi_mgmt.h:1945
@ WIFI_SAP_IFACE_DISABLED
Interface is disabled.
Definition wifi_mgmt.h:1943
@ WIFI_SAP_IFACE_HT_SCAN
HT scan in progress.
Definition wifi_mgmt.h:1949
@ WIFI_SAP_IFACE_ENABLED
Interface is enabled.
Definition wifi_mgmt.h:1955
@ WIFI_SAP_IFACE_ACS
Automatic channel selection in progress.
Definition wifi_mgmt.h:1947
@ WIFI_SAP_IFACE_UNINITIALIZED
Interface is uninitialized.
Definition wifi_mgmt.h:1941
@ WIFI_SAP_IFACE_NO_IR
Selected channel does not allow initiating radiation.
Definition wifi_mgmt.h:1953
@ WIFI_SAP_IFACE_DFS
Dynamic frequency selection in progress.
Definition wifi_mgmt.h:1951
@ WIFI_TWT_STATE_SLEEP
TWT sleep state: sleeping.
Definition wifi_mgmt.h:1243
@ WIFI_TWT_STATE_AWAKE
TWT sleep state: awake.
Definition wifi_mgmt.h:1245
@ WIFI_WPS_PBC
WPS pbc.
Definition wifi_mgmt.h:1757
@ WIFI_WPS_PIN_SET
Set WPS pin number.
Definition wifi_mgmt.h:1761
@ WIFI_WPS_PIN_GET
Get WPS pin number.
Definition wifi_mgmt.h:1759
@ NET_REQUEST_WIFI_CMD_AP_CONFIG_PARAM
Configure AP parameter.
Definition wifi_mgmt.h:121
@ NET_REQUEST_WIFI_CMD_TWT
Setup or teardown TWT flow.
Definition wifi_mgmt.h:99
@ NET_REQUEST_WIFI_CMD_PMKSA_FLUSH
Flush PMKSA cache entries.
Definition wifi_mgmt.h:131
@ NET_REQUEST_WIFI_CMD_P2P_OPER
Wi-Fi Direct (P2P) operations.
Definition wifi_mgmt.h:155
@ NET_REQUEST_WIFI_CMD_PACKET_FILTER
Set or get packet filter setting for current mode.
Definition wifi_mgmt.h:109
@ NET_REQUEST_WIFI_CMD_AP_ENABLE
Enable AP mode.
Definition wifi_mgmt.h:85
@ NET_REQUEST_WIFI_CMD_START_ROAMING
Start roaming.
Definition wifi_mgmt.h:143
@ NET_REQUEST_WIFI_CMD_REG_DOMAIN
Set or get regulatory domain.
Definition wifi_mgmt.h:105
@ NET_REQUEST_WIFI_CMD_AP_RTS_THRESHOLD
Set AP RTS threshold.
Definition wifi_mgmt.h:89
@ NET_REQUEST_WIFI_CMD_BSS_MAX_IDLE_PERIOD
Configure BSS maximum idle period.
Definition wifi_mgmt.h:151
@ NET_REQUEST_WIFI_CMD_11K_NEIGHBOR_REQUEST
Send 11k neighbor request.
Definition wifi_mgmt.h:95
@ NET_REQUEST_WIFI_CMD_SCAN
Scan for Wi-Fi networks.
Definition wifi_mgmt.h:79
@ NET_REQUEST_WIFI_CMD_IFACE_STATUS
Get interface status.
Definition wifi_mgmt.h:91
@ NET_REQUEST_WIFI_CMD_AP_STA_DISCONNECT
Disconnect a STA from AP.
Definition wifi_mgmt.h:113
@ NET_REQUEST_WIFI_CMD_DPP
DPP actions.
Definition wifi_mgmt.h:125
@ NET_REQUEST_WIFI_CMD_AP_DISABLE
Disable AP mode.
Definition wifi_mgmt.h:87
@ NET_REQUEST_WIFI_CMD_RTS_THRESHOLD
Set RTS threshold.
Definition wifi_mgmt.h:119
@ NET_REQUEST_WIFI_CMD_CONNECT
Connect to a Wi-Fi network.
Definition wifi_mgmt.h:81
@ NET_REQUEST_WIFI_CMD_VERSION
Get Wi-Fi driver and Firmware versions.
Definition wifi_mgmt.h:115
@ NET_REQUEST_WIFI_CMD_BGSCAN
Configure background scanning.
Definition wifi_mgmt.h:153
@ NET_REQUEST_WIFI_CMD_CONFIG_PARAM
Configure STA parameter.
Definition wifi_mgmt.h:123
@ NET_REQUEST_WIFI_CMD_ENTERPRISE_CREDS
Set enterprise mode credential.
Definition wifi_mgmt.h:133
@ NET_REQUEST_WIFI_CMD_CONN_PARAMS
Get Wi-Fi latest connection parameters.
Definition wifi_mgmt.h:117
@ NET_REQUEST_WIFI_CMD_11K_CONFIG
Set or get 11k status.
Definition wifi_mgmt.h:93
@ NET_REQUEST_WIFI_CMD_CHANNEL
Set or get Wi-Fi channel for Monitor or TX-Injection mode.
Definition wifi_mgmt.h:111
@ NET_REQUEST_WIFI_CMD_NAN
NAN actions.
Definition wifi_mgmt.h:127
@ NET_REQUEST_WIFI_CMD_BTWT
Setup BTWT flow.
Definition wifi_mgmt.h:101
@ NET_REQUEST_WIFI_CMD_MODE
Set or get Mode of operation.
Definition wifi_mgmt.h:107
@ NET_REQUEST_WIFI_CMD_RTS_THRESHOLD_CONFIG
Get RTS threshold.
Definition wifi_mgmt.h:135
@ NET_REQUEST_WIFI_CMD_CANDIDATE_SCAN
Specific scan.
Definition wifi_mgmt.h:147
@ NET_REQUEST_WIFI_CMD_BTM_QUERY
BSS transition management query.
Definition wifi_mgmt.h:129
@ NET_REQUEST_WIFI_CMD_PS
Set power save status.
Definition wifi_mgmt.h:97
@ NET_REQUEST_WIFI_CMD_DISCONNECT
Disconnect from a Wi-Fi network.
Definition wifi_mgmt.h:83
@ NET_REQUEST_WIFI_CMD_NEIGHBOR_REP_COMPLETE
Neighbor report complete.
Definition wifi_mgmt.h:145
@ NET_REQUEST_WIFI_CMD_AP_WPS_CONFIG
AP WPS config.
Definition wifi_mgmt.h:149
@ NET_REQUEST_WIFI_CMD_PS_CONFIG
Get power save config.
Definition wifi_mgmt.h:103
@ NET_REQUEST_WIFI_CMD_WPS_CONFIG
WPS config.
Definition wifi_mgmt.h:137
@ WIFI_BGSCAN_SIMPLE
Simple, periodic scan based on signal strength.
Definition wifi_mgmt.h:1964
@ WIFI_BGSCAN_NONE
None, background scan is disabled.
Definition wifi_mgmt.h:1962
@ WIFI_BGSCAN_LEARN
Learn channels used by the network (experimental).
Definition wifi_mgmt.h:1966
@ WIFI_STATUS_AP_CHANNEL_NOT_ALLOWED
AP mode enable failed - channel not allowed.
Definition wifi_mgmt.h:912
@ WIFI_STATUS_AP_SUCCESS
AP mode enable or disable successful.
Definition wifi_mgmt.h:906
@ WIFI_STATUS_AP_OP_NOT_SUPPORTED
AP mode enable failed - operation not supported.
Definition wifi_mgmt.h:918
@ WIFI_STATUS_AP_OP_NOT_PERMITTED
AP mode enable failed - operation not permitted.
Definition wifi_mgmt.h:920
@ WIFI_STATUS_AP_CHANNEL_NOT_SUPPORTED
AP mode enable failed - channel not supported.
Definition wifi_mgmt.h:910
@ WIFI_STATUS_AP_FAIL
AP mode enable or disable failed - generic failure.
Definition wifi_mgmt.h:908
@ WIFI_STATUS_AP_AUTH_TYPE_NOT_SUPPORTED
AP mode enable failed - authentication type not supported.
Definition wifi_mgmt.h:916
@ WIFI_STATUS_AP_SSID_NOT_ALLOWED
AP mode enable failed - SSID not allowed.
Definition wifi_mgmt.h:914
@ NET_MGMT_CMD
Scan results available.
Definition wifi_mgmt.h:416
@ WIFI_REASON_DISCONN_INACTIVITY
Disconnected due to inactivity.
Definition wifi_mgmt.h:895
@ WIFI_REASON_DISCONN_AP_LEAVING
Disconnected due to AP leaving.
Definition wifi_mgmt.h:893
@ WIFI_REASON_DISCONN_SUCCESS
Success, overload status as reason.
Definition wifi_mgmt.h:887
@ WIFI_REASON_DISCONN_UNSPECIFIED
Unspecified reason.
Definition wifi_mgmt.h:889
@ WIFI_REASON_DISCONN_USER_REQUEST
Disconnected due to user request.
Definition wifi_mgmt.h:891
@ WIFI_MGMT_GET
Get operation.
Definition wifi_mgmt.h:1192
@ WIFI_MGMT_SET
Set operation.
Definition wifi_mgmt.h:1194
Public API for network interface.
Network Management API public header.
Offloaded network device iface API.
int listen(int sock, int backlog)
int connect(int sock, const struct sockaddr *addr, socklen_t addrlen)
#define bool
Definition stdbool.h:13
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT64_TYPE__ uint64_t
Definition stdint.h:91
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
__INT8_TYPE__ int8_t
Definition stdint.h:72
Runtime device structure (in ROM) per driver instance.
Definition device.h:543
Ethernet L2 API operations.
Definition ethernet.h:553
Network Interface structure.
Definition net_if.h:857
All Wi-Fi specific statistics.
Definition net_stats.h:730
Wi-Fi management offload API.
Definition wifi_mgmt.h:2483
struct ethernet_api wifi_iface
Mandatory to get in first position.
Definition wifi_mgmt.h:2492
const struct wifi_mgmt_ops *const wifi_mgmt_api
Wi-Fi management API.
Definition wifi_mgmt.h:2498
const void * wifi_drv_ops
Wi-Fi supplicant driver API.
Definition wifi_mgmt.h:2502
Extended net_if_api for offloaded ifaces/network devices, allowing handling of admin up/down state ch...
Definition offloaded_netdev.h:53
Wi-Fi 11k parameters.
Definition wifi_mgmt.h:1198
uint8_t ssid[WIFI_SSID_MAX_LEN+1]
SSID.
Definition wifi_mgmt.h:1204
bool enable_11k
11k enable/disable
Definition wifi_mgmt.h:1202
enum wifi_mgmt_op oper
11k command operation
Definition wifi_mgmt.h:1200
Wi-Fi AP configuration parameter.
Definition wifi_mgmt.h:1403
uint32_t max_inactivity
Parameter used for setting maximum inactivity duration for stations.
Definition wifi_mgmt.h:1407
enum wifi_ap_config_param type
Parameter used to identify the different AP parameters.
Definition wifi_mgmt.h:1405
uint32_t max_num_sta
Parameter used for setting maximum number of stations.
Definition wifi_mgmt.h:1409
enum wifi_frequency_bandwidths bandwidth
Parameter used for frequency band.
Definition wifi_mgmt.h:1411
AP mode - connected STA details.
Definition wifi_mgmt.h:1263
enum wifi_link_mode link_mode
Link mode, see enum wifi_link_mode.
Definition wifi_mgmt.h:1265
uint8_t mac[WIFI_MAC_ADDR_LEN]
MAC address.
Definition wifi_mgmt.h:1267
uint8_t mac_length
MAC address length.
Definition wifi_mgmt.h:1269
bool twt_capable
is TWT capable ?
Definition wifi_mgmt.h:1271
Wi-Fi structure to uniquely identify a band-channel pair.
Definition wifi_mgmt.h:605
uint8_t band
Frequency band.
Definition wifi_mgmt.h:607
uint8_t channel
Channel.
Definition wifi_mgmt.h:609
Wi-Fi background scan parameters.
Definition wifi_mgmt.h:1970
enum wifi_bgscan_type type
The type of background scanning.
Definition wifi_mgmt.h:1972
uint16_t long_interval
Long scan interval in seconds.
Definition wifi_mgmt.h:1976
uint16_t btm_queries
Number of BSS Transition Management (BTM) queries.
Definition wifi_mgmt.h:1980
int8_t rssi_threshold
Signal strength threshold in dBm.
Definition wifi_mgmt.h:1978
uint16_t short_interval
Short scan interval in seconds.
Definition wifi_mgmt.h:1974
Wi-Fi broadcast TWT parameters.
Definition wifi_mgmt.h:1015
uint8_t btwt_nominal_wake
Broadcast TWT range.
Definition wifi_mgmt.h:1023
uint16_t btwt_mantissa
Broadcast TWT mantissa.
Definition wifi_mgmt.h:1019
uint8_t btwt_exponent
Broadcast TWT exponent.
Definition wifi_mgmt.h:1021
uint8_t btwt_id
Broadcast TWT ID.
Definition wifi_mgmt.h:1017
Wi-Fi channel setting for monitor and TX-injection modes.
Definition wifi_mgmt.h:1383
uint8_t if_index
Interface index.
Definition wifi_mgmt.h:1392
uint16_t channel
Channel value to set or get.
Definition wifi_mgmt.h:1385
enum wifi_mgmt_op oper
Get or set operation.
Definition wifi_mgmt.h:1394
enum wifi_frequency_bands band
Frequency band for the channel (2.4 / 5 / 6 GHz).
Definition wifi_mgmt.h:1390
Wi-Fi STA configuration parameter.
Definition wifi_mgmt.h:1421
int okc
Parameter used for opportunistic key caching.
Definition wifi_mgmt.h:1425
enum wifi_config_param type
Parameter used to identify the different STA parameters.
Definition wifi_mgmt.h:1423
Wi-Fi connect request parameters.
Definition wifi_mgmt.h:691
const uint8_t * key2_passwd
Password for a secondary private key, if required by the authentication method.
Definition wifi_mgmt.h:750
uint8_t server_cert_domain_exact_len
Length of the server_cert_domain_exact string, maximum 128 bytes.
Definition wifi_mgmt.h:860
bool ft_used
Indicates if Fast BSS Transition (802.11r) is used.
Definition wifi_mgmt.h:818
enum wifi_frequency_bandwidths bandwidth
Parameter used for frequency band.
Definition wifi_mgmt.h:855
enum wifi_security_type security
Security type.
Definition wifi_mgmt.h:715
const uint8_t * passwords[WIFI_ENT_IDENTITY_MAX_USERS]
Array of pointers to user password strings for EAP authentication.
Definition wifi_mgmt.h:847
const uint8_t * identities[WIFI_ENT_IDENTITY_MAX_USERS]
Array of pointers to user identity strings for EAP authentication.
Definition wifi_mgmt.h:840
uint8_t aid_length
Length of the anonymous identity, maximum 64 bytes.
Definition wifi_mgmt.h:732
const uint8_t * server_cert_domain_exact
Full domain name to verify in the server certificate.
Definition wifi_mgmt.h:858
const uint8_t * sae_password
SAE password (same as PSK but with no length restrictions), optional.
Definition wifi_mgmt.h:707
const uint8_t * key_passwd
Private key password for Wi-Fi Enterprise authentication.
Definition wifi_mgmt.h:740
uint8_t eap_id_length
Length of the EAP identity, maximum 64 bytes.
Definition wifi_mgmt.h:792
uint8_t channel
Channel.
Definition wifi_mgmt.h:713
uint8_t ssid_length
SSID length.
Definition wifi_mgmt.h:695
int timeout
Connect timeout in seconds, SYS_FOREVER_MS for no timeout.
Definition wifi_mgmt.h:721
uint8_t transition_disable
WPA3 Transition Disable bitmap (WPA3 Spec v3.0, Table 5).
Definition wifi_mgmt.h:879
bool psk_is_pbkdf2
Pre-shared key is the pre-computed PBKDF2 output.
Definition wifi_mgmt.h:705
int nusers
Number of EAP user identities provided.
Definition wifi_mgmt.h:826
enum wifi_mfp_options mfp
MFP options.
Definition wifi_mgmt.h:717
uint8_t sae_password_length
SAE password length.
Definition wifi_mgmt.h:709
const uint8_t * anon_id
Anonymous identity used in EAP authentication (Phase 1) for Wi-Fi Enterprise networks.
Definition wifi_mgmt.h:729
int eap_ver
EAP (Extensible Authentication Protocol) version to use.
Definition wifi_mgmt.h:780
uint8_t key_passwd_length
Length of the private key password, maximum 128 bytes.
Definition wifi_mgmt.h:743
uint8_t band
Frequency band.
Definition wifi_mgmt.h:711
uint8_t TLS_cipher
TLS cipher suite to use for EAP-TLS authentication.
Definition wifi_mgmt.h:771
const uint8_t * psk
Pre-shared key.
Definition wifi_mgmt.h:697
uint8_t bssid[WIFI_MAC_ADDR_LEN]
BSSID.
Definition wifi_mgmt.h:719
bool verify_peer_cert
Whether to verify the server's certificate authority (CA) during authentication.
Definition wifi_mgmt.h:811
uint8_t passwds
Number of EAP passwords provided.
Definition wifi_mgmt.h:833
uint8_t psk_length
Pre-shared key length.
Definition wifi_mgmt.h:699
const uint8_t * eap_identity
Identity string for EAP authentication (Phase 2, inner authentication).
Definition wifi_mgmt.h:789
const uint8_t * ssid
SSID.
Definition wifi_mgmt.h:693
uint8_t ssid_protection
SSID protection in 4-way handshake (needs RSNXE support) 0: Disable (default) 1: Enable.
Definition wifi_mgmt.h:870
const uint8_t * server_cert_domain_suffix
Domain name suffix to verify in the server certificate.
Definition wifi_mgmt.h:863
enum wifi_wpa3_enterprise_type wpa3_ent_mode
WPA3 Enterprise mode type.
Definition wifi_mgmt.h:763
uint8_t eap_passwd_length
Length of the EAP password, maximum 128 bytes.
Definition wifi_mgmt.h:803
uint8_t key2_passwd_length
Length of the secondary private key password, maximum 128 bytes.
Definition wifi_mgmt.h:753
uint8_t server_cert_domain_suffix_len
Length of the server_cert_domain_suffix string, maximum 64 bytes.
Definition wifi_mgmt.h:865
uint8_t ignore_broadcast_ssid
Hidden SSID configure 0: disabled (default) 1: send empty (length=0) SSID in beacon and ignore probe ...
Definition wifi_mgmt.h:853
const uint8_t * eap_password
Password string for EAP authentication (Phase 2, inner authentication).
Definition wifi_mgmt.h:800
Wi-Fi enterprise mode credentials.
Definition wifi_mgmt.h:1140
uint32_t client_key_len
Client key length.
Definition wifi_mgmt.h:1152
uint8_t * client_cert2
Client certification of phase2.
Definition wifi_mgmt.h:1158
uint32_t client_key2_len
Phase2 Client key length.
Definition wifi_mgmt.h:1164
uint32_t client_cert_len
Client certification length.
Definition wifi_mgmt.h:1148
uint32_t ca_cert_len
CA certification length.
Definition wifi_mgmt.h:1144
uint8_t * client_cert
Client certification.
Definition wifi_mgmt.h:1146
uint8_t * client_key
Client key.
Definition wifi_mgmt.h:1150
uint32_t server_key_len
Server key length.
Definition wifi_mgmt.h:1172
uint8_t * dh_param
Diffie-Hellman parameter.
Definition wifi_mgmt.h:1174
uint8_t * client_key2
Client key of phase2.
Definition wifi_mgmt.h:1162
uint32_t ca_cert2_len
Phase2 CA certification length.
Definition wifi_mgmt.h:1156
uint32_t dh_param_len
Diffie-Hellman parameter length.
Definition wifi_mgmt.h:1176
uint8_t * server_key
Server key.
Definition wifi_mgmt.h:1170
uint32_t server_cert_len
Server certification length.
Definition wifi_mgmt.h:1168
uint8_t * server_cert
Server certification.
Definition wifi_mgmt.h:1166
uint8_t * ca_cert2
CA certification of phase2.
Definition wifi_mgmt.h:1154
uint32_t client_cert2_len
Phase2 Client certification length.
Definition wifi_mgmt.h:1160
uint8_t * ca_cert
CA certification.
Definition wifi_mgmt.h:1142
Wi-Fi filter setting for monitor, prmoiscuous, TX-injection modes.
Definition wifi_mgmt.h:1371
uint16_t buffer_size
Filter buffer size.
Definition wifi_mgmt.h:1377
uint8_t filter
Filter setting.
Definition wifi_mgmt.h:1373
enum wifi_mgmt_op oper
Get or set operation.
Definition wifi_mgmt.h:1379
uint8_t if_index
Interface index.
Definition wifi_mgmt.h:1375
Wi-Fi interface status.
Definition wifi_mgmt.h:947
unsigned short beacon_interval
Beacon interval.
Definition wifi_mgmt.h:977
enum wifi_wpa3_enterprise_type wpa3_ent_type
WPA3 enterprise type.
Definition wifi_mgmt.h:965
char ssid[WIFI_SSID_MAX_LEN+1]
SSID.
Definition wifi_mgmt.h:953
float current_phy_tx_rate
The current 802.11 PHY TX data rate (in Mbps).
Definition wifi_mgmt.h:981
int rssi
RSSI.
Definition wifi_mgmt.h:973
char bssid[WIFI_MAC_ADDR_LEN]
BSSID.
Definition wifi_mgmt.h:955
enum wifi_security_type security
Security type, see enum wifi_security_type.
Definition wifi_mgmt.h:967
unsigned int channel
Channel.
Definition wifi_mgmt.h:959
enum wifi_wep_key_type wep_key_type
WEP key type (64-bit or 128-bit), see enum wifi_wep_key_type.
Definition wifi_mgmt.h:969
enum wifi_mfp_options mfp
MFP options, see enum wifi_mfp_options.
Definition wifi_mgmt.h:971
unsigned char dtim_period
DTIM period.
Definition wifi_mgmt.h:975
int state
Interface state, see enum wifi_iface_state.
Definition wifi_mgmt.h:949
bool twt_capable
is TWT capable?
Definition wifi_mgmt.h:979
enum wifi_iface_mode iface_mode
Interface mode, see enum wifi_iface_mode.
Definition wifi_mgmt.h:961
unsigned int ssid_len
SSID length.
Definition wifi_mgmt.h:951
enum wifi_frequency_bands band
Frequency band.
Definition wifi_mgmt.h:957
enum wifi_link_mode link_mode
Link mode, see enum wifi_link_mode.
Definition wifi_mgmt.h:963
Wi-Fi management API.
Definition wifi_mgmt.h:2021
int(* ap_config_params)(const struct device *dev, struct net_if *iface, struct wifi_ap_config_params *params)
Configure AP parameter.
Definition wifi_mgmt.h:2319
int(* set_bgscan)(const struct device *dev, struct net_if *iface, struct wifi_bgscan_params *params)
Configure background scanning.
Definition wifi_mgmt.h:2450
int(* mode)(const struct device *dev, struct net_if *iface, struct wifi_mode_info *mode)
Set or get mode of operation.
Definition wifi_mgmt.h:2218
int(* send_11k_neighbor_request)(const struct device *dev, struct net_if *iface, struct wifi_11k_params *params)
Send 11k neighbor request.
Definition wifi_mgmt.h:2141
int(* set_bss_max_idle_period)(const struct device *dev, struct net_if *iface, unsigned short bss_max_idle_period)
Set BSS max idle period.
Definition wifi_mgmt.h:2438
int(* ap_disable)(const struct device *dev, struct net_if *iface)
Disable AP mode.
Definition wifi_mgmt.h:2079
int(* channel)(const struct device *dev, struct net_if *iface, struct wifi_channel_info *channel)
Set or get current channel of operation.
Definition wifi_mgmt.h:2227
int(* set_power_save)(const struct device *dev, struct net_if *iface, struct wifi_ps_params *params)
Set power save status.
Definition wifi_mgmt.h:2152
uint32_t(* get_iface_caps)(const struct device *dev, struct net_if *iface)
Get interface supported roles (static driver capability).
Definition wifi_mgmt.h:2479
int(* set_btwt)(const struct device *dev, struct net_if *iface, struct wifi_twt_params *params)
Setup BTWT flow.
Definition wifi_mgmt.h:2174
int(* filter)(const struct device *dev, struct net_if *iface, struct wifi_filter_info *filter)
Set or get packet filter settings for monitor and promiscuous modes.
Definition wifi_mgmt.h:2207
bool(* bss_support_neighbor_rep)(const struct device *dev, struct net_if *iface)
Check if ap support Neighbor Report or not.
Definition wifi_mgmt.h:2247
int(* config_params)(const struct device *dev, struct net_if *iface, struct wifi_config_params *params)
Configure STA parameter.
Definition wifi_mgmt.h:2330
int(* connect)(const struct device *dev, struct net_if *iface, struct wifi_connect_req_params *params)
Connect to a Wi-Fi network.
Definition wifi_mgmt.h:2050
int(* candidate_scan)(const struct device *dev, struct net_if *iface, struct wifi_scan_params *params)
Trigger candidate scan.
Definition wifi_mgmt.h:2417
int(* pmksa_flush)(const struct device *dev, struct net_if *iface)
Flush PMKSA cache entries.
Definition wifi_mgmt.h:2367
int(* get_version)(const struct device *dev, struct net_if *iface, struct wifi_version *params)
Get Version of WiFi driver and Firmware.
Definition wifi_mgmt.h:2281
int(* reset_stats)(const struct device *dev, struct net_if *iface)
Reset Wi-Fi statistics.
Definition wifi_mgmt.h:2120
int(* reg_domain)(const struct device *dev, struct net_if *iface, struct wifi_reg_domain *reg_domain)
Set or get regulatory domain.
Definition wifi_mgmt.h:2196
int(* disconnect)(const struct device *dev, struct net_if *iface)
Disconnect from a Wi-Fi network.
Definition wifi_mgmt.h:2060
int(* legacy_roam)(const struct device *dev, struct net_if *iface)
Send legacy scan.
Definition wifi_mgmt.h:2266
int(* get_power_save_config)(const struct device *dev, struct net_if *iface, struct wifi_ps_config *config)
Get power save config.
Definition wifi_mgmt.h:2185
int(* iface_status)(const struct device *dev, struct net_if *iface, struct wifi_iface_status *status)
Get interface status.
Definition wifi_mgmt.h:2098
int(* ap_enable)(const struct device *dev, struct net_if *iface, struct wifi_connect_req_params *params)
Enable AP mode.
Definition wifi_mgmt.h:2070
int(* cfg_11k)(const struct device *dev, struct net_if *iface, struct wifi_11k_params *params)
Set or get 11K status.
Definition wifi_mgmt.h:2130
int(* get_conn_params)(const struct device *dev, struct net_if *iface, struct wifi_connect_req_params *params)
Get Wi-Fi connection parameters recently used.
Definition wifi_mgmt.h:2297
int(* wps_config)(const struct device *dev, struct net_if *iface, struct wifi_wps_config_params *params)
Start a WPS PBC/PIN connection.
Definition wifi_mgmt.h:2406
int(* get_stats)(const struct device *dev, struct net_if *iface, struct net_stats_wifi *stats)
Get Wi-Fi statistics.
Definition wifi_mgmt.h:2110
int(* start_11r_roaming)(const struct device *dev, struct net_if *iface)
Start 11r roaming.
Definition wifi_mgmt.h:2429
int(* bss_ext_capab)(const struct device *dev, struct net_if *iface, int capab)
Judge ap whether support the capability.
Definition wifi_mgmt.h:2257
int(* scan)(const struct device *dev, struct net_if *iface, struct wifi_scan_params *params, scan_result_cb_t cb)
Scan for Wi-Fi networks.
Definition wifi_mgmt.h:2034
int(* btm_query)(const struct device *dev, struct net_if *iface, uint8_t reason)
Send BTM query.
Definition wifi_mgmt.h:2239
int(* get_rts_threshold)(const struct device *dev, struct net_if *iface, unsigned int *rts_threshold)
Set Wi-Fi enterprise mode CA/client Cert and key.
Definition wifi_mgmt.h:2395
int(* ap_sta_disconnect)(const struct device *dev, struct net_if *iface, const uint8_t *mac)
Disconnect a STA from AP.
Definition wifi_mgmt.h:2088
int(* set_rts_threshold)(const struct device *dev, struct net_if *iface, unsigned int rts_threshold)
Set RTS threshold value.
Definition wifi_mgmt.h:2308
int(* set_twt)(const struct device *dev, struct net_if *iface, struct wifi_twt_params *params)
Setup or teardown TWT flow.
Definition wifi_mgmt.h:2163
Wi-Fi mode setup.
Definition wifi_mgmt.h:1361
enum wifi_mgmt_op oper
Get or set operation.
Definition wifi_mgmt.h:1367
uint8_t mode
Mode setting for a specific mode of operation.
Definition wifi_mgmt.h:1363
uint8_t if_index
Interface index.
Definition wifi_mgmt.h:1365
Wi-Fi power save configuration.
Definition wifi_mgmt.h:1180
struct wifi_ps_params ps_params
Power save configuration.
Definition wifi_mgmt.h:1186
char num_twt_flows
Number of TWT flows.
Definition wifi_mgmt.h:1182
struct wifi_twt_flow_info twt_flows[WIFI_MAX_TWT_FLOWS]
TWT flow details.
Definition wifi_mgmt.h:1184
Wi-Fi power save parameters.
Definition wifi_mgmt.h:985
enum wifi_ps_mode mode
Wi-Fi power save mode.
Definition wifi_mgmt.h:993
enum wifi_config_ps_param_fail_reason fail_reason
Wi-Fi power save fail reason.
Definition wifi_mgmt.h:1006
enum wifi_ps_wakeup_mode wakeup_mode
Wi-Fi power save wakeup mode.
Definition wifi_mgmt.h:991
unsigned short listen_interval
Listen interval.
Definition wifi_mgmt.h:989
enum wifi_ps_exit_strategy exit_strategy
Wi-Fi power save exit strategy.
Definition wifi_mgmt.h:1008
enum wifi_ps enabled
Power save state.
Definition wifi_mgmt.h:987
unsigned int timeout_ms
Wi-Fi power save timeout.
Definition wifi_mgmt.h:1002
enum wifi_ps_param_type type
Wi-Fi power save type.
Definition wifi_mgmt.h:1004
Wi-Fi raw scan result.
Definition wifi_mgmt.h:1250
int8_t rssi
RSSI.
Definition wifi_mgmt.h:1252
uint8_t data[CONFIG_WIFI_MGMT_RAW_SCAN_RESULT_LENGTH]
Raw scan data.
Definition wifi_mgmt.h:1258
int frame_length
Frame length.
Definition wifi_mgmt.h:1254
unsigned short frequency
Frequency.
Definition wifi_mgmt.h:1256
Per-channel regulatory attributes.
Definition wifi_mgmt.h:1211
unsigned short center_frequency
Center frequency in MHz.
Definition wifi_mgmt.h:1213
unsigned short dfs
Is a DFS channel.
Definition wifi_mgmt.h:1221
unsigned short supported
Is channel supported or not.
Definition wifi_mgmt.h:1217
unsigned short passive_only
Passive transmissions only.
Definition wifi_mgmt.h:1219
unsigned short max_power
Maximum transmission power (in dBm).
Definition wifi_mgmt.h:1215
Regulatory domain information or configuration.
Definition wifi_mgmt.h:1225
unsigned int num_channels
Number of channels supported.
Definition wifi_mgmt.h:1235
enum wifi_mgmt_op oper
Regulatory domain operation.
Definition wifi_mgmt.h:1227
struct wifi_reg_chan_info * chan_info
Channels information.
Definition wifi_mgmt.h:1237
bool force
Ignore all other regulatory hints over this one, the behavior is implementation specific.
Definition wifi_mgmt.h:1231
uint8_t country_code[WIFI_COUNTRY_CODE_LEN]
Country code: ISO/IEC 3166-1 alpha-2.
Definition wifi_mgmt.h:1233
Wi-Fi scan parameters structure.
Definition wifi_mgmt.h:617
uint16_t max_bss_cnt
Specifies the maximum number of scan results to return.
Definition wifi_mgmt.h:646
uint16_t dwell_time_active
Active scan dwell time (in ms) on a channel.
Definition wifi_mgmt.h:632
enum wifi_scan_type scan_type
Scan type, see enum wifi_scan_type.
Definition wifi_mgmt.h:625
uint8_t bands
Bitmap of bands to be scanned.
Definition wifi_mgmt.h:629
uint16_t dwell_time_passive
Passive scan dwell time (in ms) on a channel.
Definition wifi_mgmt.h:635
struct wifi_band_channel band_chan[WIFI_MGMT_SCAN_CHAN_MAX_MANUAL]
Channel information array indexed on Wi-Fi frequency bands and channels within that band.
Definition wifi_mgmt.h:661
const char * ssids[WIFI_MGMT_SCAN_SSID_FILT_MAX]
Array of SSID strings to scan.
Definition wifi_mgmt.h:638
Wi-Fi scan result, each result is provided to the net_mgmt_event_callback via its info attribute (see...
Definition wifi_mgmt.h:667
uint8_t ssid_length
SSID length.
Definition wifi_mgmt.h:671
uint8_t band
Frequency band.
Definition wifi_mgmt.h:673
uint8_t mac[WIFI_MAC_ADDR_LEN]
BSSID.
Definition wifi_mgmt.h:685
int8_t rssi
RSSI.
Definition wifi_mgmt.h:683
uint8_t mac_length
BSSID length.
Definition wifi_mgmt.h:687
uint8_t ssid[WIFI_SSID_MAX_LEN+1]
SSID.
Definition wifi_mgmt.h:669
enum wifi_wpa3_enterprise_type wpa3_ent_type
WPA3 enterprise type.
Definition wifi_mgmt.h:679
enum wifi_mfp_options mfp
MFP options.
Definition wifi_mgmt.h:681
uint8_t channel
Channel.
Definition wifi_mgmt.h:675
enum wifi_security_type security
Security type.
Definition wifi_mgmt.h:677
Generic Wi-Fi status for commands and events.
Definition wifi_mgmt.h:924
enum wifi_ap_status ap_status
Access point status.
Definition wifi_mgmt.h:934
uint16_t reason_code
IEEE 802.11 reason code from the last Deauthentication or Disassociation frame, 0 if not available.
Definition wifi_mgmt.h:943
enum wifi_conn_status conn_status
Connection status.
Definition wifi_mgmt.h:930
enum wifi_disconn_reason disconn_reason
Disconnection reason status.
Definition wifi_mgmt.h:932
int status
Status value.
Definition wifi_mgmt.h:928
uint16_t status_code
IEEE 802.11 status code from the last Authentication or (Re)Association Response frame,...
Definition wifi_mgmt.h:939
Wi-Fi TWT flow information.
Definition wifi_mgmt.h:1111
uint8_t dialog_token
Dialog token, used to map requests to responses.
Definition wifi_mgmt.h:1115
enum wifi_twt_negotiation_type negotiation_type
TWT negotiation type, see enum wifi_twt_negotiation_type.
Definition wifi_mgmt.h:1119
uint32_t twt_wake_ahead_duration
Wake ahead duration.
Definition wifi_mgmt.h:1131
bool trigger
Trigger enabled or disabled.
Definition wifi_mgmt.h:1123
bool responder
Requestor or responder.
Definition wifi_mgmt.h:1121
uint8_t flow_id
Flow ID, used to map setup with teardown.
Definition wifi_mgmt.h:1117
uint64_t twt_interval
Interval = Wake up time + Sleeping time.
Definition wifi_mgmt.h:1113
uint32_t twt_wake_interval
Wake up time.
Definition wifi_mgmt.h:1129
bool implicit
Implicit or explicit.
Definition wifi_mgmt.h:1125
bool announce
Announced or unannounced.
Definition wifi_mgmt.h:1127
Wi-Fi TWT parameters.
Definition wifi_mgmt.h:1027
bool announce
Announced or unannounced.
Definition wifi_mgmt.h:1055
bool teardown_all
Teardown all flows.
Definition wifi_mgmt.h:1087
enum wifi_twt_setup_cmd setup_cmd
TWT setup command, see enum wifi_twt_setup_cmd.
Definition wifi_mgmt.h:1033
uint16_t btwt_offset
Broadcast TWT offset.
Definition wifi_mgmt.h:1076
bool trigger
Trigger enabled or disabled.
Definition wifi_mgmt.h:1051
enum wifi_twt_negotiation_type negotiation_type
TWT negotiation type, see enum wifi_twt_negotiation_type.
Definition wifi_mgmt.h:1031
enum wifi_twt_operation operation
TWT operation, see enum wifi_twt_operation.
Definition wifi_mgmt.h:1029
uint32_t twt_wake_ahead_duration
Wake ahead notification is sent earlier than TWT Service period (SP) start based on this duration.
Definition wifi_mgmt.h:1063
enum wifi_twt_fail_reason fail_reason
TWT fail reason, see enum wifi_twt_fail_reason.
Definition wifi_mgmt.h:1091
struct wifi_twt_params::@302311362167322044106272253111230157111235232263::@053165077055023247316045052326043107125356150312 btwt
Setup specific parameters.
uint32_t twt_wake_interval
Wake up time.
Definition wifi_mgmt.h:1057
uint8_t btwt_li
In multiple of 4 beacon interval.
Definition wifi_mgmt.h:1078
enum wifi_twt_setup_resp_status resp_status
TWT setup response status, see enum wifi_twt_setup_resp_status.
Definition wifi_mgmt.h:1035
bool implicit
Implicit or explicit.
Definition wifi_mgmt.h:1053
uint8_t flow_id
Flow ID, used to map setup with teardown.
Definition wifi_mgmt.h:1041
enum wifi_twt_teardown_status teardown_status
TWT teardown cmd status, see enum wifi_twt_teardown_status.
Definition wifi_mgmt.h:1037
uint8_t btwt_sta_wait
Broadcast TWT station wait time.
Definition wifi_mgmt.h:1074
struct wifi_btwt_params btwt_set_cfg[5]
Broadcast TWT agreement sets.
Definition wifi_mgmt.h:1082
uint8_t twt_exponent
TWT exponent.
Definition wifi_mgmt.h:1067
uint16_t twt_mantissa
TWT Mantissa Range: [0-sizeof(UINT16)].
Definition wifi_mgmt.h:1069
struct wifi_twt_params::@302311362167322044106272253111230157111235232263::@352270327013076240220216032274341232230206256214 teardown
Teardown specific parameters.
uint64_t twt_interval
Interval = Wake up time + Sleeping time.
Definition wifi_mgmt.h:1047
bool twt_info_disable
TWT info enabled or disable.
Definition wifi_mgmt.h:1065
uint8_t dialog_token
Dialog token, used to map requests to responses.
Definition wifi_mgmt.h:1039
bool responder
Requestor or responder.
Definition wifi_mgmt.h:1049
struct wifi_twt_params::@302311362167322044106272253111230157111235232263::@007355023165260313375314073015252271352275036053 setup
Setup specific parameters.
uint8_t btwt_count
Broadcast TWT agreement count.
Definition wifi_mgmt.h:1080
Wi-Fi version.
Definition wifi_mgmt.h:595
const char * fw_version
Firmware version.
Definition wifi_mgmt.h:599
const char * drv_version
Driver version.
Definition wifi_mgmt.h:597
Wi-Fi wps setup.
Definition wifi_mgmt.h:1765
char pin[8+1]
pin value
Definition wifi_mgmt.h:1769
enum wifi_wps_op oper
wps operation
Definition wifi_mgmt.h:1767
IEEE 802.11 protocol and general Wi-Fi definitions.