Lines Matching refs:freqs
215 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()
247 if (!in_array(freqs, data->supp_freqs[idx])) { in bgscan_learn_get_probe_freq()
251 n = os_realloc_array(freqs, count + 2, sizeof(int)); in bgscan_learn_get_probe_freq()
253 return freqs; in bgscan_learn_get_probe_freq()
254 freqs = n; in bgscan_learn_get_probe_freq()
255 freqs[count] = data->supp_freqs[idx]; in bgscan_learn_get_probe_freq()
257 freqs[count] = 0; in bgscan_learn_get_probe_freq()
264 return freqs; in bgscan_learn_get_probe_freq()
273 int *freqs = NULL; in bgscan_learn_timeout() local
282 params.freqs = data->ssid->scan_freq; in bgscan_learn_timeout()
284 freqs = bgscan_learn_get_freqs(data, &count); in bgscan_learn_timeout()
287 freqs = bgscan_learn_get_probe_freq(data, freqs, count); in bgscan_learn_timeout()
291 for (i = 0; freqs && freqs[i]; i++) { in bgscan_learn_timeout()
294 freqs[i]); in bgscan_learn_timeout()
302 params.freqs = freqs; in bgscan_learn_timeout()
312 os_free(freqs); in bgscan_learn_timeout()
352 int i, j, *freqs = NULL, *n; in bgscan_learn_get_supp_freqs() local
363 n = os_realloc_array(freqs, count + 2, sizeof(int)); in bgscan_learn_get_supp_freqs()
367 freqs = n; in bgscan_learn_get_supp_freqs()
368 freqs[count] = modes[i].channels[j].freq; in bgscan_learn_get_supp_freqs()
370 freqs[count] = 0; in bgscan_learn_get_supp_freqs()
374 return freqs; in bgscan_learn_get_supp_freqs()