12#ifndef ZEPHYR_INCLUDE_NET_WIFI_MGMT_H_ 
   13#define ZEPHYR_INCLUDE_NET_WIFI_MGMT_H_ 
   31#define _NET_WIFI_LAYER NET_MGMT_LAYER_L2 
   32#define _NET_WIFI_CODE  0x156 
   33#define _NET_WIFI_BASE  (NET_MGMT_IFACE_BIT |                   \ 
   34                         NET_MGMT_LAYER(_NET_WIFI_LAYER) |      \ 
   35                         NET_MGMT_LAYER_CODE(_NET_WIFI_CODE)) 
   36#define _NET_WIFI_EVENT (_NET_WIFI_BASE | NET_MGMT_EVENT_BIT) 
   38#ifdef CONFIG_WIFI_MGMT_SCAN_SSID_FILT_MAX 
   39#define WIFI_MGMT_SCAN_SSID_FILT_MAX CONFIG_WIFI_MGMT_SCAN_SSID_FILT_MAX 
   41#define WIFI_MGMT_SCAN_SSID_FILT_MAX 1 
   44#ifdef CONFIG_WIFI_MGMT_SCAN_CHAN_MAX_MANUAL 
   45#define WIFI_MGMT_SCAN_CHAN_MAX_MANUAL CONFIG_WIFI_MGMT_SCAN_CHAN_MAX_MANUAL 
   47#define WIFI_MGMT_SCAN_CHAN_MAX_MANUAL 1 
   50#define WIFI_MGMT_BAND_STR_SIZE_MAX 8 
   87#define NET_REQUEST_WIFI_SCAN                                   \ 
   88        (_NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_SCAN) 
 
   92#define NET_REQUEST_WIFI_CONNECT                                \ 
   93        (_NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_CONNECT) 
 
   97#define NET_REQUEST_WIFI_DISCONNECT                             \ 
   98        (_NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_DISCONNECT) 
 
  102#define NET_REQUEST_WIFI_AP_ENABLE                              \ 
  103        (_NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_AP_ENABLE) 
 
  107#define NET_REQUEST_WIFI_AP_DISABLE                             \ 
  108        (_NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_AP_DISABLE) 
 
  112#define NET_REQUEST_WIFI_IFACE_STATUS                           \ 
  113        (_NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_IFACE_STATUS) 
 
  117#define NET_REQUEST_WIFI_PS                             \ 
  118        (_NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_PS) 
 
  122#define NET_REQUEST_WIFI_PS_MODE                        \ 
  123        (_NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_PS_MODE) 
 
  127#define NET_REQUEST_WIFI_TWT                    \ 
  128        (_NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_TWT) 
 
  132#define NET_REQUEST_WIFI_PS_CONFIG                              \ 
  133        (_NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_PS_CONFIG) 
 
  136#define NET_REQUEST_WIFI_REG_DOMAIN                             \ 
  137        (_NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_REG_DOMAIN) 
 
  141#define NET_REQUEST_WIFI_PS_TIMEOUT                     \ 
  142        (_NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_PS_TIMEOUT) 
 
  146#define NET_REQUEST_WIFI_MODE                           \ 
  147        (_NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_MODE) 
 
  151#define NET_REQUEST_WIFI_PACKET_FILTER                  \ 
  152        (_NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_PACKET_FILTER) 
 
  156#define NET_REQUEST_WIFI_CHANNEL                        \ 
  157        (_NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_CHANNEL) 
 
  185#define NET_EVENT_WIFI_SCAN_RESULT                              \ 
  186        (_NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_SCAN_RESULT) 
 
  188#define NET_EVENT_WIFI_SCAN_DONE                                \ 
  189        (_NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_SCAN_DONE) 
 
  191#define NET_EVENT_WIFI_CONNECT_RESULT                           \ 
  192        (_NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_CONNECT_RESULT) 
 
  194#define NET_EVENT_WIFI_DISCONNECT_RESULT                        \ 
  195        (_NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_DISCONNECT_RESULT) 
 
  197#define NET_EVENT_WIFI_IFACE_STATUS                                             \ 
  198        (_NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_IFACE_STATUS) 
 
  200#define NET_EVENT_WIFI_TWT                                      \ 
  201        (_NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_TWT) 
 
  203#define NET_EVENT_WIFI_TWT_SLEEP_STATE                          \ 
  204        (_NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_TWT_SLEEP_STATE) 
 
  206#define NET_EVENT_WIFI_RAW_SCAN_RESULT                          \ 
  207        (_NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_RAW_SCAN_RESULT) 
 
  209#define NET_EVENT_WIFI_DISCONNECT_COMPLETE                      \ 
  210        (_NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_DISCONNECT_COMPLETE) 
 
  427#define WIFI_MAX_TWT_FLOWS 8 
  428#define WIFI_MAX_TWT_INTERVAL_US (LONG_MAX - 1) 
  430#define WIFI_MAX_TWT_WAKE_INTERVAL_US 262144 
  490#if defined(CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS) || defined(__DOXYGEN__) 
  509#ifdef CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS 
 
  558#ifdef CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS 
  625#if defined(CONFIG_NET_STATISTICS_WIFI) || defined(__DOXYGEN__) 
 
  701#if defined(CONFIG_WIFI_USE_NATIVE_NETWORKING) || defined(__DOXYGEN__) 
 
  754#if defined(CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS) || defined(__DOXYGEN__) 
