Lines Matching refs:freqs
1333 int *freqs; in wpa_config_parse_int_array() local
1339 freqs = os_calloc(len + 1, sizeof(int)); in wpa_config_parse_int_array()
1340 if (freqs == NULL) in wpa_config_parse_int_array()
1350 n = os_realloc_array(freqs, len * 2 + 1, sizeof(int)); in wpa_config_parse_int_array()
1352 os_free(freqs); in wpa_config_parse_int_array()
1357 freqs = n; in wpa_config_parse_int_array()
1361 freqs[used] = atoi(pos); in wpa_config_parse_int_array()
1362 if (freqs[used] == 0) in wpa_config_parse_int_array()
1368 return freqs; in wpa_config_parse_int_array()
1376 int *freqs; in wpa_config_parse_scan_freq() local
1378 freqs = wpa_config_parse_int_array(value); in wpa_config_parse_scan_freq()
1379 if (freqs == NULL) in wpa_config_parse_scan_freq()
1381 if (freqs[0] == 0) { in wpa_config_parse_scan_freq()
1382 os_free(freqs); in wpa_config_parse_scan_freq()
1383 freqs = NULL; in wpa_config_parse_scan_freq()
1386 ssid->scan_freq = freqs; in wpa_config_parse_scan_freq()
1396 int *freqs; in wpa_config_parse_freq_list() local
1398 freqs = wpa_config_parse_int_array(value); in wpa_config_parse_freq_list()
1399 if (freqs == NULL) in wpa_config_parse_freq_list()
1401 if (freqs[0] == 0) { in wpa_config_parse_freq_list()
1402 os_free(freqs); in wpa_config_parse_freq_list()
1403 freqs = NULL; in wpa_config_parse_freq_list()
1406 ssid->freq_list = freqs; in wpa_config_parse_freq_list()
1414 const int *freqs) in wpa_config_write_freqs() argument
1420 if (freqs == NULL) in wpa_config_write_freqs()
1424 for (i = 0; freqs[i]; i++) in wpa_config_write_freqs()
1432 for (i = 0; freqs[i]; i++) { in wpa_config_write_freqs()
1434 i == 0 ? "" : " ", freqs[i]); in wpa_config_write_freqs()
4293 int *freqs; in wpa_config_process_freq_list() local
4295 freqs = wpa_config_parse_int_array(value); in wpa_config_process_freq_list()
4296 if (freqs == NULL) in wpa_config_process_freq_list()
4298 if (freqs[0] == 0) { in wpa_config_process_freq_list()
4299 os_free(freqs); in wpa_config_process_freq_list()
4300 freqs = NULL; in wpa_config_process_freq_list()
4303 config->freq_list = freqs; in wpa_config_process_freq_list()