Home
last modified time | relevance | path

Searched refs:freqs (Results 1 – 24 of 24) sorted by relevance

/external/wpa_supplicant_8/wpa_supplicant/
Dbgscan_learn.c215 int *freqs = NULL, *n; in bgscan_learn_get_freqs() local
220 if (in_array(freqs, bss->freq)) in bgscan_learn_get_freqs()
222 n = os_realloc_array(freqs, *count + 2, sizeof(int)); in bgscan_learn_get_freqs()
224 return freqs; in bgscan_learn_get_freqs()
225 freqs = n; in bgscan_learn_get_freqs()
226 freqs[*count] = bss->freq; in bgscan_learn_get_freqs()
228 freqs[*count] = 0; in bgscan_learn_get_freqs()
231 return freqs; in bgscan_learn_get_freqs()
236 int *freqs, size_t count) in bgscan_learn_get_probe_freq() argument
241 return freqs; in bgscan_learn_get_probe_freq()
[all …]
Dscan.c338 if (params->freqs == NULL && wpa_s->p2p_in_provisioning && in wpa_supplicant_optimize_freqs()
346 params->freqs = os_calloc(2, sizeof(int)); in wpa_supplicant_optimize_freqs()
347 if (params->freqs) in wpa_supplicant_optimize_freqs()
348 params->freqs[0] = wpa_s->go_params->freq; in wpa_supplicant_optimize_freqs()
353 int_array_concat(&params->freqs, in wpa_supplicant_optimize_freqs()
355 if (params->freqs) in wpa_supplicant_optimize_freqs()
356 int_array_sort_unique(params->freqs); in wpa_supplicant_optimize_freqs()
361 if (params->freqs == NULL && wpa_s->p2p_in_invitation) { in wpa_supplicant_optimize_freqs()
370 params->freqs = os_calloc(2, sizeof(int)); in wpa_supplicant_optimize_freqs()
371 if (params->freqs) in wpa_supplicant_optimize_freqs()
[all …]
Dconfig.c1104 int *freqs; in wpa_config_parse_int_array() local
1110 freqs = os_calloc(len + 1, sizeof(int)); in wpa_config_parse_int_array()
1111 if (freqs == NULL) in wpa_config_parse_int_array()
1121 n = os_realloc_array(freqs, len * 2 + 1, sizeof(int)); in wpa_config_parse_int_array()
1123 os_free(freqs); in wpa_config_parse_int_array()
1128 freqs = n; in wpa_config_parse_int_array()
1132 freqs[used] = atoi(pos); in wpa_config_parse_int_array()
1133 if (freqs[used] == 0) in wpa_config_parse_int_array()
1139 return freqs; in wpa_config_parse_int_array()
1147 int *freqs; in wpa_config_parse_scan_freq() local
[all …]
Dp2p_supplicant.c139 int *freqs; in wpas_p2p_num_unused_channels() local
142 freqs = os_calloc(wpa_s->num_multichan_concurrent, sizeof(int)); in wpas_p2p_num_unused_channels()
143 if (!freqs) in wpas_p2p_num_unused_channels()
146 num = get_shared_radio_freqs(wpa_s, freqs, in wpas_p2p_num_unused_channels()
148 os_free(freqs); in wpas_p2p_num_unused_channels()
165 struct wpa_used_freq_data *freqs; in wpas_p2p_valid_oper_freqs() local
168 freqs = os_calloc(wpa_s->num_multichan_concurrent, in wpas_p2p_valid_oper_freqs()
170 if (!freqs) in wpas_p2p_valid_oper_freqs()
173 num = get_shared_radio_freqs_data(wpa_s, freqs, in wpas_p2p_valid_oper_freqs()
179 if (p2p_supported_freq(wpa_s->global->p2p, freqs[i].freq)) in wpas_p2p_valid_oper_freqs()
[all …]
Dwnm_sta.c747 int *freqs; in wnm_set_scan_freqs() local
760 freqs = os_calloc(wpa_s->wnm_num_neighbor_report + 1, sizeof(int)); in wnm_set_scan_freqs()
761 if (freqs == NULL) in wnm_set_scan_freqs()
773 os_free(freqs); in wnm_set_scan_freqs()
777 add_freq(freqs, &num_freqs, nei->freq); in wnm_set_scan_freqs()
781 os_free(freqs); in wnm_set_scan_freqs()
788 wpa_s->next_scan_freqs = freqs; in wnm_set_scan_freqs()
Dinterworking.h26 int *freqs);
Dbgscan_simple.c43 params.freqs = data->ssid->scan_freq; in bgscan_simple_timeout()
Dwpa_supplicant.c4832 void add_freq(int *freqs, int *num_freqs, int freq) in add_freq() argument
4837 if (freqs[i] == freq) in add_freq()
4841 freqs[*num_freqs] = freq; in add_freq()
4850 int *freqs; in get_bss_freqs_in_ess() local
4853 freqs = os_calloc(max_freqs + 1, sizeof(int)); in get_bss_freqs_in_ess()
4854 if (freqs == NULL) in get_bss_freqs_in_ess()
4865 add_freq(freqs, &num_freqs, bss->freq); in get_bss_freqs_in_ess()
4872 os_free(freqs); in get_bss_freqs_in_ess()
4873 freqs = NULL; in get_bss_freqs_in_ess()
4876 return freqs; in get_bss_freqs_in_ess()
[all …]
Dsme.c1320 params->freqs = os_zalloc(sizeof(int)); in wpa_obss_scan_freqs_list()
1362 params->freqs = os_calloc(mode->num_channels + 1, sizeof(int)); in wpa_obss_scan_freqs_list()
1363 if (params->freqs == NULL) in wpa_obss_scan_freqs_list()
1373 params->freqs[count++] = freq; in wpa_obss_scan_freqs_list()
1397 os_free(params.freqs); in sme_obss_scan_timeout()
Dctrl_iface.c265 int *freqs = NULL; in wpas_ctrl_pno() local
275 freqs = freq_range_to_channel_list(wpa_s, in wpas_ctrl_pno()
278 wpa_s->manual_sched_scan_freqs = freqs; in wpas_ctrl_pno()
2768 int *freqs = freq_range_to_channel_list(wpa_s, pos + 6); in wpa_supplicant_ctrl_iface_select_network() local
2769 if (freqs) { in wpa_supplicant_ctrl_iface_select_network()
2772 wpa_s->manual_scan_freqs = freqs; in wpa_supplicant_ctrl_iface_select_network()
5998 int *freqs = NULL; in freq_range_to_channel_list() local
6023 int_array_add_unique(&freqs, freq); in freq_range_to_channel_list()
6028 return freqs; in freq_range_to_channel_list()
6037 int *freqs = NULL; in ctrl_interworking_select() local
[all …]
Dwpa_supplicant_i.h1077 void add_freq(int *freqs, int *num_freqs, int freq);
Devents.c650 static int freq_allowed(int *freqs, int freq) in freq_allowed() argument
654 if (freqs == NULL) in freq_allowed()
657 for (i = 0; freqs[i]; i++) in freq_allowed()
658 if (freqs[i] == freq) in freq_allowed()
Dbss.c735 if (bss->freq == info->freqs[i]) { in wpa_bss_included_in_scan()
Dinterworking.c2952 int *freqs) in interworking_select() argument
2966 wpa_s->manual_scan_freqs = freqs; in interworking_select()
/external/jmonkeyengine/engine/src/desktop/com/jme3/app/
DSettingsDialog.java515 String[] freqs = getFrequencies(resolution, modes); in updateDisplayChoices() local
516 displayFreqCombo.setModel(new DefaultComboBoxModel(freqs)); in updateDisplayChoices()
627 ArrayList<String> freqs = new ArrayList<String>(4); in getFrequencies() local
637 if (res.equals(resolution) && !freqs.contains(freq)) { in getFrequencies()
638 freqs.add(freq); in getFrequencies()
642 String[] res = new String[freqs.size()]; in getFrequencies()
643 freqs.toArray(res); in getFrequencies()
/external/wpa_supplicant_8/src/ap/
Dhw_features.c361 params->freqs = os_calloc(mode->num_channels + 1, sizeof(int)); in ieee80211n_scan_channels_2g4()
362 if (params->freqs == NULL) in ieee80211n_scan_channels_2g4()
373 params->freqs[pos++] = chan->freq; in ieee80211n_scan_channels_2g4()
402 params->freqs = os_calloc(mode->num_channels + 1, sizeof(int)); in ieee80211n_scan_channels_5g()
403 if (params->freqs == NULL) in ieee80211n_scan_channels_5g()
414 params->freqs[pos++] = chan->freq; in ieee80211n_scan_channels_5g()
434 os_free(params.freqs); in ap_ht40_scan_retry()
482 os_free(params.freqs); in ieee80211n_check_40mhz()
Dacs.c886 params.freqs = os_calloc(iface->current_mode->num_channels + 1, in acs_request_scan()
887 sizeof(params.freqs[0])); in acs_request_scan()
888 if (params.freqs == NULL) in acs_request_scan()
891 freq = params.freqs; in acs_request_scan()
913 os_free(params.freqs); in acs_request_scan()
917 os_free(params.freqs); in acs_request_scan()
/external/wpa_supplicant_8/src/drivers/
Ddriver_nl80211_scan.c144 if (params->freqs) { in nl80211_scan_common()
145 struct nlattr *freqs; in nl80211_scan_common() local
146 freqs = nla_nest_start(msg, NL80211_ATTR_SCAN_FREQUENCIES); in nl80211_scan_common()
147 if (freqs == NULL) in nl80211_scan_common()
149 for (i = 0; params->freqs[i]; i++) { in nl80211_scan_common()
151 "MHz", params->freqs[i]); in nl80211_scan_common()
152 if (nla_put_u32(msg, i + 1, params->freqs[i])) in nl80211_scan_common()
155 nla_nest_end(msg, freqs); in nl80211_scan_common()
Ddriver_nl80211_event.c978 int freqs[MAX_REPORT_FREQS]; in send_scan_event() local
1016 freqs[num_freqs] = nla_get_u32(nl); in send_scan_event()
1018 freqs[num_freqs]); in send_scan_event()
1025 info->freqs = freqs; in send_scan_event()
Ddriver.h328 int *freqs; member
4342 const int *freqs; member
Ddriver_nl80211.c3001 int freqs[2]; in wpa_driver_nl80211_authenticate() local
3009 freqs[0] = params->freq; in wpa_driver_nl80211_authenticate()
3010 freqs[1] = 0; in wpa_driver_nl80211_authenticate()
3011 scan.freqs = freqs; in wpa_driver_nl80211_authenticate()
/external/wpa_supplicant_8/wpa_supplicant/dbus/
Ddbus_new_handlers.c1141 int *freqs = NULL, *nfreqs; in wpas_dbus_get_scan_channels() local
1182 os_free(freqs); in wpas_dbus_get_scan_channels()
1196 os_free(freqs); in wpas_dbus_get_scan_channels()
1205 freqs, freqs_num + FREQS_ALLOC_CHUNK, in wpas_dbus_get_scan_channels()
1208 os_free(freqs); in wpas_dbus_get_scan_channels()
1209 freqs = nfreqs; in wpas_dbus_get_scan_channels()
1211 if (freqs == NULL) { in wpas_dbus_get_scan_channels()
1216 freqs[freqs_num] = freq; in wpas_dbus_get_scan_channels()
1222 nfreqs = os_realloc_array(freqs, freqs_num + 1, sizeof(int)); in wpas_dbus_get_scan_channels()
1224 os_free(freqs); in wpas_dbus_get_scan_channels()
[all …]
Ddbus_new.c1325 dbus_int32_t freqs[P2P_MAX_CHANNELS]; in wpas_dbus_signal_p2p_go_neg_resp() local
1326 dbus_int32_t *f_array = freqs; in wpas_dbus_signal_p2p_go_neg_resp()
1334 os_memset(freqs, 0, sizeof(freqs)); in wpas_dbus_signal_p2p_go_neg_resp()
1390 freqs[i] = res->freq_list[i]; in wpas_dbus_signal_p2p_go_neg_resp()
/external/zopfli/src/zopfli/
Dsqueeze.c91 static void RandomizeFreqs(RanState* state, size_t* freqs, int n) { in RandomizeFreqs() argument
94 if ((Ran(state) >> 4) % 3 == 0) freqs[i] = freqs[Ran(state) % n]; in RandomizeFreqs()