Lines Matching refs:sec_chan
88 int sec_chan)
95 if (pri_chan == sec_chan || !sec_chan)
100 pri_chan, sec_chan);
108 chan->chan == sec_chan) {
115 sec_chan);
128 first = pri_chan < sec_chan ? pri_chan : sec_chan;
139 pri_chan, sec_chan);
147 void get_pri_sec_chan(struct wpa_scan_res *bss, int *pri_chan, int *sec_chan)
152 *pri_chan = *sec_chan = 0;
162 *sec_chan = *pri_chan + 4;
164 *sec_chan = *pri_chan - 4;
172 int sec_chan)
179 if (!mode || !scan_res || !pri_chan || !sec_chan ||
180 pri_chan == sec_chan)
184 sec_freq = hw_get_freq(mode, sec_chan);
214 sec_chan == bss_sec_chan) {
224 sec_chan == bss_pri_chan) {
269 int sec_chan)
275 if (!mode || !scan_res || !pri_chan || !sec_chan ||
276 pri_chan == sec_chan)
280 sec_freq = hw_get_freq(mode, sec_chan);
300 get_pri_sec_chan(bss, &pri_chan, &sec_chan);
302 if (sec_chan) {
303 if (sec_chan < pri_chan)
315 MAC2STR(bss->bssid), bss->freq, pri_chan, sec_chan);
317 if (sec_chan) {