#define NET_MGMT_DEFINE_REQUEST_HANDLER(_mgmt_request)
Definition net_mgmt.h:95
 
void wifi_mgmt_raise_connect_result_event(struct net_if *iface, int status)
Wi-Fi management connect result event.
 
wifi_ps
Wi-Fi power save states.
Definition wifi.h:211
 
#define NET_REQUEST_WIFI_PS_CONFIG
Definition wifi_mgmt.h:132
 
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
Definition wifi_mgmt.h:87
 
wifi_frequency_bands
IEEE 802.11 operational frequency bands (not exhaustive).
Definition wifi.h:81
 
wifi_mfp_options
IEEE 802.11w - Management frame protection.
Definition wifi.h:62
 
#define WIFI_MAC_ADDR_LEN
Definition wifi.h:104
 
#define NET_REQUEST_WIFI_REG_DOMAIN
Definition wifi_mgmt.h:136
 
#define NET_REQUEST_WIFI_PACKET_FILTER
Definition wifi_mgmt.h:151
 
wifi_twt_setup_cmd
Wi-Fi Target Wake Time (TWT) setup commands.
Definition wifi.h:292
 
wifi_twt_sleep_state
Wi-Fi TWT sleep states.
Definition wifi_mgmt.h:483
 
void wifi_mgmt_raise_twt_event(struct net_if *iface, struct wifi_twt_params *twt_params)
Wi-Fi management TWT event.
 
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
Definition wifi_mgmt.h:112
 
#define NET_REQUEST_WIFI_PS_MODE
Definition wifi_mgmt.h:122
 
wifi_twt_setup_resp_status
Wi-Fi Target Wake Time (TWT) negotiation status.
Definition wifi.h:315
 
#define WIFI_MGMT_SCAN_CHAN_MAX_MANUAL
Definition wifi_mgmt.h:47
 
wifi_iface_mode
Wi-Fi interface modes.
Definition wifi.h:148
 
#define NET_REQUEST_WIFI_PS_TIMEOUT
Definition wifi_mgmt.h:141
 
#define WIFI_MAX_TWT_FLOWS
Definition wifi_mgmt.h:427
 
#define NET_REQUEST_WIFI_AP_ENABLE
Definition wifi_mgmt.h:102
 
#define WIFI_COUNTRY_CODE_LEN
Definition wifi.h:25
 
#define NET_REQUEST_WIFI_PS
Definition wifi_mgmt.h:117
 
wifi_twt_negotiation_type
Wi-Fi Target Wake Time (TWT) negotiation types.
Definition wifi.h:279
 
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.
 
#define WIFI_MGMT_SCAN_SSID_FILT_MAX
Definition wifi_mgmt.h:41
 
#define NET_REQUEST_WIFI_DISCONNECT
Definition wifi_mgmt.h:97
 
