Zephyr API Documentation 4.3.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
13
14#ifndef ZEPHYR_INCLUDE_NET_WIFI_MGMT_H_
15#define ZEPHYR_INCLUDE_NET_WIFI_MGMT_H_
16
17#include <zephyr/net/net_mgmt.h>
18#include <zephyr/net/wifi.h>
19#include <zephyr/net/ethernet.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
30
31/* Management part definitions */
32
34
35#define NET_WIFI_LAYER NET_MGMT_LAYER_L2
36#define NET_WIFI_CODE NET_MGMT_LAYER_CODE_WIFI
37#define NET_WIFI_BASE (NET_MGMT_IFACE_BIT | \
38 NET_MGMT_LAYER(NET_WIFI_LAYER) | \
39 NET_MGMT_LAYER_CODE(NET_WIFI_CODE))
40#define NET_WIFI_EVENT (NET_WIFI_BASE | NET_MGMT_EVENT_BIT)
41
42#ifdef CONFIG_WIFI_MGMT_SCAN_SSID_FILT_MAX
43#define WIFI_MGMT_SCAN_SSID_FILT_MAX CONFIG_WIFI_MGMT_SCAN_SSID_FILT_MAX
44#else
45#define WIFI_MGMT_SCAN_SSID_FILT_MAX 1
46#endif /* CONFIG_WIFI_MGMT_SCAN_SSID_FILT_MAX */
47
48#ifdef CONFIG_WIFI_MGMT_SCAN_CHAN_MAX_MANUAL
49#define WIFI_MGMT_SCAN_CHAN_MAX_MANUAL CONFIG_WIFI_MGMT_SCAN_CHAN_MAX_MANUAL
50#else
51#define WIFI_MGMT_SCAN_CHAN_MAX_MANUAL 1
52#endif /* CONFIG_WIFI_MGMT_SCAN_CHAN_MAX_MANUAL */
53
54#ifdef CONFIG_WIFI_ENT_IDENTITY_MAX_USERS
55#define WIFI_ENT_IDENTITY_MAX_USERS CONFIG_WIFI_ENT_IDENTITY_MAX_USERS
56#else
57#define WIFI_ENT_IDENTITY_MAX_USERS 1
58#endif /* CONFIG_WIFI_ENT_IDENTITY_MAX_USERS */
59
60#define WIFI_MGMT_BAND_STR_SIZE_MAX 8
61#define WIFI_MGMT_SCAN_MAX_BSS_CNT 65535
62
63#define WIFI_MGMT_SKIP_INACTIVITY_POLL IS_ENABLED(CONFIG_WIFI_MGMT_AP_STA_SKIP_INACTIVITY_POLL)
65
146
148#define NET_REQUEST_WIFI_SCAN \
149 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_SCAN)
150
152
154#define NET_REQUEST_WIFI_CONNECT \
155 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_CONNECT)
156
158
160#define NET_REQUEST_WIFI_DISCONNECT \
161 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_DISCONNECT)
162
164
166#define NET_REQUEST_WIFI_AP_ENABLE \
167 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_AP_ENABLE)
168
170
172#define NET_REQUEST_WIFI_AP_DISABLE \
173 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_AP_DISABLE)
174
176
178#define NET_REQUEST_WIFI_AP_RTS_THRESHOLD \
179 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_AP_RTS_THRESHOLD)
180
182
184#define NET_REQUEST_WIFI_IFACE_STATUS \
185 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_IFACE_STATUS)
186
188
189#define NET_REQUEST_WIFI_11K_CONFIG \
190 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_11K_CONFIG)
191
193
194#define NET_REQUEST_WIFI_11K_NEIGHBOR_REQUEST \
195 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_11K_NEIGHBOR_REQUEST)
196
198
200#define NET_REQUEST_WIFI_PS \
201 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_PS)
202
204
206#define NET_REQUEST_WIFI_TWT \
207 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_TWT)
208
210
211#define NET_REQUEST_WIFI_BTWT \
212 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_BTWT)
213
215
217#define NET_REQUEST_WIFI_PS_CONFIG \
218 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_PS_CONFIG)
219
221
223#define NET_REQUEST_WIFI_REG_DOMAIN \
224 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_REG_DOMAIN)
225
227
229#define NET_REQUEST_WIFI_MODE \
230 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_MODE)
231
233
235#define NET_REQUEST_WIFI_PACKET_FILTER \
236 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_PACKET_FILTER)
237
239
241#define NET_REQUEST_WIFI_CHANNEL \
242 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_CHANNEL)
243
245
247#define NET_REQUEST_WIFI_AP_STA_DISCONNECT \
248 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_AP_STA_DISCONNECT)
249
251
253#define NET_REQUEST_WIFI_VERSION \
254 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_VERSION)
255
257
259#define NET_REQUEST_WIFI_CONN_PARAMS \
260 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_CONN_PARAMS)
261
263
265#define NET_REQUEST_WIFI_RTS_THRESHOLD \
266 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_RTS_THRESHOLD)
267
269
271#define NET_REQUEST_WIFI_AP_CONFIG_PARAM \
272 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_AP_CONFIG_PARAM)
273
275
277#define NET_REQUEST_WIFI_CONFIG_PARAM \
278 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_CONFIG_PARAM)
279
281
282#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP
284#define NET_REQUEST_WIFI_DPP \
285 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_DPP)
286
287NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_WIFI_DPP);
288#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
289
291#define NET_REQUEST_WIFI_BTM_QUERY (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_BTM_QUERY)
292
294
296#define NET_REQUEST_WIFI_PMKSA_FLUSH \
297 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_PMKSA_FLUSH)
298
300
302#define NET_REQUEST_WIFI_ENTERPRISE_CREDS \
303 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_ENTERPRISE_CREDS)
304
306
308#define NET_REQUEST_WIFI_RTS_THRESHOLD_CONFIG \
309 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_RTS_THRESHOLD_CONFIG)
310
312
313#define NET_REQUEST_WIFI_WPS_CONFIG (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_WPS_CONFIG)
314
316#ifdef CONFIG_WIFI_CREDENTIALS_CONNECT_STORED
317#define NET_REQUEST_WIFI_CONNECT_STORED (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_CONNECT_STORED)
318
319NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_WIFI_CONNECT_STORED);
320#endif
321
322#define NET_REQUEST_WIFI_START_ROAMING \
323 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_START_ROAMING)
324
326
327#define NET_REQUEST_WIFI_NEIGHBOR_REP_COMPLETE \
328 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_NEIGHBOR_REP_COMPLETE)
329
331
332#define NET_REQUEST_WIFI_BSS_MAX_IDLE_PERIOD \
333 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_BSS_MAX_IDLE_PERIOD)
334
336
337#define NET_REQUEST_WIFI_BGSCAN \
338 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_BGSCAN)
339
341
343
344enum {
345 NET_EVENT_WIFI_CMD_SCAN_RESULT_VAL,
346 NET_EVENT_WIFI_CMD_SCAN_DONE_VAL,
347 NET_EVENT_WIFI_CMD_CONNECT_RESULT_VAL,
348 NET_EVENT_WIFI_CMD_DISCONNECT_RESULT_VAL,
349 NET_EVENT_WIFI_CMD_IFACE_STATUS_VAL,
350 NET_EVENT_WIFI_CMD_TWT_VAL,
351 NET_EVENT_WIFI_CMD_TWT_SLEEP_STATE_VAL,
352 NET_EVENT_WIFI_CMD_RAW_SCAN_RESULT_VAL,
353 NET_EVENT_WIFI_CMD_DISCONNECT_COMPLETE_VAL,
354 NET_EVENT_WIFI_CMD_SIGNAL_CHANGE_VAL,
355 NET_EVENT_WIFI_CMD_NEIGHBOR_REP_RECEIVED_VAL,
356 NET_EVENT_WIFI_CMD_NEIGHBOR_REP_COMPLETE_VAL,
357 NET_EVENT_WIFI_CMD_AP_ENABLE_RESULT_VAL,
358 NET_EVENT_WIFI_CMD_AP_DISABLE_RESULT_VAL,
359 NET_EVENT_WIFI_CMD_AP_STA_CONNECTED_VAL,
360 NET_EVENT_WIFI_CMD_AP_STA_DISCONNECTED_VAL,
361 NET_EVENT_WIFI_CMD_SUPPLICANT_VAL,
362
363 NET_EVENT_WIFI_CMD_MAX,
364};
365
366BUILD_ASSERT(NET_EVENT_WIFI_CMD_MAX <= NET_MGMT_MAX_COMMANDS,
367 "Number of events in net_event_wifi_cmd exceeds the limit");
368
370
374 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_SCAN_RESULT),
376 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_SCAN_DONE),
378 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_CONNECT_RESULT),
380 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_DISCONNECT_RESULT),
382 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_IFACE_STATUS),
384 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_TWT),
388 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_TWT_SLEEP_STATE),
390 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_RAW_SCAN_RESULT),
392 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_DISCONNECT_COMPLETE),
394 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_SIGNAL_CHANGE),
396 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_NEIGHBOR_REP_RECEIVED),
398 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_NEIGHBOR_REP_COMPLETE),
400 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_AP_ENABLE_RESULT),
402 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_AP_DISABLE_RESULT),
404 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_AP_STA_CONNECTED),
406 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_AP_STA_DISCONNECTED),
408 NET_MGMT_CMD(NET_EVENT_WIFI_CMD_SUPPLICANT),
409};
410
412#define NET_EVENT_WIFI_SCAN_RESULT \
413 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_SCAN_RESULT)
414
416#define NET_EVENT_WIFI_SCAN_DONE \
417 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_SCAN_DONE)
418
420#define NET_EVENT_WIFI_CONNECT_RESULT \
421 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_CONNECT_RESULT)
422
424#define NET_EVENT_WIFI_DISCONNECT_RESULT \
425 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_DISCONNECT_RESULT)
426
428#define NET_EVENT_WIFI_IFACE_STATUS \
429 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_IFACE_STATUS)
430
432#define NET_EVENT_WIFI_TWT \
433 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_TWT)
434
436#define NET_EVENT_WIFI_TWT_SLEEP_STATE \
437 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_TWT_SLEEP_STATE)
438
440#define NET_EVENT_WIFI_RAW_SCAN_RESULT \
441 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_RAW_SCAN_RESULT)
442
444#define NET_EVENT_WIFI_DISCONNECT_COMPLETE \
445 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_DISCONNECT_COMPLETE)
446
448#define NET_EVENT_WIFI_SIGNAL_CHANGE \
449 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_SIGNAL_CHANGE)
450
452#define NET_EVENT_WIFI_NEIGHBOR_REP_COMP \
453 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_NEIGHBOR_REP_COMPLETE)
454
456#define NET_EVENT_WIFI_AP_ENABLE_RESULT \
457 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_AP_ENABLE_RESULT)
458
460#define NET_EVENT_WIFI_AP_DISABLE_RESULT \
461 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_AP_DISABLE_RESULT)
462
464#define NET_EVENT_WIFI_AP_STA_CONNECTED \
465 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_AP_STA_CONNECTED)
466
468#define NET_EVENT_WIFI_AP_STA_DISCONNECTED \
469 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_AP_STA_DISCONNECTED)
470
474 const char *drv_version;
476 const char *fw_version;
477};
478
488
540
566
737
753
775
789
825
852
853#define WIFI_BTWT_AGREEMENT_MAX 5
854
866
933
935
936/* Flow ID is only 3 bits */
937#define WIFI_MAX_TWT_FLOWS 8
938#define WIFI_MAX_TWT_INTERVAL_US (LONG_MAX - 1)
939/* 256 (u8) * 1TU */
940#define WIFI_MAX_TWT_WAKE_INTERVAL_US 262144
941#define WIFI_MAX_TWT_WAKE_AHEAD_DURATION_US (LONG_MAX - 1)
942#define WIFI_MAX_TWT_EXPONENT 31
943
945
969
1009
1019
1027
1037
1039#define MAX_REG_CHAN_NUM 42
1040
1044 unsigned short center_frequency;
1046 unsigned short max_power:8;
1048 unsigned short supported:1;
1050 unsigned short passive_only:1;
1052 unsigned short dfs:1;
1053} __packed;
1054
1070
1078
1079#if defined(CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS) || defined(__DOXYGEN__)
1087 unsigned short frequency;
1089 uint8_t data[CONFIG_WIFI_MGMT_RAW_SCAN_RESULT_LENGTH];
1090};
1091#endif /* CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS */
1092
1104
1106
1107/* for use in max info size calculations */
1108union wifi_mgmt_events {
1109 struct wifi_scan_result scan_result;
1110 struct wifi_status connect_status;
1111 struct wifi_iface_status iface_status;
1112#ifdef CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS
1113 struct wifi_raw_scan_result raw_scan_result;
1114#endif /* CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS */
1115 struct wifi_twt_params twt_params;
1116 struct wifi_ap_sta_info ap_sta_info;
1117};
1118
1120
1130
1142
1152
1154#define WIFI_AP_STA_MAX_INACTIVITY (LONG_MAX - 1)
1155#define WIFI_AP_IEEE_80211_CAPAB_MAX_LEN 64
1157
1168#if defined(CONFIG_WIFI_NM_HOSTAPD_AP)
1170 char ht_capab[WIFI_AP_IEEE_80211_CAPAB_MAX_LEN + 1];
1172 char vht_capab[WIFI_AP_IEEE_80211_CAPAB_MAX_LEN + 1];
1173#endif
1174};
1175
1183
1184#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP
1187#define WIFI_DPP_QRCODE_MAX_LEN 255
1188
1190enum wifi_dpp_op {
1192 WIFI_DPP_OP_INVALID = 0,
1194 WIFI_DPP_CONFIGURATOR_ADD,
1196 WIFI_DPP_AUTH_INIT,
1198 WIFI_DPP_QR_CODE,
1200 WIFI_DPP_CHIRP,
1202 WIFI_DPP_LISTEN,
1204 WIFI_DPP_BOOTSTRAP_GEN,
1206 WIFI_DPP_BOOTSTRAP_GET_URI,
1208 WIFI_DPP_SET_CONF_PARAM,
1210 WIFI_DPP_SET_WAIT_RESP_TIME,
1212 WIFI_DPP_RECONFIG
1213};
1214
1216enum wifi_dpp_curves {
1218 WIFI_DPP_CURVES_DEFAULT = 0,
1220 WIFI_DPP_CURVES_P_256,
1222 WIFI_DPP_CURVES_P_384,
1224 WIFI_DPP_CURVES_P_512,
1226 WIFI_DPP_CURVES_BP_256,
1228 WIFI_DPP_CURVES_BP_384,
1230 WIFI_DPP_CURVES_BP_512
1231};
1232
1234enum wifi_dpp_role {
1236 WIFI_DPP_ROLE_UNSET = 0,
1238 WIFI_DPP_ROLE_CONFIGURATOR,
1240 WIFI_DPP_ROLE_ENROLLEE,
1242 WIFI_DPP_ROLE_EITHER
1243};
1244
1249enum wifi_dpp_conf {
1251 WIFI_DPP_CONF_UNSET = 0,
1253 WIFI_DPP_CONF_STA,
1255 WIFI_DPP_CONF_AP,
1257 WIFI_DPP_CONF_QUERY
1258};
1259
1264enum wifi_dpp_bootstrap_type {
1266 WIFI_DPP_BOOTSTRAP_TYPE_UNSET = 0,
1268 WIFI_DPP_BOOTSTRAP_TYPE_QRCODE,
1270 WIFI_DPP_BOOTSTRAP_TYPE_PKEX,
1272 WIFI_DPP_BOOTSTRAP_TYPE_NFC_URI
1273};
1274
1276struct wifi_dpp_configurator_add_params {
1278 int curve;
1280 int net_access_key_curve;
1281};
1282
1284struct wifi_dpp_auth_init_params {
1286 int peer;
1288 int configurator;
1290 int role;
1292 int conf;
1294 char ssid[WIFI_SSID_MAX_LEN + 1];
1295};
1296
1298struct wifi_dpp_chirp_params {
1300 int id;
1302 int freq;
1303};
1304
1306struct wifi_dpp_listen_params {
1308 int freq;
1310 int role;
1311};
1312
1314struct wifi_dpp_bootstrap_gen_params {
1316 int type;
1318 int op_class;
1320 int chan;
1322 int curve;
1325};
1326
1328struct wifi_dpp_configurator_set_params {
1330 int peer;
1332 int configurator;
1334 int role;
1336 int conf;
1338 int curve;
1340 int net_access_key_curve;
1342 char ssid[WIFI_SSID_MAX_LEN + 1];
1343};
1344
1347struct wifi_dpp_params {
1349 int action;
1350 union {
1352 struct wifi_dpp_configurator_add_params configurator_add;
1354 struct wifi_dpp_auth_init_params auth_init;
1356 struct wifi_dpp_chirp_params chirp;
1358 struct wifi_dpp_listen_params listen;
1360 struct wifi_dpp_bootstrap_gen_params bootstrap_gen;
1362 struct wifi_dpp_configurator_set_params configurator_set;
1364 int id;
1366 int dpp_resp_wait_time;
1368 int network_id;
1370 uint8_t dpp_qr_code[WIFI_DPP_QRCODE_MAX_LEN + 1];
1375 char resp[WIFI_DPP_QRCODE_MAX_LEN + 1];
1376 };
1377};
1378#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
1379
1380#define WIFI_WPS_PIN_MAX_LEN 8
1381
1391
1399
1412
1413#if defined(CONFIG_WIFI_NM_WPA_SUPPLICANT_BGSCAN) || defined(__DOXYGEN__)
1423
1437#endif
1438
1439/* Extended Capabilities */
1447
1448#include <zephyr/net/net_if.h>
1449
1456typedef void (*scan_result_cb_t)(struct net_if *iface, int status,
1457 struct wifi_scan_result *entry);
1458
1459#ifdef CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS
1466typedef void (*raw_scan_result_cb_t)(struct net_if *iface, int status,
1467 struct wifi_raw_scan_result *entry);
1468#endif /* CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS */
1469
1483 int (*scan)(const struct device *dev,
1484 struct wifi_scan_params *params,
1485 scan_result_cb_t cb);
1493 int (*connect)(const struct device *dev,
1494 struct wifi_connect_req_params *params);
1501 int (*disconnect)(const struct device *dev);
1509 int (*ap_enable)(const struct device *dev,
1510 struct wifi_connect_req_params *params);
1517 int (*ap_disable)(const struct device *dev);
1525 int (*ap_sta_disconnect)(const struct device *dev, const uint8_t *mac);
1533 int (*iface_status)(const struct device *dev, struct wifi_iface_status *status);
1534#if defined(CONFIG_NET_STATISTICS_WIFI) || defined(__DOXYGEN__)
1542 int (*get_stats)(const struct device *dev, struct net_stats_wifi *stats);
1549 int (*reset_stats)(const struct device *dev);
1550#endif /* CONFIG_NET_STATISTICS_WIFI */
1558 int (*cfg_11k)(const struct device *dev, struct wifi_11k_params *params);
1566 int (*send_11k_neighbor_request)(const struct device *dev, struct wifi_11k_params *params);
1574 int (*set_power_save)(const struct device *dev, struct wifi_ps_params *params);
1582 int (*set_twt)(const struct device *dev, struct wifi_twt_params *params);
1590 int (*set_btwt)(const struct device *dev, struct wifi_twt_params *params);
1598 int (*get_power_save_config)(const struct device *dev, struct wifi_ps_config *config);
1606 int (*reg_domain)(const struct device *dev, struct wifi_reg_domain *reg_domain);
1614 int (*filter)(const struct device *dev, struct wifi_filter_info *filter);
1622 int (*mode)(const struct device *dev, struct wifi_mode_info *mode);
1630 int (*channel)(const struct device *dev, struct wifi_channel_info *channel);
1631
1639 int (*btm_query)(const struct device *dev, uint8_t reason);
1640
1646 bool (*bss_support_neighbor_rep)(const struct device *dev);
1647
1655 int (*bss_ext_capab)(const struct device *dev, int capab);
1656
1663 int (*legacy_roam)(const struct device *dev);
1664
1677 int (*get_version)(const struct device *dev, struct wifi_version *params);
1685 int (*get_conn_params)(const struct device *dev, struct wifi_connect_req_params *params);
1693 int (*set_rts_threshold)(const struct device *dev, unsigned int rts_threshold);
1701 int (*ap_config_params)(const struct device *dev, struct wifi_ap_config_params *params);
1709 int (*config_params)(const struct device *dev, struct wifi_config_params *params);
1710#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP
1718 int (*dpp_dispatch)(const struct device *dev, struct wifi_dpp_params *params);
1719#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
1726 int (*pmksa_flush)(const struct device *dev);
1734#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE
1735 int (*enterprise_creds)(const struct device *dev,
1736 struct wifi_enterprise_creds_params *creds);
1737#endif
1745 int (*get_rts_threshold)(const struct device *dev, unsigned int *rts_threshold);
1753 int (*wps_config)(const struct device *dev, struct wifi_wps_config_params *params);
1761 int (*candidate_scan)(const struct device *dev, struct wifi_scan_params *params);
1768 int (*start_11r_roaming)(const struct device *dev);
1776 int (*set_bss_max_idle_period)(const struct device *dev,
1777 unsigned short bss_max_idle_period);
1778#if defined(CONFIG_WIFI_NM_WPA_SUPPLICANT_BGSCAN) || defined(__DOXYGEN__)
1786 int (*set_bgscan)(const struct device *dev, struct wifi_bgscan_params *params);
1787#endif
1788};
1789
1798#if defined(CONFIG_WIFI_USE_NATIVE_NETWORKING) || defined(__DOXYGEN__)
1801#else
1804#endif
1806 const struct wifi_mgmt_ops *const wifi_mgmt_api;
1807
1808#if defined(CONFIG_WIFI_NM_WPA_SUPPLICANT) || defined(__DOXYGEN__)
1810 const void *wifi_drv_ops;
1811#endif
1812};
1813
1814#if defined(CONFIG_WIFI_NM_WPA_SUPPLICANT)
1815/* Make sure wifi_drv_ops is after wifi_mgmt_api */
1816BUILD_ASSERT(offsetof(struct net_wifi_mgmt_offload, wifi_mgmt_api) <
1817 offsetof(struct net_wifi_mgmt_offload, wifi_drv_ops));
1818#endif
1819
1820/* Make sure that the network interface API is properly setup inside
1821 * Wifi mgmt offload API struct (it is the first one).
1822 */
1823BUILD_ASSERT(offsetof(struct net_wifi_mgmt_offload, wifi_iface) == 0);
1824
1830void wifi_mgmt_raise_connect_result_event(struct net_if *iface, int status);
1831
1837void wifi_mgmt_raise_disconnect_result_event(struct net_if *iface, int status);
1838
1846
1853 struct wifi_twt_params *twt_params);
1854
1860void wifi_mgmt_raise_twt_sleep_state(struct net_if *iface, int twt_sleep_state);
1861
1862#if defined(CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS) || defined(__DOXYGEN__)
1869 struct wifi_raw_scan_result *raw_scan_info);
1870#endif /* CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS */
1871
1878
1879#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_ROAMING
1886void wifi_mgmt_raise_neighbor_rep_recv_event(struct net_if *iface,
1887 char *inbuf, size_t buf_len);
1888#endif
1889
1896
1903
1910 struct wifi_ap_sta_info *sta_info);
1911
1917 struct wifi_ap_sta_info *sta_info);
1918
1922#ifdef __cplusplus
1923}
1924#endif
1925
1926#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:129
void wifi_mgmt_raise_connect_result_event(struct net_if *iface, int status)
Wi-Fi management connect result event.
wifi_ext_capab
Definition wifi_mgmt.h:1440
wifi_sap_iface_state
Wi-Fi AP status.
Definition wifi_mgmt.h:1402
wifi_ps
Wi-Fi power save states.
Definition wifi.h:441
#define NET_REQUEST_WIFI_PS_CONFIG
Request a Wi-Fi power save configuration.
Definition wifi_mgmt.h:217
void wifi_mgmt_raise_twt_sleep_state(struct net_if *iface, int twt_sleep_state)
Wi-Fi management TWT sleep state event.
#define NET_REQUEST_WIFI_SCAN
Request a Wi-Fi scan.
Definition wifi_mgmt.h:148
wifi_frequency_bands
IEEE 802.11 operational frequency bands (not exhaustive).
Definition wifi.h:260
wifi_mfp_options
IEEE 802.11w - Management frame protection.
Definition wifi.h:239
#define NET_REQUEST_WIFI_RTS_THRESHOLD
Request a Wi-Fi RTS threshold.
Definition wifi_mgmt.h:265
#define WIFI_WPS_PIN_MAX_LEN
Definition wifi_mgmt.h:1380
#define NET_REQUEST_WIFI_RTS_THRESHOLD_CONFIG
Request a Wi-Fi RTS threshold configuration.
Definition wifi_mgmt.h:308
#define WIFI_MAC_ADDR_LEN
MAC address length.
Definition wifi.h:309
#define NET_REQUEST_WIFI_REG_DOMAIN
Request a Wi-Fi regulatory domain.
Definition wifi_mgmt.h:223
wifi_ps_exit_strategy
Wi-Fi power save exit strategy.
Definition wifi.h:650
#define NET_REQUEST_WIFI_PACKET_FILTER
Request Wi-Fi packet filter.
Definition wifi_mgmt.h:235
wifi_twt_setup_cmd
Wi-Fi Target Wake Time (TWT) setup commands.
Definition wifi.h:523
#define NET_REQUEST_WIFI_BSS_MAX_IDLE_PERIOD
Definition wifi_mgmt.h:332
#define NET_REQUEST_WIFI_NEIGHBOR_REP_COMPLETE
Definition wifi_mgmt.h:327
wifi_twt_sleep_state
Wi-Fi TWT sleep states.
Definition wifi_mgmt.h:1072
#define WIFI_BTWT_AGREEMENT_MAX
Definition wifi_mgmt.h:853
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:282
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:184
#define NET_REQUEST_WIFI_VERSION
Request a Wi-Fi version.
Definition wifi_mgmt.h:253
wifi_wpa3_enterprise_type
WPA3 Enterprise security types.
Definition wifi.h:145
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
Definition wifi_mgmt.h:194
wifi_wps_op
Operation for WPS.
Definition wifi_mgmt.h:1383
wifi_twt_setup_resp_status
Wi-Fi Target Wake Time (TWT) negotiation status.
Definition wifi.h:546
#define NET_REQUEST_WIFI_CONFIG_PARAM
Request a Wi-Fi STA parameters configuration.
Definition wifi_mgmt.h:277
#define NET_REQUEST_WIFI_BTM_QUERY
Request a Wi-Fi BTM query.
Definition wifi_mgmt.h:291
wifi_iface_mode
Wi-Fi interface modes.
Definition wifi.h:374
#define NET_REQUEST_WIFI_AP_ENABLE
Request a Wi-Fi access point enable.
Definition wifi_mgmt.h:166
#define NET_REQUEST_WIFI_WPS_CONFIG
Definition wifi_mgmt.h:313
#define WIFI_COUNTRY_CODE_LEN
Length of the country code string.
Definition wifi.h:28
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:200
wifi_twt_negotiation_type
Wi-Fi Target Wake Time (TWT) negotiation types.
Definition wifi.h:510
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:739
wifi_ap_config_param
Wi-Fi AP mode configuration parameter.
Definition wifi.h:725
wifi_conn_status
Wi-Fi connect result codes.
Definition wifi.h:44
#define NET_REQUEST_WIFI_START_ROAMING
Definition wifi_mgmt.h:322
#define NET_REQUEST_WIFI_PMKSA_FLUSH
Request a Wi-Fi PMKSA cache entries flush.
Definition wifi_mgmt.h:296
#define NET_REQUEST_WIFI_DISCONNECT
Request a Wi-Fi disconnect.
Definition wifi_mgmt.h:160
wifi_twt_fail_reason
Target Wake Time (TWT) error codes.
Definition wifi.h:554
#define NET_REQUEST_WIFI_AP_RTS_THRESHOLD
Request a Wi-Fi RTS threshold.
Definition wifi_mgmt.h:178
net_request_wifi_cmd
Wi-Fi management commands.
Definition wifi_mgmt.h:67
#define NET_REQUEST_WIFI_MODE
Request current Wi-Fi mode.
Definition wifi_mgmt.h:229
#define NET_REQUEST_WIFI_BGSCAN
Definition wifi_mgmt.h:337
#define NET_REQUEST_WIFI_AP_STA_DISCONNECT
Request a Wi-Fi access point to disconnect a station.
Definition wifi_mgmt.h:247
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:154
wifi_bgscan_type
Wi-Fi background scan implementation.
Definition wifi_mgmt.h:1415
wifi_ap_status
Wi-Fi AP mode result codes.
Definition wifi_mgmt.h:757
#define NET_REQUEST_WIFI_TWT
Request a Wi-Fi TWT.
Definition wifi_mgmt.h:206
wifi_link_mode
Wi-Fi link operating modes.
Definition wifi.h:402
wifi_ps_param_type
Wi-Fi power save parameters.
Definition wifi.h:621
net_event_wifi_cmd
Wi-Fi management events.
Definition wifi_mgmt.h:372
#define NET_REQUEST_WIFI_CONN_PARAMS
Request a Wi-Fi connection parameters.
Definition wifi_mgmt.h:259
wifi_disconn_reason
Wi-Fi disconnect reason codes.
Definition wifi_mgmt.h:741
wifi_ps_wakeup_mode
Wi-Fi power save modes.
Definition wifi.h:637
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:499
wifi_scan_type
Wi-Fi scanning types.
Definition wifi.h:433
void(* scan_result_cb_t)(struct net_if *iface, int status, struct wifi_scan_result *entry)
Scan result callback.
Definition wifi_mgmt.h:1456
wifi_twt_teardown_status
Wi-Fi Target Wake Time (TWT) teradown status.
Definition wifi.h:580
#define WIFI_SSID_MAX_LEN
Max SSID length.
Definition wifi.h:301
#define NET_REQUEST_WIFI_CHANNEL
Request a Wi-Fi channel.
Definition wifi_mgmt.h:241
wifi_config_ps_param_fail_reason
Wi-Fi power save error codes.
Definition wifi.h:666
#define NET_REQUEST_WIFI_11K_CONFIG
Definition wifi_mgmt.h:189
wifi_security_type
IEEE 802.11 security types.
Definition wifi.h:69
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:1021
#define NET_REQUEST_WIFI_ENTERPRISE_CREDS
Set Wi-Fi enterprise mode CA/client Cert and key.
Definition wifi_mgmt.h:302
#define NET_REQUEST_WIFI_BTWT
Definition wifi_mgmt.h:211
#define NET_REQUEST_WIFI_AP_CONFIG_PARAM
Request a Wi-Fi AP parameters configuration.
Definition wifi_mgmt.h:271
#define NET_REQUEST_WIFI_AP_DISABLE
Request a Wi-Fi access point disable.
Definition wifi_mgmt.h:172
wifi_ps_mode
Wi-Fi power save modes.
Definition wifi.h:452
@ WIFI_EXT_CAPAB_GLK
Definition wifi_mgmt.h:1442
@ WIFI_EXT_CAPAB_20_40_COEX
Definition wifi_mgmt.h:1441
@ WIFI_EXT_CAPAB_BSS_TRANSITION
Definition wifi_mgmt.h:1445
@ WIFI_EXT_CAPAB_EXT_CHAN_SWITCH
Definition wifi_mgmt.h:1443
@ WIFI_EXT_CAPAB_TIM_BROADCAST
Definition wifi_mgmt.h:1444
@ WIFI_SAP_IFACE_COUNTRY_UPDATE
Definition wifi_mgmt.h:1405
@ WIFI_SAP_IFACE_DISABLED
Definition wifi_mgmt.h:1404
@ WIFI_SAP_IFACE_HT_SCAN
Definition wifi_mgmt.h:1407
@ WIFI_SAP_IFACE_ENABLED
Definition wifi_mgmt.h:1410
@ WIFI_SAP_IFACE_ACS
Definition wifi_mgmt.h:1406
@ WIFI_SAP_IFACE_UNINITIALIZED
Definition wifi_mgmt.h:1403
@ WIFI_SAP_IFACE_NO_IR
Definition wifi_mgmt.h:1409
@ WIFI_SAP_IFACE_DFS
Definition wifi_mgmt.h:1408
@ WIFI_TWT_STATE_SLEEP
TWT sleep state: sleeping.
Definition wifi_mgmt.h:1074
@ WIFI_TWT_STATE_AWAKE
TWT sleep state: awake.
Definition wifi_mgmt.h:1076
@ WIFI_WPS_PBC
WPS pbc.
Definition wifi_mgmt.h:1385
@ WIFI_WPS_PIN_SET
Set WPS pin number.
Definition wifi_mgmt.h:1389
@ WIFI_WPS_PIN_GET
Get WPS pin number.
Definition wifi_mgmt.h:1387
@ NET_REQUEST_WIFI_CMD_AP_CONFIG_PARAM
Configure AP parameter.
Definition wifi_mgmt.h:111
@ NET_REQUEST_WIFI_CMD_TWT
Setup or teardown TWT flow.
Definition wifi_mgmt.h:89
@ NET_REQUEST_WIFI_CMD_PMKSA_FLUSH
Flush PMKSA cache entries.
Definition wifi_mgmt.h:119
@ NET_REQUEST_WIFI_CMD_PACKET_FILTER
Set or get packet filter setting for current mode.
Definition wifi_mgmt.h:99
@ NET_REQUEST_WIFI_CMD_AP_ENABLE
Enable AP mode.
Definition wifi_mgmt.h:75
@ NET_REQUEST_WIFI_CMD_START_ROAMING
Start roaming.
Definition wifi_mgmt.h:131
@ NET_REQUEST_WIFI_CMD_REG_DOMAIN
Set or get regulatory domain.
Definition wifi_mgmt.h:95
@ NET_REQUEST_WIFI_CMD_AP_RTS_THRESHOLD
Set AP RTS threshold.
Definition wifi_mgmt.h:79
@ NET_REQUEST_WIFI_CMD_BSS_MAX_IDLE_PERIOD
Configure BSS maximum idle period.
Definition wifi_mgmt.h:139
@ NET_REQUEST_WIFI_CMD_11K_NEIGHBOR_REQUEST
Send 11k neighbor request.
Definition wifi_mgmt.h:85
@ NET_REQUEST_WIFI_CMD_SCAN
Scan for Wi-Fi networks.
Definition wifi_mgmt.h:69
@ NET_REQUEST_WIFI_CMD_IFACE_STATUS
Get interface status.
Definition wifi_mgmt.h:81
@ NET_REQUEST_WIFI_CMD_AP_STA_DISCONNECT
Disconnect a STA from AP.
Definition wifi_mgmt.h:103
@ NET_REQUEST_WIFI_CMD_DPP
DPP actions.
Definition wifi_mgmt.h:115
@ NET_REQUEST_WIFI_CMD_AP_DISABLE
Disable AP mode.
Definition wifi_mgmt.h:77
@ NET_REQUEST_WIFI_CMD_RTS_THRESHOLD
Set RTS threshold.
Definition wifi_mgmt.h:109
@ NET_REQUEST_WIFI_CMD_CONNECT
Connect to a Wi-Fi network.
Definition wifi_mgmt.h:71
@ NET_REQUEST_WIFI_CMD_VERSION
Get Wi-Fi driver and Firmware versions.
Definition wifi_mgmt.h:105
@ NET_REQUEST_WIFI_CMD_BGSCAN
Configure background scanning.
Definition wifi_mgmt.h:141
@ NET_REQUEST_WIFI_CMD_CONFIG_PARAM
Configure STA parameter.
Definition wifi_mgmt.h:113
@ NET_REQUEST_WIFI_CMD_ENTERPRISE_CREDS
Set enterprise mode credential.
Definition wifi_mgmt.h:121
@ NET_REQUEST_WIFI_CMD_CONN_PARAMS
Get Wi-Fi latest connection parameters.
Definition wifi_mgmt.h:107
@ NET_REQUEST_WIFI_CMD_11K_CONFIG
Set or get 11k status.
Definition wifi_mgmt.h:83
@ NET_REQUEST_WIFI_CMD_CHANNEL
Set or get Wi-Fi channel for Monitor or TX-Injection mode.
Definition wifi_mgmt.h:101
@ NET_REQUEST_WIFI_CMD_BTWT
Setup BTWT flow.
Definition wifi_mgmt.h:91
@ NET_REQUEST_WIFI_CMD_MODE
Set or get Mode of operation.
Definition wifi_mgmt.h:97
@ NET_REQUEST_WIFI_CMD_RTS_THRESHOLD_CONFIG
Get RTS threshold.
Definition wifi_mgmt.h:123
@ NET_REQUEST_WIFI_CMD_CANDIDATE_SCAN
Specific scan.
Definition wifi_mgmt.h:135
@ NET_REQUEST_WIFI_CMD_BTM_QUERY
BSS transition management query.
Definition wifi_mgmt.h:117
@ NET_REQUEST_WIFI_CMD_PS
Set power save status.
Definition wifi_mgmt.h:87
@ NET_REQUEST_WIFI_CMD_DISCONNECT
Disconnect from a Wi-Fi network.
Definition wifi_mgmt.h:73
@ NET_REQUEST_WIFI_CMD_NEIGHBOR_REP_COMPLETE
Neighbor report complete.
Definition wifi_mgmt.h:133
@ NET_REQUEST_WIFI_CMD_AP_WPS_CONFIG
AP WPS config.
Definition wifi_mgmt.h:137
@ NET_REQUEST_WIFI_CMD_PS_CONFIG
Get power save config.
Definition wifi_mgmt.h:93
@ NET_REQUEST_WIFI_CMD_WPS_CONFIG
WPS config.
Definition wifi_mgmt.h:125
@ WIFI_BGSCAN_SIMPLE
Simple, periodic scan based on signal strength.
Definition wifi_mgmt.h:1419
@ WIFI_BGSCAN_NONE
None, background scan is disabled.
Definition wifi_mgmt.h:1417
@ WIFI_BGSCAN_LEARN
Learn channels used by the network (experimental)
Definition wifi_mgmt.h:1421
@ WIFI_STATUS_AP_CHANNEL_NOT_ALLOWED
AP mode enable failed - channel not allowed.
Definition wifi_mgmt.h:765
@ WIFI_STATUS_AP_SUCCESS
AP mode enable or disable successful.
Definition wifi_mgmt.h:759
@ WIFI_STATUS_AP_OP_NOT_SUPPORTED
AP mode enable failed - operation not supported.
Definition wifi_mgmt.h:771
@ WIFI_STATUS_AP_OP_NOT_PERMITTED
AP mode enable failed - operation not permitted.
Definition wifi_mgmt.h:773
@ WIFI_STATUS_AP_CHANNEL_NOT_SUPPORTED
AP mode enable failed - channel not supported.
Definition wifi_mgmt.h:763
@ WIFI_STATUS_AP_FAIL
AP mode enable or disable failed - generic failure.
Definition wifi_mgmt.h:761
@ WIFI_STATUS_AP_AUTH_TYPE_NOT_SUPPORTED
AP mode enable failed - authentication type not supported.
Definition wifi_mgmt.h:769
@ WIFI_STATUS_AP_SSID_NOT_ALLOWED
AP mode enable failed - SSID not allowed.
Definition wifi_mgmt.h:767
@ NET_MGMT_CMD
Scan results available.
Definition wifi_mgmt.h:374
@ WIFI_REASON_DISCONN_INACTIVITY
Disconnected due to inactivity.
Definition wifi_mgmt.h:751
@ WIFI_REASON_DISCONN_AP_LEAVING
Disconnected due to AP leaving.
Definition wifi_mgmt.h:749
@ WIFI_REASON_DISCONN_SUCCESS
Success, overload status as reason.
Definition wifi_mgmt.h:743
@ WIFI_REASON_DISCONN_UNSPECIFIED
Unspecified reason.
Definition wifi_mgmt.h:745
@ WIFI_REASON_DISCONN_USER_REQUEST
Disconnected due to user request.
Definition wifi_mgmt.h:747
@ WIFI_MGMT_GET
Get operation.
Definition wifi_mgmt.h:1023
@ WIFI_MGMT_SET
Set operation.
Definition wifi_mgmt.h:1025
#define BUILD_ASSERT(EXPR, MSG...)
Definition llvm.h:51
Public API for network interface.
Network Management API public header.
Offloaded network device iface API.
int listen(int sock, int backlog)
#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:513
Ethernet L2 API operations.
Definition ethernet.h:532
Network Interface structure.
Definition net_if.h:726
All Wi-Fi specific statistics.
Definition net_stats.h:705
Wi-Fi management offload API.
Definition wifi_mgmt.h:1791
struct ethernet_api wifi_iface
Mandatory to get in first position.
Definition wifi_mgmt.h:1800
const struct wifi_mgmt_ops *const wifi_mgmt_api
Wi-Fi management API.
Definition wifi_mgmt.h:1806
const void * wifi_drv_ops
Wi-Fi supplicant driver API.
Definition wifi_mgmt.h:1810
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:1029
uint8_t ssid[WIFI_SSID_MAX_LEN+1]
SSID.
Definition wifi_mgmt.h:1035
bool enable_11k
11k enable/disable
Definition wifi_mgmt.h:1033
enum wifi_mgmt_op oper
11k command operation
Definition wifi_mgmt.h:1031
Wi-Fi AP configuration parameter.
Definition wifi_mgmt.h:1159
uint32_t max_inactivity
Parameter used for setting maximum inactivity duration for stations.
Definition wifi_mgmt.h:1163
enum wifi_ap_config_param type
Parameter used to identify the different AP parameters.
Definition wifi_mgmt.h:1161
uint32_t max_num_sta
Parameter used for setting maximum number of stations.
Definition wifi_mgmt.h:1165
enum wifi_frequency_bandwidths bandwidth
Parameter used for frequency band.
Definition wifi_mgmt.h:1167
AP mode - connected STA details.
Definition wifi_mgmt.h:1094
enum wifi_link_mode link_mode
Link mode, see enum wifi_link_mode.
Definition wifi_mgmt.h:1096
uint8_t mac[WIFI_MAC_ADDR_LEN]
MAC address.
Definition wifi_mgmt.h:1098
uint8_t mac_length
MAC address length.
Definition wifi_mgmt.h:1100
bool twt_capable
is TWT capable ?
Definition wifi_mgmt.h:1102
Wi-Fi structure to uniquely identify a band-channel pair.
Definition wifi_mgmt.h:482
uint8_t band
Frequency band.
Definition wifi_mgmt.h:484
uint8_t channel
Channel.
Definition wifi_mgmt.h:486
Wi-Fi background scan parameters.
Definition wifi_mgmt.h:1425
enum wifi_bgscan_type type
The type of background scanning.
Definition wifi_mgmt.h:1427
uint16_t long_interval
Long scan interval in seconds.
Definition wifi_mgmt.h:1431
uint16_t btm_queries
Number of BSS Transition Management (BTM) queries.
Definition wifi_mgmt.h:1435
int8_t rssi_threshold
Signal strength threshold in dBm.
Definition wifi_mgmt.h:1433
uint16_t short_interval
Short scan interval in seconds.
Definition wifi_mgmt.h:1429
Wi-Fi broadcast TWT parameters.
Definition wifi_mgmt.h:856
uint8_t btwt_nominal_wake
Broadcast TWT range.
Definition wifi_mgmt.h:864
uint16_t btwt_mantissa
Broadcast TWT mantissa.
Definition wifi_mgmt.h:860
uint8_t btwt_exponent
Broadcast TWT exponent.
Definition wifi_mgmt.h:862
uint8_t btwt_id
Broadcast TWT ID.
Definition wifi_mgmt.h:858
Wi-Fi channel setting for monitor and TX-injection modes.
Definition wifi_mgmt.h:1144
uint8_t if_index
Interface index.
Definition wifi_mgmt.h:1148
uint16_t channel
Channel value to set.
Definition wifi_mgmt.h:1146
enum wifi_mgmt_op oper
Get or set operation.
Definition wifi_mgmt.h:1150
Wi-Fi STA configuration parameter.
Definition wifi_mgmt.h:1177
int okc
Parameter used for opportunistic key caching.
Definition wifi_mgmt.h:1181
enum wifi_config_param type
Parameter used to identify the different STA parameters.
Definition wifi_mgmt.h:1179
Wi-Fi connect request parameters.
Definition wifi_mgmt.h:568
const uint8_t * key2_passwd
Password for a secondary private key, if required by the authentication method.
Definition wifi_mgmt.h:621
uint8_t server_cert_domain_exact_len
Length of the server_cert_domain_exact string, maximum 128 bytes.
Definition wifi_mgmt.h:730
bool ft_used
Indicates if Fast BSS Transition (802.11r) is used.
Definition wifi_mgmt.h:688
enum wifi_frequency_bandwidths bandwidth
Parameter used for frequency band.
Definition wifi_mgmt.h:725
enum wifi_security_type security
Security type.
Definition wifi_mgmt.h:586
const uint8_t * passwords[WIFI_ENT_IDENTITY_MAX_USERS]
Array of pointers to user password strings for EAP authentication.
Definition wifi_mgmt.h:717
const uint8_t * identities[WIFI_ENT_IDENTITY_MAX_USERS]
Array of pointers to user identity strings for EAP authentication.
Definition wifi_mgmt.h:710
uint8_t aid_length
Length of the anonymous identity, maximum 64 bytes.
Definition wifi_mgmt.h:603
const uint8_t * server_cert_domain_exact
Full domain name to verify in the server certificate.
Definition wifi_mgmt.h:728
const uint8_t * sae_password
SAE password (same as PSK but with no length restrictions), optional.
Definition wifi_mgmt.h:578
const uint8_t * key_passwd
Private key password for Wi-Fi Enterprise authentication.
Definition wifi_mgmt.h:611
uint8_t eap_id_length
Length of the EAP identity, maximum 64 bytes.
Definition wifi_mgmt.h:662
uint8_t channel
Channel.
Definition wifi_mgmt.h:584
uint8_t ssid_length
SSID length.
Definition wifi_mgmt.h:572
int timeout
Connect timeout in seconds, SYS_FOREVER_MS for no timeout.
Definition wifi_mgmt.h:592
int nusers
Number of EAP user identities provided.
Definition wifi_mgmt.h:696
enum wifi_mfp_options mfp
MFP options.
Definition wifi_mgmt.h:588
uint8_t sae_password_length
SAE password length.
Definition wifi_mgmt.h:580
const uint8_t * anon_id
Anonymous identity used in EAP authentication (Phase 1) for Wi-Fi Enterprise networks.
Definition wifi_mgmt.h:600
int eap_ver
EAP (Extensible Authentication Protocol) version to use.
Definition wifi_mgmt.h:650
uint8_t key_passwd_length
Length of the private key password, maximum 128 bytes.
Definition wifi_mgmt.h:614
uint8_t band
Frequency band.
Definition wifi_mgmt.h:582
uint8_t TLS_cipher
TLS cipher suite to use for EAP-TLS authentication.
Definition wifi_mgmt.h:642
const uint8_t * psk
Pre-shared key.
Definition wifi_mgmt.h:574
uint8_t bssid[WIFI_MAC_ADDR_LEN]
BSSID.
Definition wifi_mgmt.h:590
bool verify_peer_cert
Whether to verify the server's certificate authority (CA) during authentication.
Definition wifi_mgmt.h:681
uint8_t passwds
Number of EAP passwords provided.
Definition wifi_mgmt.h:703
uint8_t psk_length
Pre-shared key length.
Definition wifi_mgmt.h:576
const uint8_t * eap_identity
Identity string for EAP authentication (Phase 2, inner authentication).
Definition wifi_mgmt.h:659
const uint8_t * ssid
SSID.
Definition wifi_mgmt.h:570
const uint8_t * server_cert_domain_suffix
Domain name suffix to verify in the server certificate.
Definition wifi_mgmt.h:733
enum wifi_wpa3_enterprise_type wpa3_ent_mode
WPA3 Enterprise mode type.
Definition wifi_mgmt.h:634
uint8_t eap_passwd_length
Length of the EAP password, maximum 128 bytes.
Definition wifi_mgmt.h:673
uint8_t key2_passwd_length
Length of the secondary private key password, maximum 128 bytes.
Definition wifi_mgmt.h:624
uint8_t server_cert_domain_suffix_len
Length of the server_cert_domain_suffix string, maximum 64 bytes.
Definition wifi_mgmt.h:735
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:723
const uint8_t * eap_password
Password string for EAP authentication (Phase 2, inner authentication).
Definition wifi_mgmt.h:670
Wi-Fi enterprise mode credentials.
Definition wifi_mgmt.h:971
uint32_t client_key_len
Client key length.
Definition wifi_mgmt.h:983
uint8_t * client_cert2
Client certification of phase2.
Definition wifi_mgmt.h:989
uint32_t client_key2_len
Phase2 Client key length.
Definition wifi_mgmt.h:995
uint32_t client_cert_len
Client certification length.
Definition wifi_mgmt.h:979
uint32_t ca_cert_len
CA certification length.
Definition wifi_mgmt.h:975
uint8_t * client_cert
Client certification.
Definition wifi_mgmt.h:977
uint8_t * client_key
Client key.
Definition wifi_mgmt.h:981
uint32_t server_key_len
Server key length.
Definition wifi_mgmt.h:1003
uint8_t * dh_param
Diffie–Hellman parameter.
Definition wifi_mgmt.h:1005
uint8_t * client_key2
Client key of phase2.
Definition wifi_mgmt.h:993
uint32_t ca_cert2_len
Phase2 CA certification length.
Definition wifi_mgmt.h:987
uint32_t dh_param_len
Diffie–Hellman parameter length.
Definition wifi_mgmt.h:1007
uint8_t * server_key
Server key.
Definition wifi_mgmt.h:1001
uint32_t server_cert_len
Server certification length.
Definition wifi_mgmt.h:999
uint8_t * server_cert
Server certification.
Definition wifi_mgmt.h:997
uint8_t * ca_cert2
CA certification of phase2.
Definition wifi_mgmt.h:985
uint32_t client_cert2_len
Phase2 Client certification length.
Definition wifi_mgmt.h:991
uint8_t * ca_cert
CA certification.
Definition wifi_mgmt.h:973
Wi-Fi filter setting for monitor, prmoiscuous, TX-injection modes.
Definition wifi_mgmt.h:1132
uint16_t buffer_size
Filter buffer size.
Definition wifi_mgmt.h:1138
uint8_t filter
Filter setting.
Definition wifi_mgmt.h:1134
enum wifi_mgmt_op oper
Get or set operation.
Definition wifi_mgmt.h:1140
uint8_t if_index
Interface index.
Definition wifi_mgmt.h:1136
Wi-Fi interface status.
Definition wifi_mgmt.h:791
unsigned short beacon_interval
Beacon interval.
Definition wifi_mgmt.h:819
enum wifi_wpa3_enterprise_type wpa3_ent_type
WPA3 enterprise type.
Definition wifi_mgmt.h:809
char ssid[WIFI_SSID_MAX_LEN+1]
SSID.
Definition wifi_mgmt.h:797
float current_phy_tx_rate
The current 802.11 PHY TX data rate (in Mbps)
Definition wifi_mgmt.h:823
int rssi
RSSI.
Definition wifi_mgmt.h:815
char bssid[WIFI_MAC_ADDR_LEN]
BSSID.
Definition wifi_mgmt.h:799
enum wifi_security_type security
Security type, see enum wifi_security_type.
Definition wifi_mgmt.h:811
unsigned int channel
Channel.
Definition wifi_mgmt.h:803
enum wifi_mfp_options mfp
MFP options, see enum wifi_mfp_options.
Definition wifi_mgmt.h:813
unsigned char dtim_period
DTIM period.
Definition wifi_mgmt.h:817
int state
Interface state, see enum wifi_iface_state.
Definition wifi_mgmt.h:793
bool twt_capable
is TWT capable?
Definition wifi_mgmt.h:821
enum wifi_iface_mode iface_mode
Interface mode, see enum wifi_iface_mode.
Definition wifi_mgmt.h:805
unsigned int ssid_len
SSID length.
Definition wifi_mgmt.h:795
enum wifi_frequency_bands band
Frequency band.
Definition wifi_mgmt.h:801
enum wifi_link_mode link_mode
Link mode, see enum wifi_link_mode.
Definition wifi_mgmt.h:807
Wi-Fi management API.
Definition wifi_mgmt.h:1471
int(* reg_domain)(const struct device *dev, struct wifi_reg_domain *reg_domain)
Set or get regulatory domain.
Definition wifi_mgmt.h:1606
int(* send_11k_neighbor_request)(const struct device *dev, struct wifi_11k_params *params)
Send 11k neighbor request.
Definition wifi_mgmt.h:1566
int(* get_rts_threshold)(const struct device *dev, unsigned int *rts_threshold)
Set Wi-Fi enterprise mode CA/client Cert and key.
Definition wifi_mgmt.h:1745
int(* ap_config_params)(const struct device *dev, struct wifi_ap_config_params *params)
Configure AP parameter.
Definition wifi_mgmt.h:1701
int(* scan)(const struct device *dev, struct wifi_scan_params *params, scan_result_cb_t cb)
Scan for Wi-Fi networks.
Definition wifi_mgmt.h:1483
int(* cfg_11k)(const struct device *dev, struct wifi_11k_params *params)
Set or get 11K status.
Definition wifi_mgmt.h:1558
int(* btm_query)(const struct device *dev, uint8_t reason)
Send BTM query.
Definition wifi_mgmt.h:1639
int(* get_conn_params)(const struct device *dev, struct wifi_connect_req_params *params)
Get Wi-Fi connection parameters recently used.
Definition wifi_mgmt.h:1685
int(* start_11r_roaming)(const struct device *dev)
Start 11r roaming.
Definition wifi_mgmt.h:1768
int(* set_rts_threshold)(const struct device *dev, unsigned int rts_threshold)
Set RTS threshold value.
Definition wifi_mgmt.h:1693
int(* get_power_save_config)(const struct device *dev, struct wifi_ps_config *config)
Get power save config.
Definition wifi_mgmt.h:1598
int(* candidate_scan)(const struct device *dev, struct wifi_scan_params *params)
Trigger candidate scan.
Definition wifi_mgmt.h:1761
int(* disconnect)(const struct device *dev)
Disconnect from a Wi-Fi network.
Definition wifi_mgmt.h:1501
int(* ap_disable)(const struct device *dev)
Disable AP mode.
Definition wifi_mgmt.h:1517
int(* get_stats)(const struct device *dev, struct net_stats_wifi *stats)
Get Wi-Fi statistics.
Definition wifi_mgmt.h:1542
bool(* bss_support_neighbor_rep)(const struct device *dev)
Check if ap support Neighbor Report or not.
Definition wifi_mgmt.h:1646
int(* legacy_roam)(const struct device *dev)
Send legacy scan.
Definition wifi_mgmt.h:1663
int(* get_version)(const struct device *dev, struct wifi_version *params)
Get Version of WiFi driver and Firmware.
Definition wifi_mgmt.h:1677
int(* pmksa_flush)(const struct device *dev)
Flush PMKSA cache entries.
Definition wifi_mgmt.h:1726
int(* wps_config)(const struct device *dev, struct wifi_wps_config_params *params)
Start a WPS PBC/PIN connection.
Definition wifi_mgmt.h:1753
int(* set_twt)(const struct device *dev, struct wifi_twt_params *params)
Setup or teardown TWT flow.
Definition wifi_mgmt.h:1582
int(* config_params)(const struct device *dev, struct wifi_config_params *params)
Configure STA parameter.
Definition wifi_mgmt.h:1709
int(* set_power_save)(const struct device *dev, struct wifi_ps_params *params)
Set power save status.
Definition wifi_mgmt.h:1574
int(* ap_enable)(const struct device *dev, struct wifi_connect_req_params *params)
Enable AP mode.
Definition wifi_mgmt.h:1509
int(* set_btwt)(const struct device *dev, struct wifi_twt_params *params)
Setup BTWT flow.
Definition wifi_mgmt.h:1590
int(* set_bgscan)(const struct device *dev, struct wifi_bgscan_params *params)
Configure background scanning.
Definition wifi_mgmt.h:1786
int(* filter)(const struct device *dev, struct wifi_filter_info *filter)
Set or get packet filter settings for monitor and promiscuous modes.
Definition wifi_mgmt.h:1614
int(* iface_status)(const struct device *dev, struct wifi_iface_status *status)
Get interface status.
Definition wifi_mgmt.h:1533
int(* mode)(const struct device *dev, struct wifi_mode_info *mode)
Set or get mode of operation.
Definition wifi_mgmt.h:1622
int(* connect)(const struct device *dev, struct wifi_connect_req_params *params)
Connect to a Wi-Fi network.
Definition wifi_mgmt.h:1493
int(* reset_stats)(const struct device *dev)
Reset Wi-Fi statistics.
Definition wifi_mgmt.h:1549
int(* set_bss_max_idle_period)(const struct device *dev, unsigned short bss_max_idle_period)
Set BSS max idle period.
Definition wifi_mgmt.h:1776
int(* ap_sta_disconnect)(const struct device *dev, const uint8_t *mac)
Disconnect a STA from AP.
Definition wifi_mgmt.h:1525
int(* channel)(const struct device *dev, struct wifi_channel_info *channel)
Set or get current channel of operation.
Definition wifi_mgmt.h:1630
int(* bss_ext_capab)(const struct device *dev, int capab)
Judge ap whether support the capability.
Definition wifi_mgmt.h:1655
Wi-Fi mode setup.
Definition wifi_mgmt.h:1122
enum wifi_mgmt_op oper
Get or set operation.
Definition wifi_mgmt.h:1128
uint8_t mode
Mode setting for a specific mode of operation.
Definition wifi_mgmt.h:1124
uint8_t if_index
Interface index.
Definition wifi_mgmt.h:1126
Wi-Fi power save configuration.
Definition wifi_mgmt.h:1011
struct wifi_ps_params ps_params
Power save configuration.
Definition wifi_mgmt.h:1017
char num_twt_flows
Number of TWT flows.
Definition wifi_mgmt.h:1013
struct wifi_twt_flow_info twt_flows[WIFI_MAX_TWT_FLOWS]
TWT flow details.
Definition wifi_mgmt.h:1015
Wi-Fi power save parameters.
Definition wifi_mgmt.h:827
enum wifi_ps_mode mode
Wi-Fi power save mode.
Definition wifi_mgmt.h:835
enum wifi_config_ps_param_fail_reason fail_reason
Wi-Fi power save fail reason.
Definition wifi_mgmt.h:848
enum wifi_ps_wakeup_mode wakeup_mode
Wi-Fi power save wakeup mode.
Definition wifi_mgmt.h:833
unsigned short listen_interval
Listen interval.
Definition wifi_mgmt.h:831
enum wifi_ps_exit_strategy exit_strategy
Wi-Fi power save exit strategy.
Definition wifi_mgmt.h:850
enum wifi_ps enabled
Power save state.
Definition wifi_mgmt.h:829
unsigned int timeout_ms
Wi-Fi power save timeout.
Definition wifi_mgmt.h:844
enum wifi_ps_param_type type
Wi-Fi power save type.
Definition wifi_mgmt.h:846
Wi-Fi raw scan result.
Definition wifi_mgmt.h:1081
int8_t rssi
RSSI.
Definition wifi_mgmt.h:1083
uint8_t data[CONFIG_WIFI_MGMT_RAW_SCAN_RESULT_LENGTH]
Raw scan data.
Definition wifi_mgmt.h:1089
int frame_length
Frame length.
Definition wifi_mgmt.h:1085
unsigned short frequency
Frequency.
Definition wifi_mgmt.h:1087
Per-channel regulatory attributes.
Definition wifi_mgmt.h:1042
unsigned short center_frequency
Center frequency in MHz.
Definition wifi_mgmt.h:1044
unsigned short dfs
Is a DFS channel.
Definition wifi_mgmt.h:1052
unsigned short supported
Is channel supported or not.
Definition wifi_mgmt.h:1048
unsigned short passive_only
Passive transmissions only.
Definition wifi_mgmt.h:1050
unsigned short max_power
Maximum transmission power (in dBm)
Definition wifi_mgmt.h:1046
Regulatory domain information or configuration.
Definition wifi_mgmt.h:1056
unsigned int num_channels
Number of channels supported.
Definition wifi_mgmt.h:1066
enum wifi_mgmt_op oper
Regulatory domain operation.
Definition wifi_mgmt.h:1058
struct wifi_reg_chan_info * chan_info
Channels information.
Definition wifi_mgmt.h:1068
bool force
Ignore all other regulatory hints over this one, the behavior is implementation specific.
Definition wifi_mgmt.h:1062
uint8_t country_code[WIFI_COUNTRY_CODE_LEN]
Country code: ISO/IEC 3166-1 alpha-2.
Definition wifi_mgmt.h:1064
Wi-Fi scan parameters structure.
Definition wifi_mgmt.h:494
uint16_t max_bss_cnt
Specifies the maximum number of scan results to return.
Definition wifi_mgmt.h:523
uint16_t dwell_time_active
Active scan dwell time (in ms) on a channel.
Definition wifi_mgmt.h:509
enum wifi_scan_type scan_type
Scan type, see enum wifi_scan_type.
Definition wifi_mgmt.h:502
uint8_t bands
Bitmap of bands to be scanned.
Definition wifi_mgmt.h:506
uint16_t dwell_time_passive
Passive scan dwell time (in ms) on a channel.
Definition wifi_mgmt.h:512
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:538
const char * ssids[WIFI_MGMT_SCAN_SSID_FILT_MAX]
Array of SSID strings to scan.
Definition wifi_mgmt.h:515
Wi-Fi scan result, each result is provided to the net_mgmt_event_callback via its info attribute (see...
Definition wifi_mgmt.h:544
uint8_t ssid_length
SSID length.
Definition wifi_mgmt.h:548
uint8_t band
Frequency band.
Definition wifi_mgmt.h:550
uint8_t mac[WIFI_MAC_ADDR_LEN]
BSSID.
Definition wifi_mgmt.h:562
int8_t rssi
RSSI.
Definition wifi_mgmt.h:560
uint8_t mac_length
BSSID length.
Definition wifi_mgmt.h:564
uint8_t ssid[WIFI_SSID_MAX_LEN+1]
SSID.
Definition wifi_mgmt.h:546
enum wifi_wpa3_enterprise_type wpa3_ent_type
WPA3 enterprise type.
Definition wifi_mgmt.h:556
enum wifi_mfp_options mfp
MFP options.
Definition wifi_mgmt.h:558
uint8_t channel
Channel.
Definition wifi_mgmt.h:552
enum wifi_security_type security
Security type.
Definition wifi_mgmt.h:554
Generic Wi-Fi status for commands and events.
Definition wifi_mgmt.h:777
enum wifi_ap_status ap_status
Access point status.
Definition wifi_mgmt.h:786
enum wifi_conn_status conn_status
Connection status.
Definition wifi_mgmt.h:782
enum wifi_disconn_reason disconn_reason
Disconnection reason status.
Definition wifi_mgmt.h:784
int status
Status value.
Definition wifi_mgmt.h:780
Wi-Fi TWT flow information.
Definition wifi_mgmt.h:947
uint8_t dialog_token
Dialog token, used to map requests to responses.
Definition wifi_mgmt.h:951
enum wifi_twt_negotiation_type negotiation_type
TWT negotiation type, see enum wifi_twt_negotiation_type.
Definition wifi_mgmt.h:955
uint32_t twt_wake_ahead_duration
Wake ahead duration.
Definition wifi_mgmt.h:967
bool trigger
Trigger enabled or disabled.
Definition wifi_mgmt.h:959
bool responder
Requestor or responder.
Definition wifi_mgmt.h:957
uint8_t flow_id
Flow ID, used to map setup with teardown.
Definition wifi_mgmt.h:953
uint64_t twt_interval
Interval = Wake up time + Sleeping time.
Definition wifi_mgmt.h:949
uint32_t twt_wake_interval
Wake up time.
Definition wifi_mgmt.h:965
bool implicit
Implicit or explicit.
Definition wifi_mgmt.h:961
bool announce
Announced or unannounced.
Definition wifi_mgmt.h:963
Wi-Fi TWT parameters.
Definition wifi_mgmt.h:868
bool announce
Announced or unannounced.
Definition wifi_mgmt.h:895
bool teardown_all
Teardown all flows.
Definition wifi_mgmt.h:927
enum wifi_twt_setup_cmd setup_cmd
TWT setup command, see enum wifi_twt_setup_cmd.
Definition wifi_mgmt.h:874
uint16_t btwt_offset
Broadcast TWT offset.
Definition wifi_mgmt.h:916
bool trigger
Trigger enabled or disabled.
Definition wifi_mgmt.h:891
enum wifi_twt_negotiation_type negotiation_type
TWT negotiation type, see enum wifi_twt_negotiation_type.
Definition wifi_mgmt.h:872
enum wifi_twt_operation operation
TWT operation, see enum wifi_twt_operation.
Definition wifi_mgmt.h:870
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:903
enum wifi_twt_fail_reason fail_reason
TWT fail reason, see enum wifi_twt_fail_reason.
Definition wifi_mgmt.h:931
struct wifi_twt_params::@302311362167322044106272253111230157111235232263::@053165077055023247316045052326043107125356150312 btwt
Setup specific parameters.
uint32_t twt_wake_interval
Wake up time.
Definition wifi_mgmt.h:897
uint8_t btwt_li
In multiple of 4 beacon interval.
Definition wifi_mgmt.h:918
enum wifi_twt_setup_resp_status resp_status
TWT setup response status, see enum wifi_twt_setup_resp_status.
Definition wifi_mgmt.h:876
bool implicit
Implicit or explicit.
Definition wifi_mgmt.h:893
uint8_t flow_id
Flow ID, used to map setup with teardown.
Definition wifi_mgmt.h:882
enum wifi_twt_teardown_status teardown_status
TWT teardown cmd status, see enum wifi_twt_teardown_status.
Definition wifi_mgmt.h:878
uint8_t btwt_sta_wait
Broadcast TWT station wait time.
Definition wifi_mgmt.h:914
struct wifi_btwt_params btwt_set_cfg[5]
Broadcast TWT agreement sets.
Definition wifi_mgmt.h:922
uint8_t twt_exponent
TWT exponent.
Definition wifi_mgmt.h:907
uint16_t twt_mantissa
TWT Mantissa Range: [0-sizeof(UINT16)].
Definition wifi_mgmt.h:909
struct wifi_twt_params::@302311362167322044106272253111230157111235232263::@352270327013076240220216032274341232230206256214 teardown
Teardown specific parameters.
uint64_t twt_interval
Interval = Wake up time + Sleeping time.
Definition wifi_mgmt.h:887
bool twt_info_disable
TWT info enabled or disable.
Definition wifi_mgmt.h:905
uint8_t dialog_token
Dialog token, used to map requests to responses.
Definition wifi_mgmt.h:880
bool responder
Requestor or responder.
Definition wifi_mgmt.h:889
struct wifi_twt_params::@302311362167322044106272253111230157111235232263::@007355023165260313375314073015252271352275036053 setup
Setup specific parameters.
uint8_t btwt_count
Broadcast TWT agreement count.
Definition wifi_mgmt.h:920
Wi-Fi version.
Definition wifi_mgmt.h:472
const char * fw_version
Firmware version.
Definition wifi_mgmt.h:476
const char * drv_version
Driver version.
Definition wifi_mgmt.h:474
Wi-Fi wps setup.
Definition wifi_mgmt.h:1393
char pin[8+1]
pin value
Definition wifi_mgmt.h:1397
enum wifi_wps_op oper
wps operation
Definition wifi_mgmt.h:1395
IEEE 802.11 protocol and general Wi-Fi definitions.