Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
wifi.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018 Texas Instruments, Incorporated
3 * Copyright (c) 2023 Nordic Semiconductor ASA
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 */
7
22#ifndef ZEPHYR_INCLUDE_NET_WIFI_H_
23#define ZEPHYR_INCLUDE_NET_WIFI_H_
24
25#include <zephyr/sys/util.h> /* for ARRAY_SIZE */
26
28#define WIFI_COUNTRY_CODE_LEN 2
29
32#define WIFI_LISTEN_INTERVAL_MIN 0
33#define WIFI_LISTEN_INTERVAL_MAX 65535
34
37#ifdef __cplusplus
38extern "C" {
39#endif
40
94
110
125
127 __WIFI_WPA3_ENTERPRISE_AFTER_LAST,
128 WIFI_WPA3_ENTERPRISE_MAX = __WIFI_WPA3_ENTERPRISE_AFTER_LAST - 1,
129 WIFI_WPA3_ENTERPRISE_UNKNOWN
131};
132
141
151
167
170 unsigned int capa;
172 char *name;
173};
174
189
202
204const char *wifi_security_txt(enum wifi_security_type security);
205
208
217
219 __WIFI_MFP_AFTER_LAST,
220 WIFI_MFP_MAX = __WIFI_MFP_AFTER_LAST - 1,
221 WIFI_MFP_UNKNOWN
223};
224
226const char *wifi_mfp_txt(enum wifi_mfp_options mfp);
227
238
240 __WIFI_FREQ_BAND_AFTER_LAST,
242 WIFI_FREQ_BAND_MAX = __WIFI_FREQ_BAND_AFTER_LAST - 1,
246
248const char *wifi_band_txt(enum wifi_frequency_bands band);
249
268
269const char *const wifi_bandwidth_txt(enum wifi_frequency_bandwidths bandwidth);
270
272#define WIFI_SSID_MAX_LEN 32
274#define WIFI_PSK_MIN_LEN 8
276#define WIFI_PSK_MAX_LEN 64
278#define WIFI_SAE_PSWD_MAX_LEN 128
280#define WIFI_MAC_ADDR_LEN 6
282#define WIFI_ENT_IDENTITY_MAX_LEN 64
284#define WIFI_ENT_PSWD_MAX_LEN 128
285
287#define WIFI_CHANNEL_MIN 1
289#define WIFI_CHANNEL_MAX 233
291#define WIFI_CHANNEL_ANY 255
292
325
326/* We rely on the strict order of the enum values, so, let's check it */
336
337
340
358
360 __WIFI_MODE_AFTER_LAST,
361 WIFI_MODE_MAX = __WIFI_MODE_AFTER_LAST - 1,
362 WIFI_MODE_UNKNOWN
364};
365
367const char *wifi_mode_txt(enum wifi_iface_mode mode);
368
392
394 __WIFI_LINK_MODE_AFTER_LAST,
395 WIFI_LINK_MODE_MAX = __WIFI_LINK_MODE_AFTER_LAST - 1,
396 WIFI_LINK_MODE_UNKNOWN
398};
399
401const char *wifi_link_mode_txt(enum wifi_link_mode link_mode);
402
410
418
420const char *wifi_ps_txt(enum wifi_ps ps_name);
421
426 /* This has to be configured before connecting to the AP,
427 * as support for ADDTS action frames is not available.
428 */
431};
432
434const char *wifi_ps_mode_txt(enum wifi_ps_mode ps_mode);
435
437#define WIFI_INTERFACE_INDEX_MIN 1
439#define WIFI_INTERFACE_INDEX_MAX 255
440
456
468
476
478const char *wifi_twt_operation_txt(enum wifi_twt_operation twt_operation);
479
489
492
512
514const char *wifi_twt_setup_cmd_txt(enum wifi_twt_setup_cmd twt_setup);
515
523
549
557
559static const char * const wifi_twt_err_code_tbl[] = {
560 [WIFI_TWT_FAIL_UNSPECIFIED] = "Unspecified",
561 [WIFI_TWT_FAIL_CMD_EXEC_FAIL] = "Command Execution failed",
563 "Operation not supported",
565 "Unable to get iface status",
567 "Device not connected",
568 [WIFI_TWT_FAIL_PEER_NOT_HE_CAPAB] = "Peer not HE capable",
569 [WIFI_TWT_FAIL_PEER_NOT_TWT_CAPAB] = "Peer not TWT capable",
571 "Operation already in progress",
573 "Invalid negotiated flow id",
575 "IP address not assigned",
577 "Flow already exists",
578};
582static inline const char *wifi_twt_get_err_code_str(int16_t err_no)
583{
584 if ((err_no) < (int16_t)ARRAY_SIZE(wifi_twt_err_code_tbl)) {
585 return wifi_twt_err_code_tbl[err_no];
586 }
587
588 return "<unknown>";
589}
590
606
614
616const char *wifi_ps_wakeup_mode_txt(enum wifi_ps_wakeup_mode ps_wakeup_mode);
617
626
628 WIFI_PS_EXIT_LAST,
629 WIFI_PS_EXIT_MAX = WIFI_PS_EXIT_LAST - 1,
631};
632
634const char *wifi_ps_exit_strategy_txt(enum wifi_ps_exit_strategy ps_exit_strategy);
635
655
657static const char * const wifi_ps_param_config_err_code_tbl[] = {
658 [WIFI_PS_PARAM_FAIL_UNSPECIFIED] = "Unspecified",
659 [WIFI_PS_PARAM_FAIL_CMD_EXEC_FAIL] = "Command Execution failed",
661 "Operation not supported",
663 "Unable to get iface status",
665 "Cannot set parameters while device not connected",
667 "Cannot set parameters while device connected",
669 "Parameter out of range",
670};
673#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_WNM
677enum wifi_btm_query_reason {
679 WIFI_BTM_QUERY_REASON_UNSPECIFIED = 0,
681 WIFI_BTM_QUERY_REASON_LOW_RSSI = 16,
683 WIFI_BTM_QUERY_REASON_LEAVING_ESS = 20,
684};
685#endif
686
688static inline const char *wifi_ps_get_config_err_code_str(int16_t err_no)
689{
690 if ((err_no) < (int16_t)ARRAY_SIZE(wifi_ps_param_config_err_code_tbl)) {
691 return wifi_ps_param_config_err_code_tbl[err_no];
692 }
693
694 return "<unknown>";
695}
696
710
711#ifdef __cplusplus
712}
713#endif
714
718#endif /* ZEPHYR_INCLUDE_NET_WIFI_H_ */
#define BIT(n)
Unsigned integer with bit position n set (signed in assembly language).
Definition util_macro.h:44
#define ARRAY_SIZE(array)
Number of elements in the given array.
Definition util.h:120
const char * wifi_ps_exit_strategy_txt(enum wifi_ps_exit_strategy ps_exit_strategy)
Helper function to get user-friendly ps exit strategy name.
const char * wifi_state_txt(enum wifi_iface_state state)
Helper function to get user-friendly interface state name.
const char * wifi_link_mode_txt(enum wifi_link_mode link_mode)
Helper function to get user-friendly link mode name.
wifi_ps
Wi-Fi power save states.
Definition wifi.h:412
wifi_frequency_bands
IEEE 802.11 operational frequency bands (not exhaustive).
Definition wifi.h:231
wifi_mfp_options
IEEE 802.11w - Management frame protection.
Definition wifi.h:210
wifi_eap_tls_cipher_type
Definition wifi.h:133
const char * wifi_mfp_txt(enum wifi_mfp_options mfp)
Helper function to get user-friendly MFP name.
wifi_ps_exit_strategy
Wi-Fi power save exit strategy.
Definition wifi.h:621
wifi_twt_setup_cmd
Wi-Fi Target Wake Time (TWT) setup commands.
Definition wifi.h:494
wifi_frequency_bandwidths
IEEE 802.11 operational frequency bandwidths (not exhaustive).
Definition wifi.h:253
const char * wifi_band_txt(enum wifi_frequency_bands band)
Helper function to get user-friendly frequency band name.
wifi_wpa3_enterprise_type
WPA3 Enterprise security types.
Definition wifi.h:116
wifi_operational_modes
Wifi operational mode.
Definition wifi.h:442
wifi_twt_setup_resp_status
Wi-Fi Target Wake Time (TWT) negotiation status.
Definition wifi.h:517
wifi_iface_mode
Wi-Fi interface modes.
Definition wifi.h:345
wifi_twt_negotiation_type
Wi-Fi Target Wake Time (TWT) negotiation types.
Definition wifi.h:481
const char * wifi_twt_negotiation_type_txt(enum wifi_twt_negotiation_type twt_negotiation)
Helper function to get user-friendly twt negotiation type name.
const char * wifi_ps_wakeup_mode_txt(enum wifi_ps_wakeup_mode ps_wakeup_mode)
Helper function to get user-friendly ps wakeup mode name.
wifi_cipher_type
Group cipher and pairwise cipher types.
Definition wifi.h:143
wifi_ap_config_param
Wi-Fi AP mode configuration parameter.
Definition wifi.h:698
static const char * wifi_ps_get_config_err_code_str(int16_t err_no)
Helper function to get user-friendly power save error code name.
Definition wifi.h:688
wifi_eap_type
EPA method Types.
Definition wifi.h:96
wifi_twt_fail_reason
Target Wake Time (TWT) error codes.
Definition wifi.h:525
wifi_iface_state
Wi-Fi interface states.
Definition wifi.h:297
const char * wifi_security_txt(enum wifi_security_type security)
Helper function to get user-friendly security type name.
wifi_filter
Mode filter settings.
Definition wifi.h:458
static const char * wifi_twt_get_err_code_str(int16_t err_no)
Helper function to get user-friendly TWT error code name.
Definition wifi.h:582
wifi_link_mode
Wi-Fi link operating modes.
Definition wifi.h:373
wifi_ps_param_type
Wi-Fi power save parameters.
Definition wifi.h:592
wifi_ps_wakeup_mode
Wi-Fi power save modes.
Definition wifi.h:608
wifi_twt_operation
Wi-Fi Target Wake Time (TWT) operations.
Definition wifi.h:470
wifi_scan_type
Wi-Fi scanning types.
Definition wifi.h:404
wifi_twt_teardown_status
Wi-Fi Target Wake Time (TWT) teradown status.
Definition wifi.h:551
const char * wifi_mode_txt(enum wifi_iface_mode mode)
Helper function to get user-friendly interface mode name.
wifi_config_ps_param_fail_reason
Wi-Fi power save error codes.
Definition wifi.h:637
const char * wifi_twt_operation_txt(enum wifi_twt_operation twt_operation)
Helper function to get user-friendly twt operation name.
const char * wifi_ps_mode_txt(enum wifi_ps_mode ps_mode)
Helper function to get user-friendly ps mode name.
wifi_security_type
IEEE 802.11 security types.
Definition wifi.h:42
const char * wifi_twt_setup_cmd_txt(enum wifi_twt_setup_cmd twt_setup)
Helper function to get user-friendly twt setup cmd name.
const char *const wifi_bandwidth_txt(enum wifi_frequency_bandwidths bandwidth)
const char * wifi_wpa3_enterprise_txt(enum wifi_wpa3_enterprise_type wpa3_ent)
Helper function to get user-friendly wpa3 enterprise security type name.
wifi_group_mgmt_cipher_type
group mgmt cipher types.
Definition wifi.h:153
const char * wifi_ps_txt(enum wifi_ps ps_name)
Helper function to get user-friendly ps name.
wifi_ps_mode
Wi-Fi power save modes.
Definition wifi.h:423
@ WIFI_PS_ENABLED
Power save enabled.
Definition wifi.h:416
@ WIFI_PS_DISABLED
Power save disabled.
Definition wifi.h:414
@ WIFI_FREQ_BAND_6_GHZ
6 GHz band (Wi-Fi 6E, also extends to 7GHz).
Definition wifi.h:237
@ WIFI_FREQ_BAND_2_4_GHZ
2.4 GHz band.
Definition wifi.h:233
@ WIFI_FREQ_BAND_UNKNOWN
Invalid frequency band.
Definition wifi.h:244
@ WIFI_FREQ_BAND_5_GHZ
5 GHz band.
Definition wifi.h:235
@ WIFI_FREQ_BAND_MAX
Highest frequency band available.
Definition wifi.h:242
@ WIFI_MFP_DISABLE
MFP disabled.
Definition wifi.h:212
@ WIFI_MFP_OPTIONAL
MFP optional.
Definition wifi.h:214
@ WIFI_MFP_REQUIRED
MFP required.
Definition wifi.h:216
@ WIFI_EAP_TLS_NONE
EAP TLS with NONE.
Definition wifi.h:135
@ WIFI_EAP_TLS_RSA_3K
EAP TLS with ECDH & RSA with > 3K.
Definition wifi.h:139
@ WIFI_EAP_TLS_ECC_P384
EAP TLS with ECDH & ECDSA with p384.
Definition wifi.h:137
@ WIFI_PS_EXIT_EVERY_TIM
QoS NULL frame based.
Definition wifi.h:625
@ WIFI_PS_EXIT_CUSTOM_ALGO
PS-Poll frame based.
Definition wifi.h:623
@ WIFI_TWT_SETUP_CMD_DEMAND
TWT setup demand (parameters can not be changed by AP)
Definition wifi.h:500
@ WIFI_TWT_SETUP_CMD_REQUEST
TWT setup request.
Definition wifi.h:496
@ WIFI_TWT_SETUP_CMD_ALTERNATE
TWT setup alternate (alternate parameters suggested by AP)
Definition wifi.h:506
@ WIFI_TWT_SETUP_CMD_GROUPING
TWT setup grouping (grouping of TWT flows)
Definition wifi.h:502
@ WIFI_TWT_SETUP_CMD_DICTATE
TWT setup dictate (parameters dictated by AP)
Definition wifi.h:508
@ WIFI_TWT_SETUP_CMD_SUGGEST
TWT setup suggest (parameters can be changed by AP)
Definition wifi.h:498
@ WIFI_TWT_SETUP_CMD_REJECT
TWT setup reject (parameters rejected by AP)
Definition wifi.h:510
@ WIFI_TWT_SETUP_CMD_ACCEPT
TWT setup accept (parameters accepted by AP)
Definition wifi.h:504
@ WIFI_FREQ_BANDWIDTH_80MHZ
80 MHz.
Definition wifi.h:259
@ WIFI_FREQ_BANDWIDTH_UNKNOWN
Invalid frequency bandwidth.
Definition wifi.h:266
@ WIFI_FREQ_BANDWIDTH_40MHZ
40 MHz.
Definition wifi.h:257
@ WIFI_FREQ_BANDWIDTH_20MHZ
20 MHz.
Definition wifi.h:255
@ WIFI_FREQ_BANDWIDTH_MAX
Highest frequency bandwidth available.
Definition wifi.h:264
@ WIFI_WPA3_ENTERPRISE_SUITEB_192
WPA3 enterprise Suite-B-192 (PMFR + WPA3-Suite-B-192).
Definition wifi.h:122
@ WIFI_WPA3_ENTERPRISE_NA
No WPA3 enterprise, either WPA2 Enterprise or personal mode.
Definition wifi.h:118
@ WIFI_WPA3_ENTERPRISE_SUITEB
WPA3 enterprise Suite-B (PMFR + WPA3-Suite-B).
Definition wifi.h:120
@ WIFI_WPA3_ENTERPRISE_ONLY
WPA3 enterprise only (PMFR + WPA2-ENT disabled).
Definition wifi.h:124
@ WIFI_TX_INJECTION_MODE
TX injection mode setting enable.
Definition wifi.h:448
@ WIFI_STA_MODE
STA mode setting enable.
Definition wifi.h:444
@ WIFI_AP_MODE
AP mode setting enable.
Definition wifi.h:452
@ WIFI_SOFTAP_MODE
Softap mode setting enable.
Definition wifi.h:454
@ WIFI_MONITOR_MODE
Monitor mode setting enable.
Definition wifi.h:446
@ WIFI_PROMISCUOUS_MODE
Promiscuous mode setting enable.
Definition wifi.h:450
@ WIFI_TWT_RESP_RECEIVED
TWT response received for TWT request.
Definition wifi.h:519
@ WIFI_TWT_RESP_NOT_RECEIVED
TWT response not received for TWT request.
Definition wifi.h:521
@ WIFI_MODE_AP
AP mode.
Definition wifi.h:351
@ WIFI_MODE_IBSS
IBSS (ad-hoc) station mode.
Definition wifi.h:349
@ WIFI_MODE_P2P_GO
P2P group owner mode.
Definition wifi.h:353
@ WIFI_MODE_P2P_GROUP_FORMATION
P2P group formation mode.
Definition wifi.h:355
@ WIFI_MODE_INFRA
Infrastructure station mode.
Definition wifi.h:347
@ WIFI_MODE_MESH
802.11s Mesh mode.
Definition wifi.h:357
@ WIFI_TWT_BROADCAST
TWT broadcast negotiation.
Definition wifi.h:485
@ WIFI_TWT_WAKE_TBTT
TWT wake TBTT negotiation.
Definition wifi.h:487
@ WIFI_TWT_INDIVIDUAL
TWT individual negotiation.
Definition wifi.h:483
@ WPA_CAPA_ENC_GCMP_256
256-bit Galois/Counter Mode Protocol.
Definition wifi.h:149
@ WPA_CAPA_ENC_GCMP
128-bit Galois/Counter Mode Protocol.
Definition wifi.h:147
@ WPA_CAPA_ENC_CCMP
AES in counter mode with CBC-MAC (CCMP-128).
Definition wifi.h:145
@ WIFI_AP_CONFIG_PARAM_BANDWIDTH
Used for AP mode configuration parameter bandwidth.
Definition wifi.h:704
@ WIFI_AP_CONFIG_PARAM_MAX_INACTIVITY
Used for AP mode configuration parameter ap_max_inactivity.
Definition wifi.h:700
@ WIFI_AP_CONFIG_PARAM_MAX_NUM_STA
Used for AP mode configuration parameter max_num_sta.
Definition wifi.h:702
@ WIFI_AP_CONFIG_PARAM_VHT_CAPAB
Used for AP mode configuration parameter vht_capab.
Definition wifi.h:708
@ WIFI_AP_CONFIG_PARAM_HT_CAPAB
Used for AP mode configuration parameter ht_capab.
Definition wifi.h:706
@ WIFI_EAP_TYPE_TTLS
EPA TTLS security, refer to rfc5281.
Definition wifi.h:104
@ WIFI_EAP_TYPE_MSCHAPV2
EPA MSCHAPV2 security, refer to draft-kamath-pppext-eap-mschapv2-00.txt.
Definition wifi.h:108
@ WIFI_EAP_TYPE_NONE
No EPA security.
Definition wifi.h:98
@ WIFI_EAP_TYPE_TLS
EPA TLS security, refer to rfc5216.
Definition wifi.h:102
@ WIFI_EAP_TYPE_GTC
EPA GTC security, refer to rfc3748 chapter 5.
Definition wifi.h:100
@ WIFI_EAP_TYPE_PEAP
EPA PEAP security, refer to draft-josefsson-pppext-eap-tls-eap-06.txt.
Definition wifi.h:106
@ WIFI_TWT_FAIL_IP_NOT_ASSIGNED
IP address not assigned or configured.
Definition wifi.h:545
@ WIFI_TWT_FAIL_INVALID_FLOW_ID
Invalid negotiated flow id.
Definition wifi.h:543
@ WIFI_TWT_FAIL_CMD_EXEC_FAIL
Command execution failed.
Definition wifi.h:529
@ WIFI_TWT_FAIL_OPERATION_NOT_SUPPORTED
Operation not supported.
Definition wifi.h:531
@ WIFI_TWT_FAIL_UNABLE_TO_GET_IFACE_STATUS
Unable to get interface status.
Definition wifi.h:533
@ WIFI_TWT_FAIL_PEER_NOT_HE_CAPAB
Peer not HE (802.11ax/Wi-Fi 6) capable.
Definition wifi.h:537
@ WIFI_TWT_FAIL_DEVICE_NOT_CONNECTED
Device not connected to AP.
Definition wifi.h:535
@ WIFI_TWT_FAIL_OPERATION_IN_PROGRESS
A TWT flow is already in progress.
Definition wifi.h:541
@ WIFI_TWT_FAIL_PEER_NOT_TWT_CAPAB
Peer not TWT capable.
Definition wifi.h:539
@ WIFI_TWT_FAIL_UNSPECIFIED
Unspecified error.
Definition wifi.h:527
@ WIFI_TWT_FAIL_FLOW_ALREADY_EXISTS
Flow already exists.
Definition wifi.h:547
@ WIFI_STATE_DISCONNECTED
Interface is disconnected.
Definition wifi.h:299
@ WIFI_STATE_GROUP_HANDSHAKE
Group Key exchange with a network is in progress.
Definition wifi.h:315
@ WIFI_STATE_INTERFACE_DISABLED
Interface is disabled (administratively).
Definition wifi.h:301
@ WIFI_STATE_4WAY_HANDSHAKE
4-way handshake with a network is in progress.
Definition wifi.h:313
@ WIFI_STATE_ASSOCIATED
Association with a network completed.
Definition wifi.h:311
@ WIFI_STATE_SCANNING
Interface is scanning for networks.
Definition wifi.h:305
@ WIFI_STATE_AUTHENTICATING
Authentication with a network is in progress.
Definition wifi.h:307
@ WIFI_STATE_COMPLETED
All authentication completed, ready to pass data.
Definition wifi.h:317
@ WIFI_STATE_ASSOCIATING
Association with a network is in progress.
Definition wifi.h:309
@ WIFI_STATE_INACTIVE
No enabled networks in the configuration.
Definition wifi.h:303
@ WIFI_PACKET_FILTER_MGMT
Support only sniffing of management packets.
Definition wifi.h:462
@ WIFI_PACKET_FILTER_ALL
Support management, data and control packet sniffing.
Definition wifi.h:460
@ WIFI_PACKET_FILTER_DATA
Support only sniffing of data packets.
Definition wifi.h:464
@ WIFI_PACKET_FILTER_CTRL
Support only sniffing of control packets.
Definition wifi.h:466
@ WIFI_6E
802.11ax 6GHz.
Definition wifi.h:389
@ WIFI_5
802.11ac.
Definition wifi.h:385
@ WIFI_0
802.11 (legacy).
Definition wifi.h:375
@ WIFI_7
802.11be.
Definition wifi.h:391
@ WIFI_4
802.11n.
Definition wifi.h:383
@ WIFI_2
802.11a.
Definition wifi.h:379
@ WIFI_6
802.11ax.
Definition wifi.h:387
@ WIFI_1
802.11b.
Definition wifi.h:377
@ WIFI_3
802.11g.
Definition wifi.h:381
@ WIFI_PS_PARAM_LISTEN_INTERVAL
Power save listen interval (units: (short) beacon intervals).
Definition wifi.h:596
@ WIFI_PS_PARAM_STATE
Power save state.
Definition wifi.h:594
@ WIFI_PS_PARAM_EXIT_STRATEGY
Power save exit strategy.
Definition wifi.h:602
@ WIFI_PS_PARAM_WAKEUP_MODE
Power save wakeup mode.
Definition wifi.h:598
@ WIFI_PS_PARAM_MODE
Power save mode.
Definition wifi.h:600
@ WIFI_PS_PARAM_TIMEOUT
Power save timeout.
Definition wifi.h:604
@ WIFI_PS_WAKEUP_MODE_LISTEN_INTERVAL
Listen interval based wakeup.
Definition wifi.h:612
@ WIFI_PS_WAKEUP_MODE_DTIM
DTIM based wakeup.
Definition wifi.h:610
@ WIFI_TWT_SETUP
TWT setup operation.
Definition wifi.h:472
@ WIFI_TWT_TEARDOWN
TWT teardown operation.
Definition wifi.h:474
@ WIFI_SCAN_TYPE_ACTIVE
Active scanning (default).
Definition wifi.h:406
@ WIFI_SCAN_TYPE_PASSIVE
Passive scanning.
Definition wifi.h:408
@ WIFI_TWT_TEARDOWN_SUCCESS
TWT teardown success.
Definition wifi.h:553
@ WIFI_TWT_TEARDOWN_FAILED
TWT teardown failure.
Definition wifi.h:555
@ WIFI_PS_PARAM_FAIL_UNABLE_TO_GET_IFACE_STATUS
Unable to get interface status.
Definition wifi.h:645
@ WIFI_PS_PARAM_FAIL_UNSPECIFIED
Unspecified error.
Definition wifi.h:639
@ WIFI_PS_PARAM_FAIL_CMD_EXEC_FAIL
Command execution failed.
Definition wifi.h:641
@ WIFI_PS_PARAM_FAIL_DEVICE_NOT_CONNECTED
Device not connected to AP.
Definition wifi.h:647
@ WIFI_PS_PARAM_LISTEN_INTERVAL_RANGE_INVALID
Listen interval out of range.
Definition wifi.h:651
@ WIFI_PS_PARAM_FAIL_INVALID_EXIT_STRATEGY
Invalid exit strategy.
Definition wifi.h:653
@ WIFI_PS_PARAM_FAIL_OPERATION_NOT_SUPPORTED
Parameter not supported.
Definition wifi.h:643
@ WIFI_PS_PARAM_FAIL_DEVICE_CONNECTED
Device already connected to AP.
Definition wifi.h:649
@ WIFI_SECURITY_TYPE_SAE
WPA3-SAE security.
Definition wifi.h:50
@ WIFI_SECURITY_TYPE_FT_EAP
FT-EAP security.
Definition wifi.h:84
@ WIFI_SECURITY_TYPE_PSK_SHA256
WPA2-PSK-SHA256 security.
Definition wifi.h:48
@ WIFI_SECURITY_TYPE_EAP_PEAP_GTC
EAP PEAP GTC security - Enterprise.
Definition wifi.h:74
@ WIFI_SECURITY_TYPE_PSK
WPA2-PSK security.
Definition wifi.h:46
@ WIFI_SECURITY_TYPE_SAE_H2E
WPA3-SAE security with hash-to-element.
Definition wifi.h:54
@ WIFI_SECURITY_TYPE_WPA_AUTO_PERSONAL
WPA/WPA2/WPA3 PSK security.
Definition wifi.h:68
@ WIFI_SECURITY_TYPE_WAPI
GB 15629.11-2003 WAPI security.
Definition wifi.h:58
@ WIFI_SECURITY_TYPE_WEP
WEP security.
Definition wifi.h:64
@ WIFI_SECURITY_TYPE_EAP_TTLS_MSCHAPV2
EAP TTLS MSCHAPV2 security - Enterprise.
Definition wifi.h:76
@ WIFI_SECURITY_TYPE_NONE
No security.
Definition wifi.h:44
@ WIFI_SECURITY_TYPE_FT_PSK
FT-PSK security.
Definition wifi.h:80
@ WIFI_SECURITY_TYPE_SAE_AUTO
WPA3-SAE security with both hunting-and-pecking loop and hash-to-element enabled.
Definition wifi.h:56
@ WIFI_SECURITY_TYPE_WPA_PSK
WPA-PSK security.
Definition wifi.h:66
@ WIFI_SECURITY_TYPE_FT_EAP_SHA384
FT-EAP-SHA384 security.
Definition wifi.h:86
@ WIFI_SECURITY_TYPE_DPP
DPP security.
Definition wifi.h:70
@ WIFI_SECURITY_TYPE_EAP_PEAP_TLS
EAP PEAP security - Enterprise.
Definition wifi.h:78
@ WIFI_SECURITY_TYPE_EAP_TLS
EAP TLS security - Enterprise.
Definition wifi.h:62
@ WIFI_SECURITY_TYPE_EAP_PEAP_MSCHAPV2
EAP PEAP MSCHAPV2 security - Enterprise.
Definition wifi.h:72
@ WIFI_SECURITY_TYPE_SAE_HNP
WPA3-SAE security with hunting-and-pecking loop.
Definition wifi.h:52
@ WIFI_SECURITY_TYPE_FT_SAE
FT-SAE security.
Definition wifi.h:82
@ WIFI_SECURITY_TYPE_EAP
EAP security - Enterprise.
Definition wifi.h:60
@ WPA_CAPA_ENC_BIP
128-bit Broadcast/Multicast Integrity Protocol Cipher-based Message Authentication Code .
Definition wifi.h:157
@ WPA_CAPA_ENC_BIP_GMAC_128
128-bit Broadcast/Multicast Integrity Protocol Galois Message Authentication Code .
Definition wifi.h:161
@ WPA_CAPA_ENC_BIP_GMAC_256
256-bit Broadcast/Multicast Integrity Protocol Galois Message Authentication Code .
Definition wifi.h:165
@ WIFI_PS_MODE_WMM
WMM power save mode.
Definition wifi.h:430
@ WIFI_PS_MODE_LEGACY
Legacy power save mode.
Definition wifi.h:425
state
Definition parser_state.h:29
__INT16_TYPE__ int16_t
Definition stdint.h:73
Definition wifi.h:168
unsigned int capa
Cipher capability.
Definition wifi.h:170
char * name
Cipher name string.
Definition wifi.h:172
Definition wifi.h:175
char * openssl_ciphers
OpenSSL cipher string.
Definition wifi.h:179
char * key_mgmt
Key management type string.
Definition wifi.h:177
char * pairwise_cipher
Pairwise_cipher cipher string.
Definition wifi.h:183
char * group_cipher
Group cipher cipher string.
Definition wifi.h:181
char * group_mgmt_cipher
Group management cipher string.
Definition wifi.h:185
char * tls_flags
Used to confiure TLS features.
Definition wifi.h:187
Definition wifi.h:190
enum wifi_security_type type
Security type.
Definition wifi.h:192
char * method
EAP method string.
Definition wifi.h:198
enum wifi_eap_type eap_type_phase2
EAP method type of phase2.
Definition wifi.h:196
enum wifi_eap_type eap_type_phase1
EAP method type of phase1.
Definition wifi.h:194
char * phase2
Phase2 setting string.
Definition wifi.h:200
Misc utilities.