wifi_twt_fail_reason
Target Wake Time (TWT) error codes.
Definition wifi.h:323
 
net_request_wifi_cmd
Wi-Fi management commands.
Definition wifi_mgmt.h:53
 
#define NET_REQUEST_WIFI_MODE
Definition wifi_mgmt.h:146
 
void wifi_mgmt_raise_disconnect_complete_event(struct net_if *iface, int status)
Wi-Fi management disconnect complete event.
 
#define NET_REQUEST_WIFI_CONNECT
Definition wifi_mgmt.h:92
 
#define NET_REQUEST_WIFI_TWT
Definition wifi_mgmt.h:127
 
wifi_link_mode
Wi-Fi link operating modes.
Definition wifi.h:174
 
wifi_ps_param_type
Wi-Fi power save parameters.
Definition wifi.h:382
 
net_event_wifi_cmd
Wi-Fi management events.
Definition wifi_mgmt.h:162
 
wifi_ps_wakeup_mode
Wi-Fi power save modes.
Definition wifi.h:396
 
wifi_twt_operation
Wi-Fi Target Wake Time (TWT) operations.
Definition wifi.h:268
 
wifi_scan_type
Wi-Fi scanning types.
Definition wifi.h:203
 
void(* scan_result_cb_t)(struct net_if *iface, int status, struct wifi_scan_result *entry)
Scan result callback.
Definition wifi_mgmt.h:555
 
#define WIFI_SSID_MAX_LEN
Definition wifi.h:100
 
#define NET_REQUEST_WIFI_CHANNEL
Definition wifi_mgmt.h:156
 
wifi_config_ps_param_fail_reason
Wi-Fi power save error codes.
Definition wifi.h:407
 
wifi_security_type
IEEE 802.11 security types.
Definition wifi.h:35
 
wifi_mgmt_op
Generic get/set operation for any command.
Definition wifi_mgmt.h:465
 
#define NET_REQUEST_WIFI_AP_DISABLE
Definition wifi_mgmt.h:107
 
wifi_ps_mode
Wi-Fi power save modes.
Definition wifi.h:222
 
@ WIFI_TWT_STATE_SLEEP
TWT sleep state: sleeping.
Definition wifi_mgmt.h:485
 
@ WIFI_TWT_STATE_AWAKE
TWT sleep state: awake.
Definition wifi_mgmt.h:487
 
@ NET_REQUEST_WIFI_CMD_TWT
Setup or teardown TWT flow.
Definition wifi_mgmt.h:71
 
@ NET_REQUEST_WIFI_CMD_PACKET_FILTER
Set or get packet filter setting for current mode.
Definition wifi_mgmt.h:81
 
@ NET_REQUEST_WIFI_CMD_AP_ENABLE
Enable AP mode.
Definition wifi_mgmt.h:61
 
@ NET_REQUEST_WIFI_CMD_REG_DOMAIN
Set or get regulatory domain.
Definition wifi_mgmt.h:75
 
@ NET_REQUEST_WIFI_CMD_SCAN
Scan for Wi-Fi networks.
Definition wifi_mgmt.h:55
 
@ NET_REQUEST_WIFI_CMD_IFACE_STATUS
Get interface status.
Definition wifi_mgmt.h:65
 
@ NET_REQUEST_WIFI_CMD_AP_DISABLE
Disable AP mode.
Definition wifi_mgmt.h:63
 
@ NET_REQUEST_WIFI_CMD_CONNECT
Connect to a Wi-Fi network.
Definition wifi_mgmt.h:57
 
@ NET_REQUEST_WIFI_CMD_PS_MODE
Set power save mode.
Definition wifi_mgmt.h:69
 
@ NET_REQUEST_WIFI_CMD_CHANNEL
Set or get Wi-Fi channel for Monitor or TX-Injection mode.
Definition wifi_mgmt.h:83
 
@ NET_REQUEST_WIFI_CMD_MODE
Set or get Mode of operation.
Definition wifi_mgmt.h:79
 
@ NET_REQUEST_WIFI_CMD_PS
Set power save status.
Definition wifi_mgmt.h:67
 
