Lines Matching +full:string +full:- +full:array

4  * SPDX-License-Identifier: Apache-2.0
9 * @brief Utility functions to be used by the Wi-Fi subsystem.
25 * @name Wi-Fi utility functions.
27 * Utility functions for the Wi-Fi subsystem.
31 /** Maximum length of the band specification string */
34 /** Maximum length of the channel specification string */
38 * @brief Convert a band specification string to a bitmap representing the bands.
40 * @details The function will parse a string which specifies Wi-Fi frequency band
41 * values as a comma separated string and convert it to a bitmap. The string can
44 * - 2: 2.4 GHz
45 * - 5: 5 GHz
46 * - 6: 6 GHz
51 * E.g. a string "2,5,6" will be converted to a bitmap value of 0x7
53 * @param scan_bands_str String which spe.
57 * @retval -errno value in case of failure.
63 * @brief Append a string containing an SSID to an array of SSID strings.
65 * @param scan_ssids_str string to be appended in the list of scanned SSIDs.
66 * @param ssids Pointer to an array where the SSIDs pointers are to be stored.
70 * @retval -errno value in case of failure.
78 * @brief Convert a string containing a specification of scan channels to an array.
80 * @details The function will parse a string which specifies channels to be scanned
81 * as a string and convert it to an array.
83 * The channel string has to be formatted using the colon (:), comma(,), hyphen (-) and
85 * - A colon identifies the value preceding it as a band. A band value
87 * - Hyphens (-) are used to identify channel ranges (e.g. 2-7, 32-48 etc)
88 * - Commas are used to separate channel values within a band. Channels can be specified
89 * as individual values (2,6,48 etc) or channel ranges using hyphens (1-14, 32-48 etc)
90 * - Underscores (_) are used to specify multiple band-channel sets (e.g. 2:1,2_5:36,40 etc)
91 * - No spaces should be used anywhere, i.e. before/after commas,
96 * 2:1,5,7,9-11_5:36-48,100,163-167
99 * @param chan Pointer to an array where the parsed channels are to be stored.
103 * @retval -errno value in case of failure.