Lines Matching refs:freqs
156 struct wpa_used_freq_data *freqs,
162 struct wpa_used_freq_data *freqs, unsigned int num,
173 int *freqs;
176 freqs = os_calloc(wpa_s->num_multichan_concurrent, sizeof(int));
177 if (!freqs)
180 num = get_shared_radio_freqs(wpa_s, freqs,
182 os_free(freqs);
199 struct wpa_used_freq_data *freqs;
202 freqs = os_calloc(wpa_s->num_multichan_concurrent,
204 if (!freqs)
207 num = get_shared_radio_freqs_data(wpa_s, freqs,
213 if (p2p_supported_freq(wpa_s->global->p2p, freqs[i].freq))
214 p2p_freqs[j++] = freqs[i];
217 os_free(freqs);
386 params->freqs = os_calloc(ARRAY_SIZE(social_channels_freq) + 1,
388 if (params->freqs == NULL)
393 params->freqs[num_channels++] =
396 params->freqs[num_channels++] = 0;
401 params->freqs = os_calloc(2, sizeof(int));
402 if (params->freqs == NULL)
404 params->freqs[0] = freq;
405 params->freqs[1] = 0;
408 params->freqs = os_calloc(ARRAY_SIZE(social_channels_freq) + 2,
410 if (params->freqs == NULL)
415 params->freqs[num_channels++] =
419 params->freqs[num_channels++] = freq;
420 params->freqs[num_channels++] = 0;
433 bands = wpas_get_bands(wpa_s, params->freqs);
2752 "P2P: Failed to get group common freqs");
2813 struct wpa_used_freq_data *freqs,
2820 if (p2p_supported_freq(wpa_s->global->p2p, freqs[c].freq))
2828 if (!p2p_supported_freq(wpa_s->global->p2p, freqs[i].freq))
2836 if (freqs[i].flags & WPA_FREQ_USED_BY_INFRA_STATION) {
2841 if ((freqs[i].flags & WPA_FREQ_USED_BY_P2P_CLIENT))
2844 return freqs[c].freq;
2857 struct wpa_used_freq_data *freqs;
2956 freqs = os_calloc(wpa_s->num_multichan_concurrent,
2958 if (freqs) {
2960 int num = wpas_p2p_valid_oper_freqs(wpa_s, freqs, num_channels);
2961 best_freq = wpas_p2p_pick_best_used_freq(wpa_s, freqs, num);
2962 os_free(freqs);
4643 struct wpa_used_freq_data *freqs;
4650 freqs = os_calloc(wpa_s->num_multichan_concurrent,
4652 if (!freqs)
4655 num = wpas_p2p_valid_oper_freqs(wpa_s, freqs,
4659 if (freqs[i].freq == freq) {
4671 os_free(freqs);
4939 int freqs[2] = { 0, 0 };
4978 freqs[0] = freq;
4979 params.freqs = freqs;
4992 bands = wpas_get_bands(wpa_s, freqs);
5145 struct wpa_used_freq_data *freqs;
5152 freqs = os_calloc(wpa_s->num_multichan_concurrent,
5154 if (!freqs)
5157 num = wpas_p2p_valid_oper_freqs(wpa_s, freqs,
5168 "P2P: Setup freqs: freq=%d num_MCC=%d shared_freqs=%u num_unused=%d",
5197 if (freqs[i].freq == freq)
5213 best_freq = wpas_p2p_pick_best_used_freq(wpa_s, freqs, num);
5281 os_free(freqs);
5771 struct wpa_used_freq_data *freqs;
5784 freqs = os_calloc(wpa_s->num_multichan_concurrent,
5786 if (!freqs)
5789 num = get_shared_radio_freqs_data(wpa_s, freqs,
5805 if (freqs[i].freq == wpa_s->current_ssid->frequency &&
5806 freqs[i].flags == 0) {
5823 if (freqs[i].freq == freq) {
5849 cand = wpas_p2p_pick_best_used_freq(wpa_s, freqs, num);
5858 /* try using one of the shared freqs */
5861 freqs[i].freq)) {
5864 freqs[i].freq);
5865 params->freq = freqs[i].freq;
5946 /* Try using one of the group common freqs */
5969 os_free(freqs);
5972 os_free(freqs);
7473 struct wpa_used_freq_data *freqs = NULL;
7479 freqs = os_calloc(num, sizeof(struct wpa_used_freq_data));
7480 if (!freqs)
7483 num = get_shared_radio_freqs_data(wpa_s, freqs, num);
7495 wpas_p2p_optimize_listen_channel(wpa_s, freqs, num);
7503 wpas_p2p_consider_moving_gos(wpa_s, freqs, num, trig);
7505 os_free(freqs);
8771 struct wpa_used_freq_data *freqs,
8789 ieee80211_freq_to_chan(freqs[i].freq, &chan);
8894 "P2P CSA: Selected invalid VHT center freqs");
8994 struct wpa_used_freq_data *freqs = NULL;
8997 freqs = os_calloc(num, sizeof(struct wpa_used_freq_data));
8998 if (!freqs)
9001 num = get_shared_radio_freqs_data(wpa_s, freqs, num);
9004 wpas_p2p_consider_moving_gos(wpa_s, freqs, num,
9007 os_free(freqs);
9023 struct wpa_used_freq_data *freqs,
9034 if (freqs[i].freq == freq) {
9035 flags = freqs[i].flags;
9044 } else if (freqs[i].flags == 0) {
9048 freqs[i].freq)) {
9056 wpas_p2p_go_is_peer_freq(wpa_s, freqs[i].freq)) {
9060 wpas_p2p_go_is_peer_freq(wpa_s, freqs[i].freq)) {
9073 ieee80211_freq_to_chan(freqs[i].freq,
9134 struct wpa_used_freq_data *freqs,
9169 wpas_p2p_consider_moving_one_go(ifs, freqs, num);