Lines Matching refs:sec_chan
88 int sec_chan)
95 const int ht40_plus = pri_chan < sec_chan;
101 if (pri_chan == sec_chan || !sec_chan) {
110 s_chan = hw_get_channel_chan(mode, sec_chan, NULL);
116 pri_chan, sec_chan);
124 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;
171 *sec_chan = *pri_chan + 4;
173 *sec_chan = *pri_chan - 4;
181 int sec_chan)
188 if (!mode || !scan_res || !pri_chan || !sec_chan ||
189 pri_chan == sec_chan)
193 sec_freq = hw_get_freq(mode, sec_chan);
223 sec_chan == bss_sec_chan) {
233 sec_chan == bss_pri_chan) {
278 int sec_chan)
284 if (!mode || !scan_res || !pri_chan || !sec_chan ||
285 pri_chan == sec_chan)
289 sec_freq = hw_get_freq(mode, sec_chan);
309 get_pri_sec_chan(bss, &pri_chan, &sec_chan);
311 if (sec_chan) {
312 if (sec_chan < pri_chan)
324 MAC2STR(bss->bssid), bss->freq, pri_chan, sec_chan);
326 if (sec_chan) {