@ NET_REQUEST_WIFI_CMD_DISCONNECT
Disconnect from a Wi-Fi network.
Definition wifi_mgmt.h:59
 
@ NET_REQUEST_WIFI_CMD_PS_CONFIG
Get power save config.
Definition wifi_mgmt.h:73
 
@ NET_REQUEST_WIFI_CMD_MAX
Definition wifi_mgmt.h:84
 
@ NET_REQUEST_WIFI_CMD_PS_TIMEOUT
Set power save timeout.
Definition wifi_mgmt.h:77
 
@ NET_EVENT_WIFI_CMD_SCAN_RESULT
Scan results available.
Definition wifi_mgmt.h:164
 
@ NET_EVENT_WIFI_CMD_DISCONNECT_RESULT
Disconnect result.
Definition wifi_mgmt.h:170
 
@ NET_EVENT_WIFI_CMD_TWT_SLEEP_STATE
TWT sleep status: awake or sleeping, can be used by application to determine if it can send data or n...
Definition wifi_mgmt.h:178
 
@ NET_EVENT_WIFI_CMD_SCAN_DONE
Scan done.
Definition wifi_mgmt.h:166
 
@ NET_EVENT_WIFI_CMD_TWT
TWT events.
Definition wifi_mgmt.h:174
 
@ NET_EVENT_WIFI_CMD_RAW_SCAN_RESULT
Raw scan results available.
Definition wifi_mgmt.h:180
 
@ NET_EVENT_WIFI_CMD_DISCONNECT_COMPLETE
Disconnect complete.
Definition wifi_mgmt.h:182
 
@ NET_EVENT_WIFI_CMD_IFACE_STATUS
Interface status.
Definition wifi_mgmt.h:172
 
@ NET_EVENT_WIFI_CMD_CONNECT_RESULT
Connect result.
Definition wifi_mgmt.h:168
 
@ WIFI_MGMT_GET
Get operation.
Definition wifi_mgmt.h:467
 
@ WIFI_MGMT_SET
Set operation.
Definition wifi_mgmt.h:469
 
Public API for network interface.
 
Network Management API public header.
 
Offloaded network device iface API.
 
__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:381
 
Definition ethernet.h:420
 
Network Interface structure.
Definition net_if.h:595
 
All Wi-Fi specific statistics.
Definition net_stats.h:490
 
Wi-Fi management offload API.
Definition wifi_mgmt.h:694
 
struct ethernet_api wifi_iface
Mandatory to get in first position.
Definition wifi_mgmt.h:703
 
const struct wifi_mgmt_ops *const wifi_mgmt_api
Wi-Fi management API.
Definition wifi_mgmt.h:709
 
Extended net_if_api for offloaded ifaces/network devices, allowing handling of admin up/down state ch...
Definition offloaded_netdev.h:51
 
Wi-Fi structure to uniquely identify a band-channel pair.
Definition wifi_mgmt.h:215
 
uint8_t band
Frequency band.
Definition wifi_mgmt.h:217
 
uint8_t channel
Channel.
Definition wifi_mgmt.h:219
 
Wi-Fi channel setting for monitor and TX-injection modes.
Definition wifi_mgmt.h:538
 
uint8_t if_index
Interface index.
Definition wifi_mgmt.h:542
 
uint16_t channel
Channel value to set.
Definition wifi_mgmt.h:540
 
enum wifi_mgmt_op oper
Get or set operation.
Definition wifi_mgmt.h:544
 
Wi-Fi connect request parameters.
Definition wifi_mgmt.h:299
 
enum wifi_security_type security
Security type.
Definition wifi_mgmt.h:317
 
uint8_t * psk
Pre-shared key.
Definition wifi_mgmt.h:305
 
uint8_t channel
Channel.
Definition wifi_mgmt.h:315
 
uint8_t ssid_length
SSID length.
Definition wifi_mgmt.h:303
 
int timeout
Connect timeout in seconds, SYS_FOREVER_MS for no timeout.
Definition wifi_mgmt.h:321
 
enum wifi_mfp_options mfp
MFP options.
Definition wifi_mgmt.h:319
 
uint8_t sae_password_length
SAE password length.
Definition wifi_mgmt.h:311
 
