14#ifndef ZEPHYR_INCLUDE_NET_WIFI_MGMT_H_
15#define ZEPHYR_INCLUDE_NET_WIFI_MGMT_H_
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)
42#ifdef CONFIG_WIFI_MGMT_SCAN_SSID_FILT_MAX
43#define WIFI_MGMT_SCAN_SSID_FILT_MAX CONFIG_WIFI_MGMT_SCAN_SSID_FILT_MAX
45#define WIFI_MGMT_SCAN_SSID_FILT_MAX 1
48#ifdef CONFIG_WIFI_MGMT_SCAN_CHAN_MAX_MANUAL
49#define WIFI_MGMT_SCAN_CHAN_MAX_MANUAL CONFIG_WIFI_MGMT_SCAN_CHAN_MAX_MANUAL
51#define WIFI_MGMT_SCAN_CHAN_MAX_MANUAL 1
54#ifdef CONFIG_WIFI_ENT_IDENTITY_MAX_USERS
55#define WIFI_ENT_IDENTITY_MAX_USERS CONFIG_WIFI_ENT_IDENTITY_MAX_USERS
57#define WIFI_ENT_IDENTITY_MAX_USERS 1
60#define WIFI_MGMT_BAND_STR_SIZE_MAX 8
61#define WIFI_MGMT_SCAN_MAX_BSS_CNT 65535
63#define WIFI_MGMT_SKIP_INACTIVITY_POLL IS_ENABLED(CONFIG_WIFI_MGMT_AP_STA_SKIP_INACTIVITY_POLL)
126#ifdef CONFIG_WIFI_CREDENTIALS_CONNECT_STORED
128 NET_REQUEST_WIFI_CMD_CONNECT_STORED,
141 NET_REQUEST_WIFI_CMD_MAX
146#define NET_REQUEST_WIFI_SCAN \
147 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_SCAN)
152#define NET_REQUEST_WIFI_CONNECT \
153 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_CONNECT)
158#define NET_REQUEST_WIFI_DISCONNECT \
159 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_DISCONNECT)
164#define NET_REQUEST_WIFI_AP_ENABLE \
165 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_AP_ENABLE)
170#define NET_REQUEST_WIFI_AP_DISABLE \
171 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_AP_DISABLE)
176#define NET_REQUEST_WIFI_AP_RTS_THRESHOLD \
177 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_AP_RTS_THRESHOLD)
182#define NET_REQUEST_WIFI_IFACE_STATUS \
183 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_IFACE_STATUS)
187#define NET_REQUEST_WIFI_11K_CONFIG \
188 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_11K_CONFIG)
192#define NET_REQUEST_WIFI_11K_NEIGHBOR_REQUEST \
193 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_11K_NEIGHBOR_REQUEST)
198#define NET_REQUEST_WIFI_PS \
199 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_PS)
204#define NET_REQUEST_WIFI_TWT \
205 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_TWT)
209#define NET_REQUEST_WIFI_BTWT \
210 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_BTWT)
215#define NET_REQUEST_WIFI_PS_CONFIG \
216 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_PS_CONFIG)
221#define NET_REQUEST_WIFI_REG_DOMAIN \
222 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_REG_DOMAIN)
227#define NET_REQUEST_WIFI_MODE \
228 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_MODE)
233#define NET_REQUEST_WIFI_PACKET_FILTER \
234 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_PACKET_FILTER)
239#define NET_REQUEST_WIFI_CHANNEL \
240 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_CHANNEL)
245#define NET_REQUEST_WIFI_AP_STA_DISCONNECT \
246 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_AP_STA_DISCONNECT)
251#define NET_REQUEST_WIFI_VERSION \
252 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_VERSION)
257#define NET_REQUEST_WIFI_CONN_PARAMS \
258 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_CONN_PARAMS)
263#define NET_REQUEST_WIFI_RTS_THRESHOLD \
264 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_RTS_THRESHOLD)
269#define NET_REQUEST_WIFI_AP_CONFIG_PARAM \
270 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_AP_CONFIG_PARAM)
275#define NET_REQUEST_WIFI_CONFIG_PARAM \
276 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_CONFIG_PARAM)
280#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP
282#define NET_REQUEST_WIFI_DPP \
283 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_DPP)
289#define NET_REQUEST_WIFI_BTM_QUERY (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_BTM_QUERY)
294#define NET_REQUEST_WIFI_PMKSA_FLUSH \
295 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_PMKSA_FLUSH)
300#define NET_REQUEST_WIFI_ENTERPRISE_CREDS \
301 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_ENTERPRISE_CREDS)
306#define NET_REQUEST_WIFI_RTS_THRESHOLD_CONFIG \
307 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_RTS_THRESHOLD_CONFIG)
311#define NET_REQUEST_WIFI_WPS_CONFIG (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_WPS_CONFIG)
314#ifdef CONFIG_WIFI_CREDENTIALS_CONNECT_STORED
315#define NET_REQUEST_WIFI_CONNECT_STORED (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_CONNECT_STORED)
320#define NET_REQUEST_WIFI_START_ROAMING \
321 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_START_ROAMING)
325#define NET_REQUEST_WIFI_NEIGHBOR_REP_COMPLETE \
326 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_NEIGHBOR_REP_COMPLETE)
330#define NET_REQUEST_WIFI_BSS_MAX_IDLE_PERIOD \
331 (NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_BSS_MAX_IDLE_PERIOD)
338 NET_EVENT_WIFI_CMD_SCAN_RESULT_VAL,
339 NET_EVENT_WIFI_CMD_SCAN_DONE_VAL,
340 NET_EVENT_WIFI_CMD_CONNECT_RESULT_VAL,
341 NET_EVENT_WIFI_CMD_DISCONNECT_RESULT_VAL,
342 NET_EVENT_WIFI_CMD_IFACE_STATUS_VAL,
343 NET_EVENT_WIFI_CMD_TWT_VAL,
344 NET_EVENT_WIFI_CMD_TWT_SLEEP_STATE_VAL,
345 NET_EVENT_WIFI_CMD_RAW_SCAN_RESULT_VAL,
346 NET_EVENT_WIFI_CMD_DISCONNECT_COMPLETE_VAL,
347 NET_EVENT_WIFI_CMD_SIGNAL_CHANGE_VAL,
348 NET_EVENT_WIFI_CMD_NEIGHBOR_REP_RECEIVED_VAL,
349 NET_EVENT_WIFI_CMD_NEIGHBOR_REP_COMPLETE_VAL,
350 NET_EVENT_WIFI_CMD_AP_ENABLE_RESULT_VAL,
351 NET_EVENT_WIFI_CMD_AP_DISABLE_RESULT_VAL,
352 NET_EVENT_WIFI_CMD_AP_STA_CONNECTED_VAL,
353 NET_EVENT_WIFI_CMD_AP_STA_DISCONNECTED_VAL,
354 NET_EVENT_WIFI_CMD_SUPPLICANT_VAL,
356 NET_EVENT_WIFI_CMD_MAX,
359BUILD_ASSERT(NET_EVENT_WIFI_CMD_MAX <= NET_MGMT_MAX_COMMANDS,
360 "Number of events in net_event_wifi_cmd exceeds the limit");
405#define NET_EVENT_WIFI_SCAN_RESULT \
406 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_SCAN_RESULT)
409#define NET_EVENT_WIFI_SCAN_DONE \
410 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_SCAN_DONE)
413#define NET_EVENT_WIFI_CONNECT_RESULT \
414 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_CONNECT_RESULT)
417#define NET_EVENT_WIFI_DISCONNECT_RESULT \
418 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_DISCONNECT_RESULT)
421#define NET_EVENT_WIFI_IFACE_STATUS \
422 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_IFACE_STATUS)
425#define NET_EVENT_WIFI_TWT \
426 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_TWT)
429#define NET_EVENT_WIFI_TWT_SLEEP_STATE \
430 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_TWT_SLEEP_STATE)
433#define NET_EVENT_WIFI_RAW_SCAN_RESULT \
434 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_RAW_SCAN_RESULT)
437#define NET_EVENT_WIFI_DISCONNECT_COMPLETE \
438 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_DISCONNECT_COMPLETE)
441#define NET_EVENT_WIFI_SIGNAL_CHANGE \
442 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_SIGNAL_CHANGE)
445#define NET_EVENT_WIFI_NEIGHBOR_REP_COMP \
446 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_NEIGHBOR_REP_COMPLETE)
449#define NET_EVENT_WIFI_AP_ENABLE_RESULT \
450 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_AP_ENABLE_RESULT)
453#define NET_EVENT_WIFI_AP_DISABLE_RESULT \
454 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_AP_DISABLE_RESULT)
457#define NET_EVENT_WIFI_AP_STA_CONNECTED \
458 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_AP_STA_CONNECTED)
461#define NET_EVENT_WIFI_AP_STA_DISCONNECTED \
462 (NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_AP_STA_DISCONNECTED)
508 const char *
ssids[WIFI_MGMT_SCAN_SSID_FILT_MAX];
836#define WIFI_BTWT_AGREEMENT_MAX 5
920#define WIFI_MAX_TWT_FLOWS 8
921#define WIFI_MAX_TWT_INTERVAL_US (LONG_MAX - 1)
923#define WIFI_MAX_TWT_WAKE_INTERVAL_US 262144
924#define WIFI_MAX_TWT_WAKE_AHEAD_DURATION_US (LONG_MAX - 1)
925#define WIFI_MAX_TWT_EXPONENT 31
1022#define MAX_REG_CHAN_NUM 42
1062#if defined(CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS) || defined(__DOXYGEN__)
1091union wifi_mgmt_events {
1095#ifdef CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS
1137#define WIFI_AP_STA_MAX_INACTIVITY (LONG_MAX - 1)
1138#define WIFI_AP_IEEE_80211_CAPAB_MAX_LEN 64
1151#if defined(CONFIG_WIFI_NM_HOSTAPD_AP)
1153 char ht_capab[WIFI_AP_IEEE_80211_CAPAB_MAX_LEN + 1];
1155 char vht_capab[WIFI_AP_IEEE_80211_CAPAB_MAX_LEN + 1];
1167#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP
1170#define WIFI_DPP_QRCODE_MAX_LEN 255
1175 WIFI_DPP_OP_INVALID = 0,
1177 WIFI_DPP_CONFIGURATOR_ADD,
1187 WIFI_DPP_BOOTSTRAP_GEN,
1189 WIFI_DPP_BOOTSTRAP_GET_URI,
1191 WIFI_DPP_SET_CONF_PARAM,
1193 WIFI_DPP_SET_WAIT_RESP_TIME,
1199enum wifi_dpp_curves {
1201 WIFI_DPP_CURVES_DEFAULT = 0,
1203 WIFI_DPP_CURVES_P_256,
1205 WIFI_DPP_CURVES_P_384,
1207 WIFI_DPP_CURVES_P_512,
1209 WIFI_DPP_CURVES_BP_256,
1211 WIFI_DPP_CURVES_BP_384,
1213 WIFI_DPP_CURVES_BP_512
1219 WIFI_DPP_ROLE_UNSET = 0,
1221 WIFI_DPP_ROLE_CONFIGURATOR,
1223 WIFI_DPP_ROLE_ENROLLEE,
1225 WIFI_DPP_ROLE_EITHER
1234 WIFI_DPP_CONF_UNSET = 0,
1247enum wifi_dpp_bootstrap_type {
1249 WIFI_DPP_BOOTSTRAP_TYPE_UNSET = 0,
1251 WIFI_DPP_BOOTSTRAP_TYPE_QRCODE,
1253 WIFI_DPP_BOOTSTRAP_TYPE_PKEX,
1255 WIFI_DPP_BOOTSTRAP_TYPE_NFC_URI
1259struct wifi_dpp_configurator_add_params {
1263 int net_access_key_curve;
1267struct wifi_dpp_auth_init_params {
1281struct wifi_dpp_chirp_params {
1289struct wifi_dpp_listen_params {
1297struct wifi_dpp_bootstrap_gen_params {
1311struct wifi_dpp_configurator_set_params {
1323 int net_access_key_curve;
1330struct wifi_dpp_params {
1335 struct wifi_dpp_configurator_add_params configurator_add;
1337 struct wifi_dpp_auth_init_params auth_init;
1339 struct wifi_dpp_chirp_params chirp;
1341 struct wifi_dpp_listen_params
listen;
1343 struct wifi_dpp_bootstrap_gen_params bootstrap_gen;
1345 struct wifi_dpp_configurator_set_params configurator_set;
1349 int dpp_resp_wait_time;
1353 uint8_t dpp_qr_code[WIFI_DPP_QRCODE_MAX_LEN + 1];
1358 char resp[WIFI_DPP_QRCODE_MAX_LEN + 1];
1363#define WIFI_WPS_PIN_MAX_LEN 8
1416#ifdef CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS
1423typedef void (*raw_scan_result_cb_t)(
struct net_if *iface,
int status,
1491#if defined(CONFIG_NET_STATISTICS_WIFI) || defined(__DOXYGEN__)
1667#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP
1675 int (*dpp_dispatch)(
const struct device *dev,
struct wifi_dpp_params *params);
1691#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE
1692 int (*enterprise_creds)(
const struct device *dev,
1734 unsigned short bss_max_idle_period);
1745#if defined(CONFIG_WIFI_USE_NATIVE_NETWORKING) || defined(__DOXYGEN__)
1755#if defined(CONFIG_WIFI_NM_WPA_SUPPLICANT) || defined(__DOXYGEN__)
1761#if defined(CONFIG_WIFI_NM_WPA_SUPPLICANT)
1809#if defined(CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS) || defined(__DOXYGEN__)
1826#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_ROAMING
1833void wifi_mgmt_raise_neighbor_rep_recv_event(
struct net_if *iface,
1834 char *inbuf,
size_t buf_len);
#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:1397
wifi_sap_iface_state
Wi-Fi AP status.
Definition wifi_mgmt.h:1385
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:215
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:146
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:263
#define WIFI_WPS_PIN_MAX_LEN
Definition wifi_mgmt.h:1363
#define NET_REQUEST_WIFI_RTS_THRESHOLD_CONFIG
Request a Wi-Fi RTS threshold configuration.
Definition wifi_mgmt.h:306
#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:221
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:233
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:330
#define NET_REQUEST_WIFI_NEIGHBOR_REP_COMPLETE
Definition wifi_mgmt.h:325
wifi_twt_sleep_state
Wi-Fi TWT sleep states.
Definition wifi_mgmt.h:1055
#define WIFI_BTWT_AGREEMENT_MAX
Definition wifi_mgmt.h:836
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:182
#define NET_REQUEST_WIFI_VERSION
Request a Wi-Fi version.
Definition wifi_mgmt.h:251
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:192
wifi_wps_op
Operation for WPS.
Definition wifi_mgmt.h:1366
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:275
#define NET_REQUEST_WIFI_BTM_QUERY
Request a Wi-Fi BTM query.
Definition wifi_mgmt.h:289
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:164
#define NET_REQUEST_WIFI_WPS_CONFIG
Definition wifi_mgmt.h:311
#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:198
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:320
#define NET_REQUEST_WIFI_PMKSA_FLUSH
Request a Wi-Fi PMKSA cache entries flush.
Definition wifi_mgmt.h:294
#define NET_REQUEST_WIFI_DISCONNECT
Request a Wi-Fi disconnect.
Definition wifi_mgmt.h:158
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:176
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:227
#define NET_REQUEST_WIFI_AP_STA_DISCONNECT
Request a Wi-Fi access point to disconnect a station.
Definition wifi_mgmt.h:245
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:152
wifi_ap_status
Wi-Fi AP mode result codes.
Definition wifi_mgmt.h:740
#define NET_REQUEST_WIFI_TWT
Request a Wi-Fi TWT.
Definition wifi_mgmt.h:204
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:365
#define NET_REQUEST_WIFI_CONN_PARAMS
Request a Wi-Fi connection parameters.
Definition wifi_mgmt.h:257
wifi_disconn_reason
Wi-Fi disconnect reason codes.
Definition wifi_mgmt.h:724
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:1413
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:239
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:187
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:1004
#define NET_REQUEST_WIFI_ENTERPRISE_CREDS
Set Wi-Fi enterprise mode CA/client Cert and key.
Definition wifi_mgmt.h:300
#define NET_REQUEST_WIFI_BTWT
Definition wifi_mgmt.h:209
#define NET_REQUEST_WIFI_AP_CONFIG_PARAM
Request a Wi-Fi AP parameters configuration.
Definition wifi_mgmt.h:269
#define NET_REQUEST_WIFI_AP_DISABLE
Request a Wi-Fi access point disable.
Definition wifi_mgmt.h:170
wifi_ps_mode
Wi-Fi power save modes.
Definition wifi.h:452
@ WIFI_EXT_CAPAB_GLK
Definition wifi_mgmt.h:1399
@ WIFI_EXT_CAPAB_20_40_COEX
Definition wifi_mgmt.h:1398
@ WIFI_EXT_CAPAB_BSS_TRANSITION
Definition wifi_mgmt.h:1402
@ WIFI_EXT_CAPAB_EXT_CHAN_SWITCH
Definition wifi_mgmt.h:1400
@ WIFI_EXT_CAPAB_TIM_BROADCAST
Definition wifi_mgmt.h:1401
@ WIFI_SAP_IFACE_COUNTRY_UPDATE
Definition wifi_mgmt.h:1388
@ WIFI_SAP_IFACE_DISABLED
Definition wifi_mgmt.h:1387
@ WIFI_SAP_IFACE_HT_SCAN
Definition wifi_mgmt.h:1390
@ WIFI_SAP_IFACE_ENABLED
Definition wifi_mgmt.h:1393
@ WIFI_SAP_IFACE_ACS
Definition wifi_mgmt.h:1389
@ WIFI_SAP_IFACE_UNINITIALIZED
Definition wifi_mgmt.h:1386
@ WIFI_SAP_IFACE_NO_IR
Definition wifi_mgmt.h:1392
@ WIFI_SAP_IFACE_DFS
Definition wifi_mgmt.h:1391
@ WIFI_TWT_STATE_SLEEP
TWT sleep state: sleeping.
Definition wifi_mgmt.h:1057
@ WIFI_TWT_STATE_AWAKE
TWT sleep state: awake.
Definition wifi_mgmt.h:1059
@ WIFI_WPS_PBC
WPS pbc.
Definition wifi_mgmt.h:1368
@ WIFI_WPS_PIN_SET
Set WPS pin number.
Definition wifi_mgmt.h:1372
@ WIFI_WPS_PIN_GET
Get WPS pin number.
Definition wifi_mgmt.h:1370
@ 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_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_STATUS_AP_CHANNEL_NOT_ALLOWED
AP mode enable failed - channel not allowed.
Definition wifi_mgmt.h:748
@ WIFI_STATUS_AP_SUCCESS
AP mode enable or disable successful.
Definition wifi_mgmt.h:742
@ WIFI_STATUS_AP_OP_NOT_SUPPORTED
AP mode enable failed - operation not supported.
Definition wifi_mgmt.h:754
@ WIFI_STATUS_AP_OP_NOT_PERMITTED
AP mode enable failed - operation not permitted.
Definition wifi_mgmt.h:756
@ WIFI_STATUS_AP_CHANNEL_NOT_SUPPORTED
AP mode enable failed - channel not supported.
Definition wifi_mgmt.h:746
@ WIFI_STATUS_AP_FAIL
AP mode enable or disable failed - generic failure.
Definition wifi_mgmt.h:744
@ WIFI_STATUS_AP_AUTH_TYPE_NOT_SUPPORTED
AP mode enable failed - authentication type not supported.
Definition wifi_mgmt.h:752
@ WIFI_STATUS_AP_SSID_NOT_ALLOWED
AP mode enable failed - SSID not allowed.
Definition wifi_mgmt.h:750
@ NET_MGMT_CMD
Scan results available.
Definition wifi_mgmt.h:367
@ WIFI_REASON_DISCONN_INACTIVITY
Disconnected due to inactivity.
Definition wifi_mgmt.h:734
@ WIFI_REASON_DISCONN_AP_LEAVING
Disconnected due to AP leaving.
Definition wifi_mgmt.h:732
@ WIFI_REASON_DISCONN_SUCCESS
Success, overload status as reason.
Definition wifi_mgmt.h:726
@ WIFI_REASON_DISCONN_UNSPECIFIED
Unspecified reason.
Definition wifi_mgmt.h:728
@ WIFI_REASON_DISCONN_USER_REQUEST
Disconnected due to user request.
Definition wifi_mgmt.h:730
@ WIFI_MGMT_GET
Get operation.
Definition wifi_mgmt.h:1006
@ WIFI_MGMT_SET
Set operation.
Definition wifi_mgmt.h:1008
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:510
Ethernet L2 API operations.
Definition ethernet.h:518
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:1738
struct ethernet_api wifi_iface
Mandatory to get in first position.
Definition wifi_mgmt.h:1747
const struct wifi_mgmt_ops *const wifi_mgmt_api
Wi-Fi management API.
Definition wifi_mgmt.h:1753
const void * wifi_drv_ops
Wi-Fi supplicant driver API.
Definition wifi_mgmt.h:1757
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:1012
uint8_t ssid[WIFI_SSID_MAX_LEN+1]
SSID.
Definition wifi_mgmt.h:1018
bool enable_11k
11k enable/disable
Definition wifi_mgmt.h:1016
enum wifi_mgmt_op oper
11k command operation
Definition wifi_mgmt.h:1014
Wi-Fi AP configuration parameter.
Definition wifi_mgmt.h:1142
uint32_t max_inactivity
Parameter used for setting maximum inactivity duration for stations.
Definition wifi_mgmt.h:1146
enum wifi_ap_config_param type
Parameter used to identify the different AP parameters.
Definition wifi_mgmt.h:1144
uint32_t max_num_sta
Parameter used for setting maximum number of stations.
Definition wifi_mgmt.h:1148
enum wifi_frequency_bandwidths bandwidth
Parameter used for frequency band.
Definition wifi_mgmt.h:1150
AP mode - connected STA details.
Definition wifi_mgmt.h:1077
enum wifi_link_mode link_mode
Link mode, see enum wifi_link_mode.
Definition wifi_mgmt.h:1079
uint8_t mac[WIFI_MAC_ADDR_LEN]
MAC address.
Definition wifi_mgmt.h:1081
uint8_t mac_length
MAC address length.
Definition wifi_mgmt.h:1083
bool twt_capable
is TWT capable ?
Definition wifi_mgmt.h:1085
Wi-Fi structure to uniquely identify a band-channel pair.
Definition wifi_mgmt.h:475
uint8_t band
Frequency band.
Definition wifi_mgmt.h:477
uint8_t channel
Channel.
Definition wifi_mgmt.h:479
Wi-Fi broadcast TWT parameters.
Definition wifi_mgmt.h:839
uint8_t btwt_nominal_wake
Broadcast TWT range.
Definition wifi_mgmt.h:847
uint16_t btwt_mantissa
Broadcast TWT mantissa.
Definition wifi_mgmt.h:843
uint8_t btwt_exponent
Broadcast TWT exponent.
Definition wifi_mgmt.h:845
uint8_t btwt_id
Broadcast TWT ID.
Definition wifi_mgmt.h:841
Wi-Fi channel setting for monitor and TX-injection modes.
Definition wifi_mgmt.h:1127
uint8_t if_index
Interface index.
Definition wifi_mgmt.h:1131
uint16_t channel
Channel value to set.
Definition wifi_mgmt.h:1129
enum wifi_mgmt_op oper
Get or set operation.
Definition wifi_mgmt.h:1133
Wi-Fi STA configuration parameter.
Definition wifi_mgmt.h:1160
int okc
Parameter used for opportunistic key caching.
Definition wifi_mgmt.h:1164
enum wifi_config_param type
Parameter used to identify the different STA parameters.
Definition wifi_mgmt.h:1162
Wi-Fi connect request parameters.
Definition wifi_mgmt.h:561
const uint8_t * key2_passwd
Password for a secondary private key, if required by the authentication method.
Definition wifi_mgmt.h:614
bool ft_used
Indicates if Fast BSS Transition (802.11r) is used.
Definition wifi_mgmt.h:681
enum wifi_frequency_bandwidths bandwidth
Parameter used for frequency band.
Definition wifi_mgmt.h:718
enum wifi_security_type security
Security type.
Definition wifi_mgmt.h:579
const uint8_t * passwords[WIFI_ENT_IDENTITY_MAX_USERS]
Array of pointers to user password strings for EAP authentication.
Definition wifi_mgmt.h:710
const uint8_t * identities[WIFI_ENT_IDENTITY_MAX_USERS]
Array of pointers to user identity strings for EAP authentication.
Definition wifi_mgmt.h:703
uint8_t aid_length
Length of the anonymous identity, maximum 64 bytes.
Definition wifi_mgmt.h:596
const uint8_t * sae_password
SAE password (same as PSK but with no length restrictions), optional.
Definition wifi_mgmt.h:571
const uint8_t * key_passwd
Private key password for Wi-Fi Enterprise authentication.
Definition wifi_mgmt.h:604
uint8_t eap_id_length
Length of the EAP identity, maximum 64 bytes.
Definition wifi_mgmt.h:655
uint8_t channel
Channel.
Definition wifi_mgmt.h:577
uint8_t ssid_length
SSID length.
Definition wifi_mgmt.h:565
int timeout
Connect timeout in seconds, SYS_FOREVER_MS for no timeout.
Definition wifi_mgmt.h:585
int nusers
Number of EAP user identities provided.
Definition wifi_mgmt.h:689
enum wifi_mfp_options mfp
MFP options.
Definition wifi_mgmt.h:581
uint8_t sae_password_length
SAE password length.
Definition wifi_mgmt.h:573
const uint8_t * anon_id
Anonymous identity used in EAP authentication (Phase 1) for Wi-Fi Enterprise networks.
Definition wifi_mgmt.h:593
int eap_ver
EAP (Extensible Authentication Protocol) version to use.
Definition wifi_mgmt.h:643
uint8_t key_passwd_length
Length of the private key password, maximum 128 bytes.
Definition wifi_mgmt.h:607
uint8_t band
Frequency band.
Definition wifi_mgmt.h:575
uint8_t TLS_cipher
TLS cipher suite to use for EAP-TLS authentication.
Definition wifi_mgmt.h:635
const uint8_t * psk
Pre-shared key.
Definition wifi_mgmt.h:567
uint8_t bssid[WIFI_MAC_ADDR_LEN]
BSSID.
Definition wifi_mgmt.h:583
bool verify_peer_cert
Whether to verify the server's certificate authority (CA) during authentication.
Definition wifi_mgmt.h:674
uint8_t passwds
Number of EAP passwords provided.
Definition wifi_mgmt.h:696
uint8_t psk_length
Pre-shared key length.
Definition wifi_mgmt.h:569
const uint8_t * eap_identity
Identity string for EAP authentication (Phase 2, inner authentication).
Definition wifi_mgmt.h:652
const uint8_t * ssid
SSID.
Definition wifi_mgmt.h:563
enum wifi_wpa3_enterprise_type wpa3_ent_mode
WPA3 Enterprise mode type.
Definition wifi_mgmt.h:627
uint8_t eap_passwd_length
Length of the EAP password, maximum 128 bytes.
Definition wifi_mgmt.h:666
uint8_t key2_passwd_length
Length of the secondary private key password, maximum 128 bytes.
Definition wifi_mgmt.h:617
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:716
const uint8_t * eap_password
Password string for EAP authentication (Phase 2, inner authentication).
Definition wifi_mgmt.h:663
Wi-Fi enterprise mode credentials.
Definition wifi_mgmt.h:954
uint32_t client_key_len
Client key length.
Definition wifi_mgmt.h:966
uint8_t * client_cert2
Client certification of phase2.
Definition wifi_mgmt.h:972
uint32_t client_key2_len
Phase2 Client key length.
Definition wifi_mgmt.h:978
uint32_t client_cert_len
Client certification length.
Definition wifi_mgmt.h:962
uint32_t ca_cert_len
CA certification length.
Definition wifi_mgmt.h:958
uint8_t * client_cert
Client certification.
Definition wifi_mgmt.h:960
uint8_t * client_key
Client key.
Definition wifi_mgmt.h:964
uint32_t server_key_len
Server key length.
Definition wifi_mgmt.h:986
uint8_t * dh_param
Diffie–Hellman parameter.
Definition wifi_mgmt.h:988
uint8_t * client_key2
Client key of phase2.
Definition wifi_mgmt.h:976
uint32_t ca_cert2_len
Phase2 CA certification length.
Definition wifi_mgmt.h:970
uint32_t dh_param_len
Diffie–Hellman parameter length.
Definition wifi_mgmt.h:990
uint8_t * server_key
Server key.
Definition wifi_mgmt.h:984
uint32_t server_cert_len
Server certification length.
Definition wifi_mgmt.h:982
uint8_t * server_cert
Server certification.
Definition wifi_mgmt.h:980
uint8_t * ca_cert2
CA certification of phase2.
Definition wifi_mgmt.h:968
uint32_t client_cert2_len
Phase2 Client certification length.
Definition wifi_mgmt.h:974
uint8_t * ca_cert
CA certification.
Definition wifi_mgmt.h:956
Wi-Fi filter setting for monitor, prmoiscuous, TX-injection modes.
Definition wifi_mgmt.h:1115
uint16_t buffer_size
Filter buffer size.
Definition wifi_mgmt.h:1121
uint8_t filter
Filter setting.
Definition wifi_mgmt.h:1117
enum wifi_mgmt_op oper
Get or set operation.
Definition wifi_mgmt.h:1123
uint8_t if_index
Interface index.
Definition wifi_mgmt.h:1119
Wi-Fi interface status.
Definition wifi_mgmt.h:774
unsigned short beacon_interval
Beacon interval.
Definition wifi_mgmt.h:802
enum wifi_wpa3_enterprise_type wpa3_ent_type
WPA3 enterprise type.
Definition wifi_mgmt.h:792
char ssid[WIFI_SSID_MAX_LEN+1]
SSID.
Definition wifi_mgmt.h:780
float current_phy_tx_rate
The current 802.11 PHY TX data rate (in Mbps)
Definition wifi_mgmt.h:806
int rssi
RSSI.
Definition wifi_mgmt.h:798
char bssid[WIFI_MAC_ADDR_LEN]
BSSID.
Definition wifi_mgmt.h:782
enum wifi_security_type security
Security type, see enum wifi_security_type.
Definition wifi_mgmt.h:794
unsigned int channel
Channel.
Definition wifi_mgmt.h:786
enum wifi_mfp_options mfp
MFP options, see enum wifi_mfp_options.
Definition wifi_mgmt.h:796
unsigned char dtim_period
DTIM period.
Definition wifi_mgmt.h:800
int state
Interface state, see enum wifi_iface_state.
Definition wifi_mgmt.h:776
bool twt_capable
is TWT capable?
Definition wifi_mgmt.h:804
enum wifi_iface_mode iface_mode
Interface mode, see enum wifi_iface_mode.
Definition wifi_mgmt.h:788
unsigned int ssid_len
SSID length.
Definition wifi_mgmt.h:778
enum wifi_frequency_bands band
Frequency band.
Definition wifi_mgmt.h:784
enum wifi_link_mode link_mode
Link mode, see enum wifi_link_mode.
Definition wifi_mgmt.h:790
Wi-Fi management API.
Definition wifi_mgmt.h:1428
int(* reg_domain)(const struct device *dev, struct wifi_reg_domain *reg_domain)
Set or get regulatory domain.
Definition wifi_mgmt.h:1563
int(* send_11k_neighbor_request)(const struct device *dev, struct wifi_11k_params *params)
Send 11k neighbor request.
Definition wifi_mgmt.h:1523
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:1702
int(* ap_config_params)(const struct device *dev, struct wifi_ap_config_params *params)
Configure AP parameter.
Definition wifi_mgmt.h:1658
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:1440
int(* cfg_11k)(const struct device *dev, struct wifi_11k_params *params)
Set or get 11K status.
Definition wifi_mgmt.h:1515
int(* btm_query)(const struct device *dev, uint8_t reason)
Send BTM query.
Definition wifi_mgmt.h:1596
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:1642
int(* start_11r_roaming)(const struct device *dev)
Start 11r roaming.
Definition wifi_mgmt.h:1725
int(* set_rts_threshold)(const struct device *dev, unsigned int rts_threshold)
Set RTS threshold value.
Definition wifi_mgmt.h:1650
int(* get_power_save_config)(const struct device *dev, struct wifi_ps_config *config)
Get power save config.
Definition wifi_mgmt.h:1555
int(* candidate_scan)(const struct device *dev, struct wifi_scan_params *params)
Trigger candidate scan.
Definition wifi_mgmt.h:1718
int(* disconnect)(const struct device *dev)
Disconnect from a Wi-Fi network.
Definition wifi_mgmt.h:1458
int(* ap_disable)(const struct device *dev)
Disable AP mode.
Definition wifi_mgmt.h:1474
int(* get_stats)(const struct device *dev, struct net_stats_wifi *stats)
Get Wi-Fi statistics.
Definition wifi_mgmt.h:1499
bool(* bss_support_neighbor_rep)(const struct device *dev)
Check if ap support Neighbor Report or not.
Definition wifi_mgmt.h:1603
int(* legacy_roam)(const struct device *dev)
Send legacy scan.
Definition wifi_mgmt.h:1620
int(* get_version)(const struct device *dev, struct wifi_version *params)
Get Version of WiFi driver and Firmware.
Definition wifi_mgmt.h:1634
int(* pmksa_flush)(const struct device *dev)
Flush PMKSA cache entries.
Definition wifi_mgmt.h:1683
int(* wps_config)(const struct device *dev, struct wifi_wps_config_params *params)
Start a WPS PBC/PIN connection.
Definition wifi_mgmt.h:1710
int(* set_twt)(const struct device *dev, struct wifi_twt_params *params)
Setup or teardown TWT flow.
Definition wifi_mgmt.h:1539
int(* config_params)(const struct device *dev, struct wifi_config_params *params)
Configure STA parameter.
Definition wifi_mgmt.h:1666
int(* set_power_save)(const struct device *dev, struct wifi_ps_params *params)
Set power save status.
Definition wifi_mgmt.h:1531
int(* ap_enable)(const struct device *dev, struct wifi_connect_req_params *params)
Enable AP mode.
Definition wifi_mgmt.h:1466
int(* set_btwt)(const struct device *dev, struct wifi_twt_params *params)
Setup BTWT flow.
Definition wifi_mgmt.h:1547
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:1571
int(* iface_status)(const struct device *dev, struct wifi_iface_status *status)
Get interface status.
Definition wifi_mgmt.h:1490
int(* mode)(const struct device *dev, struct wifi_mode_info *mode)
Set or get mode of operation.
Definition wifi_mgmt.h:1579
int(* connect)(const struct device *dev, struct wifi_connect_req_params *params)
Connect to a Wi-Fi network.
Definition wifi_mgmt.h:1450
int(* reset_stats)(const struct device *dev)
Reset Wi-Fi statistics.
Definition wifi_mgmt.h:1506
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:1733
int(* ap_sta_disconnect)(const struct device *dev, const uint8_t *mac)
Disconnect a STA from AP.
Definition wifi_mgmt.h:1482
int(* channel)(const struct device *dev, struct wifi_channel_info *channel)
Set or get current channel of operation.
Definition wifi_mgmt.h:1587
int(* bss_ext_capab)(const struct device *dev, int capab)
Judge ap whether support the capability.
Definition wifi_mgmt.h:1612
Wi-Fi mode setup.
Definition wifi_mgmt.h:1105
enum wifi_mgmt_op oper
Get or set operation.
Definition wifi_mgmt.h:1111
uint8_t mode
Mode setting for a specific mode of operation.
Definition wifi_mgmt.h:1107
uint8_t if_index
Interface index.
Definition wifi_mgmt.h:1109
Wi-Fi power save configuration.
Definition wifi_mgmt.h:994
struct wifi_ps_params ps_params
Power save configuration.
Definition wifi_mgmt.h:1000
char num_twt_flows
Number of TWT flows.
Definition wifi_mgmt.h:996
struct wifi_twt_flow_info twt_flows[WIFI_MAX_TWT_FLOWS]
TWT flow details.
Definition wifi_mgmt.h:998
Wi-Fi power save parameters.
Definition wifi_mgmt.h:810
enum wifi_ps_mode mode
Wi-Fi power save mode.
Definition wifi_mgmt.h:818
enum wifi_config_ps_param_fail_reason fail_reason
Wi-Fi power save fail reason.
Definition wifi_mgmt.h:831
enum wifi_ps_wakeup_mode wakeup_mode
Wi-Fi power save wakeup mode.
Definition wifi_mgmt.h:816
unsigned short listen_interval
Listen interval.
Definition wifi_mgmt.h:814
enum wifi_ps_exit_strategy exit_strategy
Wi-Fi power save exit strategy.
Definition wifi_mgmt.h:833
enum wifi_ps enabled
Power save state.
Definition wifi_mgmt.h:812
unsigned int timeout_ms
Wi-Fi power save timeout.
Definition wifi_mgmt.h:827
enum wifi_ps_param_type type
Wi-Fi power save type.
Definition wifi_mgmt.h:829
Wi-Fi raw scan result.
Definition wifi_mgmt.h:1064
int8_t rssi
RSSI.
Definition wifi_mgmt.h:1066
uint8_t data[CONFIG_WIFI_MGMT_RAW_SCAN_RESULT_LENGTH]
Raw scan data.
Definition wifi_mgmt.h:1072
int frame_length
Frame length.
Definition wifi_mgmt.h:1068
unsigned short frequency
Frequency.
Definition wifi_mgmt.h:1070
Per-channel regulatory attributes.
Definition wifi_mgmt.h:1025
unsigned short center_frequency
Center frequency in MHz.
Definition wifi_mgmt.h:1027
unsigned short dfs
Is a DFS channel.
Definition wifi_mgmt.h:1035
unsigned short supported
Is channel supported or not.
Definition wifi_mgmt.h:1031
unsigned short passive_only
Passive transmissions only.
Definition wifi_mgmt.h:1033
unsigned short max_power
Maximum transmission power (in dBm)
Definition wifi_mgmt.h:1029
Regulatory domain information or configuration.
Definition wifi_mgmt.h:1039
unsigned int num_channels
Number of channels supported.
Definition wifi_mgmt.h:1049
enum wifi_mgmt_op oper
Regulatory domain operation.
Definition wifi_mgmt.h:1041
struct wifi_reg_chan_info * chan_info
Channels information.
Definition wifi_mgmt.h:1051
bool force
Ignore all other regulatory hints over this one, the behavior is implementation specific.
Definition wifi_mgmt.h:1045
uint8_t country_code[WIFI_COUNTRY_CODE_LEN]
Country code: ISO/IEC 3166-1 alpha-2.
Definition wifi_mgmt.h:1047
Wi-Fi scan parameters structure.
Definition wifi_mgmt.h:487
uint16_t max_bss_cnt
Specifies the maximum number of scan results to return.
Definition wifi_mgmt.h:516
uint16_t dwell_time_active
Active scan dwell time (in ms) on a channel.
Definition wifi_mgmt.h:502
enum wifi_scan_type scan_type
Scan type, see enum wifi_scan_type.
Definition wifi_mgmt.h:495
uint8_t bands
Bitmap of bands to be scanned.
Definition wifi_mgmt.h:499
uint16_t dwell_time_passive
Passive scan dwell time (in ms) on a channel.
Definition wifi_mgmt.h:505
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:531
const char * ssids[WIFI_MGMT_SCAN_SSID_FILT_MAX]
Array of SSID strings to scan.
Definition wifi_mgmt.h:508
Wi-Fi scan result, each result is provided to the net_mgmt_event_callback via its info attribute (see...
Definition wifi_mgmt.h:537
uint8_t ssid_length
SSID length.
Definition wifi_mgmt.h:541
uint8_t band
Frequency band.
Definition wifi_mgmt.h:543
uint8_t mac[WIFI_MAC_ADDR_LEN]
BSSID.
Definition wifi_mgmt.h:555
int8_t rssi
RSSI.
Definition wifi_mgmt.h:553
uint8_t mac_length
BSSID length.
Definition wifi_mgmt.h:557
uint8_t ssid[WIFI_SSID_MAX_LEN+1]
SSID.
Definition wifi_mgmt.h:539
enum wifi_wpa3_enterprise_type wpa3_ent_type
WPA3 enterprise type.
Definition wifi_mgmt.h:549
enum wifi_mfp_options mfp
MFP options.
Definition wifi_mgmt.h:551
uint8_t channel
Channel.
Definition wifi_mgmt.h:545
enum wifi_security_type security
Security type.
Definition wifi_mgmt.h:547
Generic Wi-Fi status for commands and events.
Definition wifi_mgmt.h:760
enum wifi_ap_status ap_status
Access point status.
Definition wifi_mgmt.h:769
enum wifi_conn_status conn_status
Connection status.
Definition wifi_mgmt.h:765
enum wifi_disconn_reason disconn_reason
Disconnection reason status.
Definition wifi_mgmt.h:767
int status
Status value.
Definition wifi_mgmt.h:763
Wi-Fi TWT flow information.
Definition wifi_mgmt.h:930
uint8_t dialog_token
Dialog token, used to map requests to responses.
Definition wifi_mgmt.h:934
enum wifi_twt_negotiation_type negotiation_type
TWT negotiation type, see enum wifi_twt_negotiation_type.
Definition wifi_mgmt.h:938
uint32_t twt_wake_ahead_duration
Wake ahead duration.
Definition wifi_mgmt.h:950
bool trigger
Trigger enabled or disabled.
Definition wifi_mgmt.h:942
bool responder
Requestor or responder.
Definition wifi_mgmt.h:940
uint8_t flow_id
Flow ID, used to map setup with teardown.
Definition wifi_mgmt.h:936
uint64_t twt_interval
Interval = Wake up time + Sleeping time.
Definition wifi_mgmt.h:932
uint32_t twt_wake_interval
Wake up time.
Definition wifi_mgmt.h:948
bool implicit
Implicit or explicit.
Definition wifi_mgmt.h:944
bool announce
Announced or unannounced.
Definition wifi_mgmt.h:946
Wi-Fi TWT parameters.
Definition wifi_mgmt.h:851
bool announce
Announced or unannounced.
Definition wifi_mgmt.h:878
bool teardown_all
Teardown all flows.
Definition wifi_mgmt.h:910
enum wifi_twt_setup_cmd setup_cmd
TWT setup command, see enum wifi_twt_setup_cmd.
Definition wifi_mgmt.h:857
uint16_t btwt_offset
Broadcast TWT offset.
Definition wifi_mgmt.h:899
bool trigger
Trigger enabled or disabled.
Definition wifi_mgmt.h:874
enum wifi_twt_negotiation_type negotiation_type
TWT negotiation type, see enum wifi_twt_negotiation_type.
Definition wifi_mgmt.h:855
enum wifi_twt_operation operation
TWT operation, see enum wifi_twt_operation.
Definition wifi_mgmt.h:853
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:886
enum wifi_twt_fail_reason fail_reason
TWT fail reason, see enum wifi_twt_fail_reason.
Definition wifi_mgmt.h:914
struct wifi_twt_params::@302311362167322044106272253111230157111235232263::@053165077055023247316045052326043107125356150312 btwt
Setup specific parameters.
uint32_t twt_wake_interval
Wake up time.
Definition wifi_mgmt.h:880
uint8_t btwt_li
In multiple of 4 beacon interval.
Definition wifi_mgmt.h:901
enum wifi_twt_setup_resp_status resp_status
TWT setup response status, see enum wifi_twt_setup_resp_status.
Definition wifi_mgmt.h:859
bool implicit
Implicit or explicit.
Definition wifi_mgmt.h:876
uint8_t flow_id
Flow ID, used to map setup with teardown.
Definition wifi_mgmt.h:865
enum wifi_twt_teardown_status teardown_status
TWT teardown cmd status, see enum wifi_twt_teardown_status.
Definition wifi_mgmt.h:861
uint8_t btwt_sta_wait
Broadcast TWT station wait time.
Definition wifi_mgmt.h:897
struct wifi_btwt_params btwt_set_cfg[5]
Broadcast TWT agreement sets.
Definition wifi_mgmt.h:905
uint8_t twt_exponent
TWT exponent.
Definition wifi_mgmt.h:890
uint16_t twt_mantissa
TWT Mantissa Range: [0-sizeof(UINT16)].
Definition wifi_mgmt.h:892
struct wifi_twt_params::@302311362167322044106272253111230157111235232263::@352270327013076240220216032274341232230206256214 teardown
Teardown specific parameters.
uint64_t twt_interval
Interval = Wake up time + Sleeping time.
Definition wifi_mgmt.h:870
bool twt_info_disable
TWT info enabled or disable.
Definition wifi_mgmt.h:888
uint8_t dialog_token
Dialog token, used to map requests to responses.
Definition wifi_mgmt.h:863
bool responder
Requestor or responder.
Definition wifi_mgmt.h:872
struct wifi_twt_params::@302311362167322044106272253111230157111235232263::@007355023165260313375314073015252271352275036053 setup
Setup specific parameters.
uint8_t btwt_count
Broadcast TWT agreement count.
Definition wifi_mgmt.h:903
Wi-Fi version.
Definition wifi_mgmt.h:465
const char * fw_version
Firmware version.
Definition wifi_mgmt.h:469
const char * drv_version
Driver version.
Definition wifi_mgmt.h:467
Wi-Fi wps setup.
Definition wifi_mgmt.h:1376
char pin[8+1]
pin value
Definition wifi_mgmt.h:1380
enum wifi_wps_op oper
wps operation
Definition wifi_mgmt.h:1378
IEEE 802.11 protocol and general Wi-Fi definitions.