Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
wifi_utils.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12#ifndef ZEPHYR_INCLUDE_NET_WIFI_UTILS_H_
13#define ZEPHYR_INCLUDE_NET_WIFI_UTILS_H_
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
32#define WIFI_UTILS_MAX_BAND_STR_LEN 3
33
35#define WIFI_UTILS_MAX_CHAN_STR_LEN 4
36
59int wifi_utils_parse_scan_bands(char *scan_bands_str, uint8_t *band_map);
60
61
72int wifi_utils_parse_scan_ssids(char *scan_ssids_str,
73 const char *ssids[],
74 uint8_t num_ssids);
75
76
105int wifi_utils_parse_scan_chan(char *scan_chan_str,
106 struct wifi_band_channel *chan,
107 uint8_t max_channels);
108
109
120 uint16_t chan);
121
131
141
151
160#ifdef __cplusplus
161}
162#endif
163#endif /* ZEPHYR_INCLUDE_NET_WIFI_UTILS_H_ */
bool wifi_utils_validate_chan_6g(uint16_t chan)
Validate a channel against the 6 GHz band.
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_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_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_5g(uint16_t chan)
Validate a channel against the 5 GHz band.
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.
__UINT8_TYPE__ uint8_t
Definition: stdint.h:88
__UINT16_TYPE__ uint16_t
Definition: stdint.h:89
Wi-Fi structure to uniquely identify a band-channel pair.
Definition: wifi_mgmt.h:296