Home
last modified time | relevance | path

Searched refs:sec_chan (Results 1 – 7 of 7) sorted by relevance

/hostap-3.7.0/src/common/
Dhw_features_common.c119 int ht40_plus, pri_chan, sec_chan; in allowed_ht40_channel_pair() local
124 sec_chan = s_chan->chan; in allowed_ht40_channel_pair()
126 ht40_plus = pri_chan < sec_chan; in allowed_ht40_channel_pair()
128 if (pri_chan == sec_chan || !sec_chan) { in allowed_ht40_channel_pair()
139 pri_chan, p_chan->freq, sec_chan, s_chan->freq); in allowed_ht40_channel_pair()
147 sec_chan); in allowed_ht40_channel_pair()
160 first = pri_chan < sec_chan ? pri_chan : sec_chan; in allowed_ht40_channel_pair()
171 pri_chan, sec_chan); in allowed_ht40_channel_pair()
179 void get_pri_sec_chan(struct wpa_scan_res *bss, int *pri_chan, int *sec_chan) in get_pri_sec_chan() argument
184 *pri_chan = *sec_chan = 0; in get_pri_sec_chan()
[all …]
Dhw_features_common.h31 void get_pri_sec_chan(struct wpa_scan_res *bss, int *pri_chan, int *sec_chan);
34 struct hostapd_channel_data *sec_chan);
37 int sec_chan);
/hostap-3.7.0/src/ap/
Dhw_features.c274 struct hostapd_channel_data *pri_chan, *sec_chan; in ieee80211n_check_40mhz_5g() local
284 sec_chan = hw_get_channel_freq(iface->current_mode->mode, sec_freq, in ieee80211n_check_40mhz_5g()
288 res = check_40mhz_5g(scan_res, pri_chan, sec_chan); in ieee80211n_check_40mhz_5g()
306 int pri_chan, sec_chan; in ieee80211n_check_40mhz_2g4() local
309 sec_chan = pri_chan + iface->conf->secondary_channel * 4; in ieee80211n_check_40mhz_2g4()
312 sec_chan); in ieee80211n_check_40mhz_2g4()
/hostap-3.7.0/wpa_supplicant/
Drrm.c711 int sec_chan = 0, vht = 0; in wpas_get_op_chan_phy() local
724 sec_chan = 1; in wpas_get_op_chan_phy()
727 sec_chan = -1; in wpas_get_op_chan_phy()
757 if (ieee80211_freq_to_channel_ext(freq, sec_chan, vht, op_class, in wpas_get_op_chan_phy()
Dwnm_sta.c928 int sec_chan = 0, vht = 0; in wnm_nei_rep_add_bss() local
939 sec_chan = 1; in wnm_nei_rep_add_bss()
942 sec_chan = -1; in wnm_nei_rep_add_bss()
955 if (ieee80211_freq_to_channel_ext(bss->freq, sec_chan, vht, &op_class, in wnm_nei_rep_add_bss()
Dwpa_supplicant.c2459 struct hostapd_channel_data *pri_chan = NULL, *sec_chan = NULL; in ibss_mesh_setup_freq() local
2588 sec_chan = &mode->channels[i]; in ibss_mesh_setup_freq()
2589 if (sec_chan->chan == channel + ht40 * 4) in ibss_mesh_setup_freq()
2591 sec_chan = NULL; in ibss_mesh_setup_freq()
2593 if (!sec_chan) in ibss_mesh_setup_freq()
2597 if (sec_chan->flag & (HOSTAPD_CHAN_DISABLED | HOSTAPD_CHAN_NO_IR)) in ibss_mesh_setup_freq()
2619 res = check_40mhz_5g(scan_res, pri_chan, sec_chan); in ibss_mesh_setup_freq()
2630 freq->freq = hw_get_freq(mode, sec_chan->chan); in ibss_mesh_setup_freq()
2632 freq->channel = sec_chan->chan; in ibss_mesh_setup_freq()
/hostap-3.7.0/tests/hwsim/
Dtest_ap_ht.py1372 def run_op_class(dev, apdev, hw_mode, channel, country, ht_capab, sec_chan, argument
1391 if sec != sec_chan: