Lines Matching refs:freqs

399 	if (params->freqs == NULL && wpa_s->p2p_in_provisioning &&  in wpa_supplicant_optimize_freqs()
407 params->freqs = os_calloc(2, sizeof(int)); in wpa_supplicant_optimize_freqs()
408 if (params->freqs) in wpa_supplicant_optimize_freqs()
409 params->freqs[0] = wpa_s->go_params->freq; in wpa_supplicant_optimize_freqs()
414 int_array_concat(&params->freqs, in wpa_supplicant_optimize_freqs()
416 if (params->freqs) in wpa_supplicant_optimize_freqs()
417 int_array_sort_unique(params->freqs); in wpa_supplicant_optimize_freqs()
422 if (params->freqs == NULL && wpa_s->p2p_in_invitation) { in wpa_supplicant_optimize_freqs()
431 params->freqs = os_calloc(2, sizeof(int)); in wpa_supplicant_optimize_freqs()
432 if (params->freqs) in wpa_supplicant_optimize_freqs()
433 params->freqs[0] = wpa_s->p2p_invite_go_freq; in wpa_supplicant_optimize_freqs()
450 if (params->freqs == NULL && wpa_s->after_wps && wpa_s->wps_freq) { in wpa_supplicant_optimize_freqs()
457 params->freqs = os_calloc(2, sizeof(int)); in wpa_supplicant_optimize_freqs()
458 if (params->freqs) in wpa_supplicant_optimize_freqs()
459 params->freqs[0] = wpa_s->wps_freq; in wpa_supplicant_optimize_freqs()
464 if (params->freqs == NULL && wpa_s->known_wps_freq && wpa_s->wps_freq) in wpa_supplicant_optimize_freqs()
469 params->freqs = os_calloc(2, sizeof(int)); in wpa_supplicant_optimize_freqs()
470 if (params->freqs) in wpa_supplicant_optimize_freqs()
471 params->freqs[0] = wpa_s->wps_freq; in wpa_supplicant_optimize_freqs()
694 int *freqs, i; in wpa_add_scan_freqs_list() local
700 if (params->freqs) { in wpa_add_scan_freqs_list()
701 while (params->freqs[num_chans]) in wpa_add_scan_freqs_list()
705 freqs = os_realloc(params->freqs, in wpa_add_scan_freqs_list()
707 if (!freqs) in wpa_add_scan_freqs_list()
710 params->freqs = freqs; in wpa_add_scan_freqs_list()
714 params->freqs[num_chans++] = mode->channels[i].freq; in wpa_add_scan_freqs_list()
716 params->freqs[num_chans] = 0; in wpa_add_scan_freqs_list()
727 if (params->freqs) in wpa_setband_scan_freqs()
1098 params.freqs = os_malloc(sizeof(int) * 2); in wpa_supplicant_scan()
1099 if (params.freqs) { in wpa_supplicant_scan()
1100 params.freqs[0] = wpa_s->assoc_freq; in wpa_supplicant_scan()
1101 params.freqs[1] = 0; in wpa_supplicant_scan()
1155 if (((params.freqs || !freqs_set) && in wpa_supplicant_scan()
1157 int_array_len(params.freqs) < 100) { in wpa_supplicant_scan()
1158 int_array_concat(&params.freqs, in wpa_supplicant_scan()
1161 os_free(params.freqs); in wpa_supplicant_scan()
1162 params.freqs = NULL; in wpa_supplicant_scan()
1166 int_array_sort_unique(params.freqs); in wpa_supplicant_scan()
1219 if (wpa_s->last_scan_req == MANUAL_SCAN_REQ && params.freqs == NULL && in wpa_supplicant_scan()
1222 params.freqs = wpa_s->manual_scan_freqs; in wpa_supplicant_scan()
1226 if (params.freqs == NULL && wpa_s->select_network_scan_freqs) { in wpa_supplicant_scan()
1229 params.freqs = wpa_s->select_network_scan_freqs; in wpa_supplicant_scan()
1233 if (params.freqs == NULL && wpa_s->next_scan_freqs) { in wpa_supplicant_scan()
1236 params.freqs = wpa_s->next_scan_freqs; in wpa_supplicant_scan()
1244 wpa_s->conf->initial_freq_list && !params.freqs) { in wpa_supplicant_scan()
1247 int_array_concat(&params.freqs, wpa_s->conf->initial_freq_list); in wpa_supplicant_scan()
1248 } else if (wpa_s->conf->freq_list && !params.freqs) { in wpa_supplicant_scan()
1251 int_array_concat(&params.freqs, wpa_s->conf->freq_list); in wpa_supplicant_scan()
1255 if (wpa_s->conf->scan_cur_freq && !params.freqs) { in wpa_supplicant_scan()
1258 params.freqs = os_calloc(num + 1, sizeof(int)); in wpa_supplicant_scan()
1259 if (params.freqs) { in wpa_supplicant_scan()
1260 num = get_shared_radio_freqs(wpa_s, params.freqs, num); in wpa_supplicant_scan()
1266 os_free(params.freqs); in wpa_supplicant_scan()
1267 params.freqs = NULL; in wpa_supplicant_scan()
1336 !scan_params->freqs && !params.freqs && in wpa_supplicant_scan()
1342 params.freqs = os_calloc(num + 1, sizeof(int)); in wpa_supplicant_scan()
1343 if (params.freqs) { in wpa_supplicant_scan()
1344 num = get_shared_radio_freqs(wpa_s, params.freqs, num); in wpa_supplicant_scan()
1348 os_free(params.freqs); in wpa_supplicant_scan()
1349 params.freqs = NULL; in wpa_supplicant_scan()
1357 if (ret && wpa_s->last_scan_req == MANUAL_SCAN_REQ && params.freqs && in wpa_supplicant_scan()
1360 wpa_s->manual_scan_freqs = params.freqs; in wpa_supplicant_scan()
1361 params.freqs = NULL; in wpa_supplicant_scan()
1365 os_free(params.freqs); in wpa_supplicant_scan()
1678 if (wpa_s->conf->freq_list && !params.freqs) { in wpa_supplicant_req_sched_scan()
1681 int_array_concat(&params.freqs, wpa_s->conf->freq_list); in wpa_supplicant_req_sched_scan()
2621 if (src->freqs) { in wpa_scan_clone_params()
2622 int len = int_array_len(src->freqs); in wpa_scan_clone_params()
2623 params->freqs = os_memdup(src->freqs, (len + 1) * sizeof(int)); in wpa_scan_clone_params()
2624 if (params->freqs == NULL) in wpa_scan_clone_params()
2691 os_free(params->freqs); in wpa_scan_free_params()
2839 if (params.freqs == NULL && wpa_s->manual_sched_scan_freqs) { in wpas_start_pno()
2841 params.freqs = wpa_s->manual_sched_scan_freqs; in wpas_start_pno()