Lines Matching refs:freqs
337 if (params->freqs == NULL && wpa_s->p2p_in_provisioning &&
345 params->freqs = os_calloc(2, sizeof(int));
346 if (params->freqs)
347 params->freqs[0] = wpa_s->go_params->freq;
352 int_array_concat(¶ms->freqs,
354 if (params->freqs)
355 int_array_sort_unique(params->freqs);
360 if (params->freqs == NULL && wpa_s->p2p_in_invitation) {
369 params->freqs = os_calloc(2, sizeof(int));
370 if (params->freqs)
371 params->freqs[0] = wpa_s->p2p_invite_go_freq;
388 if (params->freqs == NULL && wpa_s->after_wps && wpa_s->wps_freq) {
395 params->freqs = os_calloc(2, sizeof(int));
396 if (params->freqs)
397 params->freqs[0] = wpa_s->wps_freq;
402 if (params->freqs == NULL && wpa_s->known_wps_freq && wpa_s->wps_freq)
407 params->freqs = os_calloc(2, sizeof(int));
408 if (params->freqs)
409 params->freqs[0] = wpa_s->wps_freq;
541 params->freqs = os_zalloc(sizeof(int));
545 params->freqs = os_calloc(mode->num_channels + 1, sizeof(int));
546 if (params->freqs == NULL)
551 params->freqs[count++] = mode->channels[i].freq;
561 if (params->freqs)
837 params.freqs = os_malloc(sizeof(int) * 2);
838 if (params.freqs == NULL) {
842 params.freqs[0] = wpa_s->assoc_freq;
843 params.freqs[1] = 0;
885 if ((params.freqs || !freqs_set) && tssid->scan_freq) {
886 int_array_concat(¶ms.freqs,
889 os_free(params.freqs);
890 params.freqs = NULL;
894 int_array_sort_unique(params.freqs);
947 if (wpa_s->last_scan_req == MANUAL_SCAN_REQ && params.freqs == NULL &&
950 params.freqs = wpa_s->manual_scan_freqs;
954 if (params.freqs == NULL && wpa_s->next_scan_freqs) {
957 params.freqs = wpa_s->next_scan_freqs;
964 if (wpa_s->conf->freq_list && !params.freqs) {
967 int_array_concat(¶ms.freqs, wpa_s->conf->freq_list);
971 if (wpa_s->conf->scan_cur_freq && !params.freqs) {
974 params.freqs = os_calloc(num + 1, sizeof(int));
975 if (params.freqs) {
976 num = get_shared_radio_freqs(wpa_s, params.freqs, num);
982 os_free(params.freqs);
983 params.freqs = NULL;
1050 !scan_params->freqs && !params.freqs &&
1056 params.freqs = os_calloc(num + 1, sizeof(int));
1057 if (params.freqs) {
1058 num = get_shared_radio_freqs(wpa_s, params.freqs, num);
1062 os_free(params.freqs);
1063 params.freqs = NULL;
1071 if (ret && wpa_s->last_scan_req == MANUAL_SCAN_REQ && params.freqs &&
1074 wpa_s->manual_scan_freqs = params.freqs;
1075 params.freqs = NULL;
1079 os_free(params.freqs);
1368 if (wpa_s->conf->freq_list && !params.freqs) {
1371 int_array_concat(¶ms.freqs, wpa_s->conf->freq_list);
2236 if (src->freqs) {
2237 int len = int_array_len(src->freqs);
2238 params->freqs = os_malloc((len + 1) * sizeof(int));
2239 if (params->freqs == NULL)
2241 os_memcpy(params->freqs, src->freqs, (len + 1) * sizeof(int));
2319 os_free(params->freqs);
2458 if (params.freqs == NULL && wpa_s->manual_sched_scan_freqs) {
2460 params.freqs = wpa_s->manual_sched_scan_freqs;