• Home
  • Raw
  • Download

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()
394 params->freqs = os_calloc(ARRAY_SIZE(social_channels_freq) + 1, in wpas_p2p_scan()
396 if (params->freqs == NULL) in wpas_p2p_scan()
401 params->freqs[num_channels++] = in wpas_p2p_scan()
404 params->freqs[num_channels++] = 0; in wpas_p2p_scan()
409 params->freqs = os_calloc(2, sizeof(int)); in wpas_p2p_scan()
410 if (params->freqs == NULL) in wpas_p2p_scan()
412 params->freqs[0] = freq; in wpas_p2p_scan()
413 params->freqs[1] = 0; in wpas_p2p_scan()
416 params->freqs = os_calloc(ARRAY_SIZE(social_channels_freq) + 2, in wpas_p2p_scan()
418 if (params->freqs == NULL) in wpas_p2p_scan()
423 params->freqs[num_channels++] = in wpas_p2p_scan()
427 params->freqs[num_channels++] = freq; in wpas_p2p_scan()
428 params->freqs[num_channels++] = 0; in wpas_p2p_scan()
441 bands = wpas_get_bands(wpa_s, params->freqs); in wpas_p2p_scan()
2878 struct wpa_used_freq_data *freqs, in wpas_p2p_pick_best_used_freq() argument
2885 if (p2p_supported_freq(wpa_s->global->p2p, freqs[c].freq)) in wpas_p2p_pick_best_used_freq()
2893 if (!p2p_supported_freq(wpa_s->global->p2p, freqs[i].freq)) in wpas_p2p_pick_best_used_freq()
2901 if (freqs[i].flags & WPA_FREQ_USED_BY_INFRA_STATION) { in wpas_p2p_pick_best_used_freq()
2906 if ((freqs[i].flags & WPA_FREQ_USED_BY_P2P_CLIENT)) in wpas_p2p_pick_best_used_freq()
2909 return freqs[c].freq; in wpas_p2p_pick_best_used_freq()
2922 struct wpa_used_freq_data *freqs; in wpas_invitation_process() local
3021 freqs = os_calloc(wpa_s->num_multichan_concurrent, in wpas_invitation_process()
3023 if (freqs) { in wpas_invitation_process()
3025 int num = wpas_p2p_valid_oper_freqs(wpa_s, freqs, num_channels); in wpas_invitation_process()
3026 best_freq = wpas_p2p_pick_best_used_freq(wpa_s, freqs, num); in wpas_invitation_process()
3027 os_free(freqs); in wpas_invitation_process()
4811 struct wpa_used_freq_data *freqs; in wpas_check_freq_conflict() local
4818 freqs = os_calloc(wpa_s->num_multichan_concurrent, in wpas_check_freq_conflict()
4820 if (!freqs) in wpas_check_freq_conflict()
4823 num = wpas_p2p_valid_oper_freqs(wpa_s, freqs, in wpas_check_freq_conflict()
4827 if (freqs[i].freq == freq) { in wpas_check_freq_conflict()
4839 os_free(freqs); in wpas_check_freq_conflict()
5108 int freqs[2] = { 0, 0 }; in wpas_p2p_join_scan_req() local
5147 freqs[0] = freq; in wpas_p2p_join_scan_req()
5148 params.freqs = freqs; in wpas_p2p_join_scan_req()
5161 bands = wpas_get_bands(wpa_s, freqs); in wpas_p2p_join_scan_req()
5322 struct wpa_used_freq_data *freqs; in wpas_p2p_setup_freqs() local
5329 freqs = os_calloc(wpa_s->num_multichan_concurrent, in wpas_p2p_setup_freqs()
5331 if (!freqs) in wpas_p2p_setup_freqs()
5334 num = wpas_p2p_valid_oper_freqs(wpa_s, freqs, in wpas_p2p_setup_freqs()
5375 if (freqs[i].freq == freq) in wpas_p2p_setup_freqs()
5391 best_freq = wpas_p2p_pick_best_used_freq(wpa_s, freqs, num); in wpas_p2p_setup_freqs()
5461 os_free(freqs); in wpas_p2p_setup_freqs()
5971 struct wpa_used_freq_data *freqs; in wpas_p2p_init_go_params() local
5985 freqs = os_calloc(wpa_s->num_multichan_concurrent, in wpas_p2p_init_go_params()
5987 if (!freqs) in wpas_p2p_init_go_params()
5990 num = get_shared_radio_freqs_data(wpa_s, freqs, in wpas_p2p_init_go_params()
6006 if (freqs[i].freq == wpa_s->current_ssid->frequency && in wpas_p2p_init_go_params()
6007 freqs[i].flags == 0) { in wpas_p2p_init_go_params()
6043 if (freqs[i].freq == freq) { in wpas_p2p_init_go_params()
6069 cand = wpas_p2p_pick_best_used_freq(wpa_s, freqs, num); in wpas_p2p_init_go_params()
6081 freqs[i].freq)) { in wpas_p2p_init_go_params()
6084 freqs[i].freq); in wpas_p2p_init_go_params()
6085 params->freq = freqs[i].freq; in wpas_p2p_init_go_params()
6263 os_free(freqs); in wpas_p2p_init_go_params()
6266 os_free(freqs); in wpas_p2p_init_go_params()
7771 struct wpa_used_freq_data *freqs = NULL; in wpas_p2p_update_channel_list() local
7777 freqs = os_calloc(num, sizeof(struct wpa_used_freq_data)); in wpas_p2p_update_channel_list()
7778 if (!freqs) in wpas_p2p_update_channel_list()
7781 num = get_shared_radio_freqs_data(wpa_s, freqs, num); in wpas_p2p_update_channel_list()
7793 wpas_p2p_optimize_listen_channel(wpa_s, freqs, num); in wpas_p2p_update_channel_list()
7801 wpas_p2p_consider_moving_gos(wpa_s, freqs, num, trig); in wpas_p2p_update_channel_list()
7803 os_free(freqs); in wpas_p2p_update_channel_list()
9071 struct wpa_used_freq_data *freqs, in wpas_p2p_optimize_listen_channel() argument
9089 ieee80211_freq_to_chan(freqs[i].freq, &chan); in wpas_p2p_optimize_listen_channel()
9294 struct wpa_used_freq_data *freqs = NULL; in wpas_p2p_reconsider_moving_go() local
9297 freqs = os_calloc(num, sizeof(struct wpa_used_freq_data)); in wpas_p2p_reconsider_moving_go()
9298 if (!freqs) in wpas_p2p_reconsider_moving_go()
9301 num = get_shared_radio_freqs_data(wpa_s, freqs, num); in wpas_p2p_reconsider_moving_go()
9304 wpas_p2p_consider_moving_gos(wpa_s, freqs, num, in wpas_p2p_reconsider_moving_go()
9307 os_free(freqs); in wpas_p2p_reconsider_moving_go()
9323 struct wpa_used_freq_data *freqs, in wpas_p2p_consider_moving_one_go() argument
9337 if (freqs[i].freq == freq) { in wpas_p2p_consider_moving_one_go()
9338 flags = freqs[i].flags; in wpas_p2p_consider_moving_one_go()
9348 } else if (freqs[i].flags == 0) { in wpas_p2p_consider_moving_one_go()
9352 freqs[i].freq) && !dfs_offload) { in wpas_p2p_consider_moving_one_go()
9360 wpas_p2p_go_is_peer_freq(wpa_s, freqs[i].freq)) { in wpas_p2p_consider_moving_one_go()
9364 wpas_p2p_go_is_peer_freq(wpa_s, freqs[i].freq)) { in wpas_p2p_consider_moving_one_go()
9377 ieee80211_freq_to_chan(freqs[i].freq, in wpas_p2p_consider_moving_one_go()
9438 struct wpa_used_freq_data *freqs, in wpas_p2p_consider_moving_gos() argument
9473 wpas_p2p_consider_moving_one_go(ifs, freqs, num); in wpas_p2p_consider_moving_gos()