uint8_t band
Frequency band.
Definition wifi_mgmt.h:313
 
uint8_t * sae_password
SAE password (same as PSK but with no length restrictions), optional.
Definition wifi_mgmt.h:309
 
uint8_t psk_length
Pre-shared key length.
Definition wifi_mgmt.h:307
 
const uint8_t * ssid
SSID.
Definition wifi_mgmt.h:301
 
Wi-Fi filter setting for monitor, prmoiscuous, TX-injection modes.
Definition wifi_mgmt.h:526
 
uint16_t buffer_size
Filter buffer size.
Definition wifi_mgmt.h:532
 
uint8_t filter
Filter setting.
Definition wifi_mgmt.h:528
 
enum wifi_mgmt_op oper
Get or set operation.
Definition wifi_mgmt.h:534
 
uint8_t if_index
Interface index.
Definition wifi_mgmt.h:530
 
Wi-Fi interface status.
Definition wifi_mgmt.h:330
 
char ssid[WIFI_SSID_MAX_LEN]
SSID.
Definition wifi_mgmt.h:336
 
unsigned short beacon_interval
Beacon interval.
Definition wifi_mgmt.h:356
 
int rssi
RSSI.
Definition wifi_mgmt.h:352
 
char bssid[WIFI_MAC_ADDR_LEN]
BSSID.
Definition wifi_mgmt.h:338
 
enum wifi_security_type security
Security type, see enum wifi_security_type.
Definition wifi_mgmt.h:348
 
unsigned int channel
Channel.
Definition wifi_mgmt.h:342
 
enum wifi_mfp_options mfp
MFP options, see enum wifi_mfp_options.
Definition wifi_mgmt.h:350
 
unsigned char dtim_period
DTIM period.
Definition wifi_mgmt.h:354
 
int state
Interface state, see enum wifi_iface_state.
Definition wifi_mgmt.h:332
 
bool twt_capable
is TWT capable?
Definition wifi_mgmt.h:358
 
enum wifi_iface_mode iface_mode
Interface mode, see enum wifi_iface_mode.
Definition wifi_mgmt.h:344
 
unsigned int ssid_len
SSID length.
Definition wifi_mgmt.h:334
 
enum wifi_frequency_bands band
Frequency band.
Definition wifi_mgmt.h:340
 
enum wifi_link_mode link_mode
Link mode, see enum wifi_link_mode.
Definition wifi_mgmt.h:346
 
Wi-Fi management API.
Definition wifi_mgmt.h:570
 
int(* reg_domain)(const struct device *dev, struct wifi_reg_domain *reg_domain)
Set or get regulatory domain.
Definition wifi_mgmt.h:666
 
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:582
 
int(* get_power_save_config)(const struct device *dev, struct wifi_ps_config *config)
Get power save config.
Definition wifi_mgmt.h:658
 
int(* disconnect)(const struct device *dev)
Disconnect from a Wi-Fi network.
Definition wifi_mgmt.h:600
 
int(* ap_disable)(const struct device *dev)
Disable AP mode.
Definition wifi_mgmt.h:616
 
int(* get_stats)(const struct device *dev, struct net_stats_wifi *stats)
Get Wi-Fi statistics.
Definition wifi_mgmt.h:633
 
int(* set_twt)(const struct device *dev, struct wifi_twt_params *params)
Setup or teardown TWT flow.
Definition wifi_mgmt.h:650
 
int(* set_power_save)(const struct device *dev, struct wifi_ps_params *params)
Set power save status.
Definition wifi_mgmt.h:642
 
int(* ap_enable)(const struct device *dev, struct wifi_connect_req_params *params)
Enable AP mode.
Definition wifi_mgmt.h:608
 
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:674
 
int(* iface_status)(const struct device *dev, struct wifi_iface_status *status)
Get interface status.
Definition wifi_mgmt.h:624
 
int(* mode)(const struct device *dev, struct wifi_mode_info *mode)
Set or get mode of operation.
Definition wifi_mgmt.h:682
 
int(* connect)(const struct device *dev, struct wifi_connect_req_params *params)
Connect to a Wi-Fi network.
Definition wifi_mgmt.h:592
 
