Zephyr API Documentation  3.5.0
A Scalable Open Source RTOS
3.5.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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
31#define WIFI_UTILS_MAX_BAND_STR_LEN 3
32#define WIFI_UTILS_MAX_CHAN_STR_LEN 4
33
56int wifi_utils_parse_scan_bands(char *scan_bands_str, uint8_t *band_map);
57
58
69int wifi_utils_parse_scan_ssids(char *scan_ssids_str,
70 const char *ssids[],
71 uint8_t num_ssids);
72
73
102int wifi_utils_parse_scan_chan(char *scan_chan_str,
103 struct wifi_band_channel *chan,
104 uint8_t max_channels);
105
114#ifdef __cplusplus
115}
116#endif
117#endif /* ZEPHYR_INCLUDE_NET_WIFI_UTILS_H_ */
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.
__UINT8_TYPE__ uint8_t
Definition: stdint.h:88
Wi-Fi structure to uniquely identify a band-channel pair.
Definition: wifi_mgmt.h:215