Lines Matching refs:freqs
156 struct wpa_used_freq_data *freqs,
162 struct wpa_used_freq_data *freqs, unsigned int num,
173 int *freqs; in wpas_p2p_num_unused_channels() local
176 freqs = os_calloc(wpa_s->num_multichan_concurrent, sizeof(int)); in wpas_p2p_num_unused_channels()
177 if (!freqs) in wpas_p2p_num_unused_channels()
180 num = get_shared_radio_freqs(wpa_s, freqs, in wpas_p2p_num_unused_channels()
182 os_free(freqs); in wpas_p2p_num_unused_channels()
199 struct wpa_used_freq_data *freqs; in wpas_p2p_valid_oper_freqs() local
202 freqs = os_calloc(wpa_s->num_multichan_concurrent, in wpas_p2p_valid_oper_freqs()
204 if (!freqs) in wpas_p2p_valid_oper_freqs()
207 num = get_shared_radio_freqs_data(wpa_s, freqs, in wpas_p2p_valid_oper_freqs()
213 if (p2p_supported_freq(wpa_s->global->p2p, freqs[i].freq)) in wpas_p2p_valid_oper_freqs()
214 p2p_freqs[j++] = freqs[i]; in wpas_p2p_valid_oper_freqs()
217 os_free(freqs); in wpas_p2p_valid_oper_freqs()
350 if (wpa_s->conf->p2p_6ghz_disable && !params->freqs) { in wpas_p2p_trigger_scan_cb()
438 params->freqs = os_calloc(ARRAY_SIZE(social_channels_freq) + 1, in wpas_p2p_scan()
440 if (params->freqs == NULL) in wpas_p2p_scan()
445 params->freqs[num_channels++] = in wpas_p2p_scan()
448 params->freqs[num_channels++] = 0; in wpas_p2p_scan()
453 params->freqs = os_calloc(2, sizeof(int)); in wpas_p2p_scan()
454 if (params->freqs == NULL) in wpas_p2p_scan()
456 params->freqs[0] = freq; in wpas_p2p_scan()
457 params->freqs[1] = 0; in wpas_p2p_scan()
460 params->freqs = os_calloc(ARRAY_SIZE(social_channels_freq) + 2, in wpas_p2p_scan()
462 if (params->freqs == NULL) in wpas_p2p_scan()
467 params->freqs[num_channels++] = in wpas_p2p_scan()
471 params->freqs[num_channels++] = freq; in wpas_p2p_scan()
472 params->freqs[num_channels++] = 0; in wpas_p2p_scan()
485 bands = wpas_get_bands(wpa_s, params->freqs); in wpas_p2p_scan()
3034 struct wpa_used_freq_data *freqs, in wpas_p2p_pick_best_used_freq() argument
3041 if (p2p_supported_freq(wpa_s->global->p2p, freqs[c].freq)) in wpas_p2p_pick_best_used_freq()
3049 if (!p2p_supported_freq(wpa_s->global->p2p, freqs[i].freq)) in wpas_p2p_pick_best_used_freq()
3057 if (freqs[i].flags & WPA_FREQ_USED_BY_INFRA_STATION) { in wpas_p2p_pick_best_used_freq()
3062 if ((freqs[i].flags & WPA_FREQ_USED_BY_P2P_CLIENT)) in wpas_p2p_pick_best_used_freq()
3065 return freqs[c].freq; in wpas_p2p_pick_best_used_freq()
3078 struct wpa_used_freq_data *freqs; in wpas_invitation_process() local
3177 freqs = os_calloc(wpa_s->num_multichan_concurrent, in wpas_invitation_process()
3179 if (freqs) { in wpas_invitation_process()
3181 int num = wpas_p2p_valid_oper_freqs(wpa_s, freqs, num_channels); in wpas_invitation_process()
3182 best_freq = wpas_p2p_pick_best_used_freq(wpa_s, freqs, num); in wpas_invitation_process()
3183 os_free(freqs); in wpas_invitation_process()
5043 struct wpa_used_freq_data *freqs; in wpas_check_freq_conflict() local
5050 freqs = os_calloc(wpa_s->num_multichan_concurrent, in wpas_check_freq_conflict()
5052 if (!freqs) in wpas_check_freq_conflict()
5055 num = wpas_p2p_valid_oper_freqs(wpa_s, freqs, in wpas_check_freq_conflict()
5059 if (freqs[i].freq == freq) { in wpas_check_freq_conflict()
5071 os_free(freqs); in wpas_check_freq_conflict()
5341 int freqs[2] = { 0, 0 }; in wpas_p2p_join_scan_req() local
5380 freqs[0] = freq; in wpas_p2p_join_scan_req()
5381 params.freqs = freqs; in wpas_p2p_join_scan_req()
5401 bands = wpas_get_bands(wpa_s, freqs); in wpas_p2p_join_scan_req()
5419 if (wpa_s->conf->p2p_6ghz_disable && params.freqs != freqs) in wpas_p2p_join_scan_req()
5420 os_free(params.freqs); in wpas_p2p_join_scan_req()
5564 struct wpa_used_freq_data *freqs; in wpas_p2p_setup_freqs() local
5571 freqs = os_calloc(wpa_s->num_multichan_concurrent, in wpas_p2p_setup_freqs()
5573 if (!freqs) in wpas_p2p_setup_freqs()
5576 num = wpas_p2p_valid_oper_freqs(wpa_s, freqs, in wpas_p2p_setup_freqs()
5617 if (freqs[i].freq == freq) in wpas_p2p_setup_freqs()
5633 best_freq = wpas_p2p_pick_best_used_freq(wpa_s, freqs, num); in wpas_p2p_setup_freqs()
5703 os_free(freqs); in wpas_p2p_setup_freqs()
6258 struct wpa_used_freq_data *freqs; in wpas_p2p_init_go_params() local
6273 freqs = os_calloc(wpa_s->num_multichan_concurrent, in wpas_p2p_init_go_params()
6275 if (!freqs) in wpas_p2p_init_go_params()
6278 num = get_shared_radio_freqs_data(wpa_s, freqs, in wpas_p2p_init_go_params()
6294 if (freqs[i].freq == wpa_s->current_ssid->frequency && in wpas_p2p_init_go_params()
6295 freqs[i].flags == 0) { in wpas_p2p_init_go_params()
6338 if (freqs[i].freq == freq) { in wpas_p2p_init_go_params()
6364 cand = wpas_p2p_pick_best_used_freq(wpa_s, freqs, num); in wpas_p2p_init_go_params()
6376 freqs[i].freq)) { in wpas_p2p_init_go_params()
6379 freqs[i].freq); in wpas_p2p_init_go_params()
6380 params->freq = freqs[i].freq; in wpas_p2p_init_go_params()
6558 os_free(freqs); in wpas_p2p_init_go_params()
6561 os_free(freqs); in wpas_p2p_init_go_params()
8072 struct wpa_used_freq_data *freqs = NULL; in wpas_p2p_update_channel_list() local
8078 freqs = os_calloc(num, sizeof(struct wpa_used_freq_data)); in wpas_p2p_update_channel_list()
8079 if (!freqs) in wpas_p2p_update_channel_list()
8082 num = get_shared_radio_freqs_data(wpa_s, freqs, num); in wpas_p2p_update_channel_list()
8095 wpas_p2p_optimize_listen_channel(wpa_s, freqs, num); in wpas_p2p_update_channel_list()
8103 wpas_p2p_consider_moving_gos(wpa_s, freqs, num, trig); in wpas_p2p_update_channel_list()
8105 os_free(freqs); in wpas_p2p_update_channel_list()
9377 struct wpa_used_freq_data *freqs, in wpas_p2p_optimize_listen_channel() argument
9395 ieee80211_freq_to_chan(freqs[i].freq, &chan); in wpas_p2p_optimize_listen_channel()
9616 struct wpa_used_freq_data *freqs = NULL; in wpas_p2p_reconsider_moving_go() local
9619 freqs = os_calloc(num, sizeof(struct wpa_used_freq_data)); in wpas_p2p_reconsider_moving_go()
9620 if (!freqs) in wpas_p2p_reconsider_moving_go()
9623 num = get_shared_radio_freqs_data(wpa_s, freqs, num); in wpas_p2p_reconsider_moving_go()
9626 wpas_p2p_consider_moving_gos(wpa_s, freqs, num, in wpas_p2p_reconsider_moving_go()
9629 os_free(freqs); in wpas_p2p_reconsider_moving_go()
9645 struct wpa_used_freq_data *freqs, in wpas_p2p_consider_moving_one_go() argument
9659 if (freqs[i].freq == freq) { in wpas_p2p_consider_moving_one_go()
9660 flags = freqs[i].flags; in wpas_p2p_consider_moving_one_go()
9670 } else if (freqs[i].flags == 0) { in wpas_p2p_consider_moving_one_go()
9674 freqs[i].freq) && !dfs_offload) { in wpas_p2p_consider_moving_one_go()
9682 wpas_p2p_go_is_peer_freq(wpa_s, freqs[i].freq)) { in wpas_p2p_consider_moving_one_go()
9686 wpas_p2p_go_is_peer_freq(wpa_s, freqs[i].freq)) { in wpas_p2p_consider_moving_one_go()
9699 ieee80211_freq_to_chan(freqs[i].freq, in wpas_p2p_consider_moving_one_go()
9760 struct wpa_used_freq_data *freqs, in wpas_p2p_consider_moving_gos() argument
9795 wpas_p2p_consider_moving_one_go(ifs, freqs, num); in wpas_p2p_consider_moving_gos()