int(* channel)(const struct device *dev, struct wifi_channel_info *channel)
Set or get current channel of operation.
Definition wifi_mgmt.h:690
 
Wi-Fi mode setup.
Definition wifi_mgmt.h:516
 
enum wifi_mgmt_op oper
Get or set operation.
Definition wifi_mgmt.h:522
 
uint8_t mode
Mode setting for a specific mode of operation.
Definition wifi_mgmt.h:518
 
uint8_t if_index
Interface index.
Definition wifi_mgmt.h:520
 
Wi-Fi power save configuration.
Definition wifi_mgmt.h:455
 
struct wifi_ps_params ps_params
Power save configuration.
Definition wifi_mgmt.h:461
 
char num_twt_flows
Number of TWT flows.
Definition wifi_mgmt.h:457
 
struct wifi_twt_flow_info twt_flows[8]
TWT flow details.
Definition wifi_mgmt.h:459
 
Wi-Fi power save parameters.
Definition wifi_mgmt.h:362
 
enum wifi_ps_mode mode
Wi-Fi power save mode.
Definition wifi_mgmt.h:370
 
enum wifi_config_ps_param_fail_reason fail_reason
Wi-Fi power save fail reason.
Definition wifi_mgmt.h:383
 
enum wifi_ps_wakeup_mode wakeup_mode
Wi-Fi power save wakeup mode.
Definition wifi_mgmt.h:368
 
unsigned short listen_interval
Definition wifi_mgmt.h:366
 
enum wifi_ps enabled
Definition wifi_mgmt.h:364
 
unsigned int timeout_ms
Wi-Fi power save timeout.
Definition wifi_mgmt.h:379
 
enum wifi_ps_param_type type
Wi-Fi power save type.
Definition wifi_mgmt.h:381
 
Wi-Fi raw scan result.
Definition wifi_mgmt.h:492
 
int8_t rssi
RSSI.
Definition wifi_mgmt.h:494
 
uint8_t data[CONFIG_WIFI_MGMT_RAW_SCAN_RESULT_LENGTH]
Raw scan data.
Definition wifi_mgmt.h:500
 
int frame_length
Frame length.
Definition wifi_mgmt.h:496
 
unsigned short frequency
Frequency.
Definition wifi_mgmt.h:498
 
Regulatory domain information or configuration.
Definition wifi_mgmt.h:473
 
enum wifi_mgmt_op oper
Definition wifi_mgmt.h:475
 
bool force
Ignore all other regulatory hints over this one.
Definition wifi_mgmt.h:477
 
uint8_t country_code[WIFI_COUNTRY_CODE_LEN]
Country code: ISO/IEC 3166-1 alpha-2.
Definition wifi_mgmt.h:479
 
Wi-Fi scan parameters structure.
Definition wifi_mgmt.h:227
 
uint16_t max_bss_cnt
Specifies the maximum number of scan results to return.
Definition wifi_mgmt.h:256
 
uint16_t dwell_time_active
Active scan dwell time (in ms) on a channel.
Definition wifi_mgmt.h:242
 
enum wifi_scan_type scan_type
Scan type, see enum wifi_scan_type.
Definition wifi_mgmt.h:235
 
uint8_t bands
Bitmap of bands to be scanned.
Definition wifi_mgmt.h:239
 
uint16_t dwell_time_passive
Passive scan dwell time (in ms) on a channel.
Definition wifi_mgmt.h:245
 
const char * ssids[1]
Array of SSID strings to scan.
Definition wifi_mgmt.h:248
 
struct wifi_band_channel band_chan[1]
Channel information array indexed on Wi-Fi frequency bands and channels within that band.
Definition wifi_mgmt.h:271
 
