Lines Matching refs:freqs
215 int *freqs = NULL, *n;
220 if (in_array(freqs, bss->freq))
222 n = os_realloc_array(freqs, *count + 2, sizeof(int));
224 return freqs;
225 freqs = n;
226 freqs[*count] = bss->freq;
228 freqs[*count] = 0;
231 return freqs;
236 int *freqs, size_t count)
241 return freqs;
245 if (!in_array(freqs, data->supp_freqs[idx])) {
251 n = os_realloc_array(freqs, count + 2, sizeof(int));
253 return freqs;
254 freqs = n;
255 freqs[count] = data->supp_freqs[idx];
257 freqs[count] = 0;
266 return freqs;
275 int *freqs = NULL;
284 params.freqs = data->ssid->scan_freq;
286 freqs = bgscan_learn_get_freqs(data, &count);
289 freqs = bgscan_learn_get_probe_freq(data, freqs, count);
293 for (i = 0; freqs && freqs[i]; i++) {
296 freqs[i]);
304 params.freqs = freqs;
314 os_free(freqs);
354 int i, j, *freqs = NULL, *n;
365 /* some hw modes (e.g. 11b & 11g) contain same freqs */
366 if (in_array(freqs, modes[i].channels[j].freq))
368 n = os_realloc_array(freqs, count + 2, sizeof(int));
372 freqs = n;
373 freqs[count] = modes[i].channels[j].freq;
375 freqs[count] = 0;
379 return freqs;