Lines Matching defs:pri_chan
87 int allowed_ht40_channel_pair(struct hostapd_hw_modes *mode, int pri_chan,
95 const int ht40_plus = pri_chan < sec_chan;
97 p_chan = hw_get_channel_chan(mode, pri_chan, NULL);
101 if (pri_chan == sec_chan || !sec_chan) {
106 pri_chan);
116 pri_chan, sec_chan);
137 first = pri_chan < sec_chan ? pri_chan : sec_chan;
148 pri_chan, sec_chan);
156 void get_pri_sec_chan(struct wpa_scan_res *bss, int *pri_chan, int *sec_chan)
161 *pri_chan = *sec_chan = 0;
166 *pri_chan = oper->primary_chan;
171 *sec_chan = *pri_chan + 4;
173 *sec_chan = *pri_chan - 4;
180 struct wpa_scan_results *scan_res, int pri_chan,
188 if (!mode || !scan_res || !pri_chan || !sec_chan ||
189 pri_chan == sec_chan)
192 pri_freq = hw_get_freq(mode, pri_chan);
222 if (pri_chan == bss_pri_chan &&
232 if (pri_chan == bss_sec_chan &&
277 struct wpa_scan_results *scan_res, int pri_chan,
284 if (!mode || !scan_res || !pri_chan || !sec_chan ||
285 pri_chan == sec_chan)
288 pri_freq = hw_get_freq(mode, pri_chan);
309 get_pri_sec_chan(bss, &pri_chan, &sec_chan);
312 if (sec_chan < pri_chan)
324 MAC2STR(bss->bssid), bss->freq, pri_chan, sec_chan);
333 pri, sec, pri_chan,