Wi-Fi scan result, each result is provided to the net_mgmt_event_callback via its info attribute (see...
Definition wifi_mgmt.h:277
 
uint8_t ssid_length
SSID length.
Definition wifi_mgmt.h:281
 
uint8_t band
Frequency band.
Definition wifi_mgmt.h:283
 
uint8_t mac[WIFI_MAC_ADDR_LEN]
BSSID.
Definition wifi_mgmt.h:293
 
int8_t rssi
RSSI.
Definition wifi_mgmt.h:291
 
uint8_t mac_length
BSSID length.
Definition wifi_mgmt.h:295
 
enum wifi_mfp_options mfp
MFP options.
Definition wifi_mgmt.h:289
 
uint8_t channel
Channel.
Definition wifi_mgmt.h:285
 
uint8_t ssid[WIFI_SSID_MAX_LEN]
SSID.
Definition wifi_mgmt.h:279
 
enum wifi_security_type security
Security type.
Definition wifi_mgmt.h:287
 
Generic Wi-Fi status for commands and events.
Definition wifi_mgmt.h:325
 
int status
Definition wifi_mgmt.h:326
 
Wi-Fi TWT flow information.
Definition wifi_mgmt.h:433
 
uint8_t dialog_token
Dialog token, used to map requests to responses.
Definition wifi_mgmt.h:437
 
enum wifi_twt_negotiation_type negotiation_type
TWT negotiation type, see enum wifi_twt_negotiation_type.
Definition wifi_mgmt.h:441
 
bool trigger
Trigger enabled or disabled.
Definition wifi_mgmt.h:445
 
bool responder
Requestor or responder.
Definition wifi_mgmt.h:443
 
uint8_t flow_id
Flow ID, used to map setup with teardown.
Definition wifi_mgmt.h:439
 
uint64_t twt_interval
Interval = Wake up time + Sleeping time.
Definition wifi_mgmt.h:435
 
uint32_t twt_wake_interval
Wake up time.
Definition wifi_mgmt.h:451
 
bool implicit
Implicit or explicit.
Definition wifi_mgmt.h:447
 
bool announce
Announced or unannounced.
Definition wifi_mgmt.h:449
 
Wi-Fi TWT parameters.
Definition wifi_mgmt.h:387
 
bool announce
Announced or unannounced.
Definition wifi_mgmt.h:412
 
struct wifi_twt_params::@325::@328 teardown
Teardown specific parameters.
 
bool teardown_all
Teardown all flows.
Definition wifi_mgmt.h:419
 
enum wifi_twt_setup_cmd setup_cmd
TWT setup command, see enum wifi_twt_setup_cmd.
Definition wifi_mgmt.h:393
 
bool trigger
Trigger enabled or disabled.
Definition wifi_mgmt.h:408
 
enum wifi_twt_negotiation_type negotiation_type
TWT negotiation type, see enum wifi_twt_negotiation_type.
Definition wifi_mgmt.h:391
 
enum wifi_twt_operation operation
TWT operation, see enum wifi_twt_operation.
Definition wifi_mgmt.h:389
 
enum wifi_twt_fail_reason fail_reason
TWT fail reason, see enum wifi_twt_fail_reason.
Definition wifi_mgmt.h:423
 
struct wifi_twt_params::@325::@327 setup
Setup specific parameters.
 
uint32_t twt_wake_interval
Wake up time.
Definition wifi_mgmt.h:414
 
enum wifi_twt_setup_resp_status resp_status
TWT setup response status, see enum wifi_twt_setup_resp_status.
Definition wifi_mgmt.h:395
 
bool implicit
Implicit or explicit.
Definition wifi_mgmt.h:410
 
uint8_t flow_id
Flow ID, used to map setup with teardown.
Definition wifi_mgmt.h:399
 
uint64_t twt_interval
Interval = Wake up time + Sleeping time.
Definition wifi_mgmt.h:404
 
uint8_t dialog_token
Dialog token, used to map requests to responses.
Definition wifi_mgmt.h:397
 
bool responder
Requestor or responder.
Definition wifi_mgmt.h:406
 
Definition wifi_mgmt.h:505
 
struct wifi_iface_status iface_status
Definition wifi_mgmt.h:508
 
struct wifi_status connect_status
Definition wifi_mgmt.h:507
 
struct wifi_scan_result scan_result
Definition wifi_mgmt.h:506
 
struct wifi_twt_params twt_params
Definition wifi_mgmt.h:512
 
IEEE 802.11 protocol and general Wi-Fi definitions.