Zephyr API Documentation 4.2.0-rc2
A Scalable Open Source RTOS
 4.2.0-rc2
wifi_utils.h File Reference

Utility functions to be used by the Wi-Fi subsystem. More...

Go to the source code of this file.

Wi-Fi utility functions.

Utility functions for the Wi-Fi subsystem.

#define WIFI_UTILS_MAX_BAND_STR_LEN   3
 Maximum length of the band specification string.
#define WIFI_UTILS_MAX_CHAN_STR_LEN   4
 Maximum length of the channel specification string.
int wifi_utils_parse_scan_bands (char *scan_bands_str, uint8_t *band_map)
 Convert a band specification string to a bitmap representing the bands.
int wifi_utils_parse_scan_ssids (char *scan_ssids_str, const char *ssids[], uint8_t num_ssids)
 Append a string containing an SSID to an array of SSID strings.
int wifi_utils_parse_scan_chan (char *scan_chan_str, struct wifi_band_channel *chan, uint8_t max_channels)
 Convert a string containing a specification of scan channels to an array.
bool wifi_utils_validate_chan (uint8_t band, uint16_t chan)
 Validate a channel against a band.
bool wifi_utils_validate_chan_2g (uint16_t chan)
 Validate a channel against the 2.4 GHz band.
bool wifi_utils_validate_chan_5g (uint16_t chan)
 Validate a channel against the 5 GHz band.
bool wifi_utils_validate_chan_6g (uint16_t chan)
 Validate a channel against the 6 GHz band.

Detailed Description

Utility functions to be used by the Wi-Fi subsystem.