Home
last modified time | relevance | path

Searched refs:chan_str (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/subsys/net/l2/wifi/
Dwifi_utils.c214 static int wifi_utils_validate_chan_str(char *chan_str) in wifi_utils_validate_chan_str() argument
218 if ((!chan_str) || (!strlen(chan_str))) { in wifi_utils_validate_chan_str()
223 for (i = 0; i < strlen(chan_str); i++) { in wifi_utils_validate_chan_str()
224 if (!isdigit((int)chan_str[i])) { in wifi_utils_validate_chan_str()
225 NET_ERR("Invalid character in channel string %c\n", chan_str[i]); in wifi_utils_validate_chan_str()
314 char chan_str[WIFI_UTILS_MAX_CHAN_STR_LEN] = {0}; in wifi_utils_parse_scan_chan() local
369 strncpy(chan_str, in wifi_utils_parse_scan_chan()
373 if (wifi_utils_validate_chan_str(chan_str)) { in wifi_utils_parse_scan_chan()
378 chan_val = atoi(chan_str); in wifi_utils_parse_scan_chan()
380 memset(chan_str, 0, sizeof(chan_str)); in wifi_utils_parse_scan_chan()