Home
last modified time | relevance | path

Searched refs:pri_chan (Results 1 – 4 of 4) sorted by relevance

/external/wpa_supplicant_8/src/common/
Dhw_features_common.c87 int allowed_ht40_channel_pair(struct hostapd_hw_modes *mode, int pri_chan, in allowed_ht40_channel_pair() argument
95 if (pri_chan == sec_chan || !sec_chan) in allowed_ht40_channel_pair()
100 pri_chan, sec_chan); in allowed_ht40_channel_pair()
128 first = pri_chan < sec_chan ? pri_chan : sec_chan; in allowed_ht40_channel_pair()
139 pri_chan, sec_chan); in allowed_ht40_channel_pair()
147 void get_pri_sec_chan(struct wpa_scan_res *bss, int *pri_chan, int *sec_chan) in get_pri_sec_chan() argument
152 *pri_chan = *sec_chan = 0; in get_pri_sec_chan()
157 *pri_chan = oper->primary_chan; in get_pri_sec_chan()
162 *sec_chan = *pri_chan + 4; in get_pri_sec_chan()
164 *sec_chan = *pri_chan - 4; in get_pri_sec_chan()
[all …]
Dhw_features_common.h23 int allowed_ht40_channel_pair(struct hostapd_hw_modes *mode, int pri_chan,
25 void get_pri_sec_chan(struct wpa_scan_res *bss, int *pri_chan, int *sec_chan);
27 struct wpa_scan_results *scan_res, int pri_chan,
30 struct wpa_scan_results *scan_res, int pri_chan,
/external/wpa_supplicant_8/src/ap/
Dhw_features.c227 int pri_chan, sec_chan; in ieee80211n_allowed_ht40_channel_pair() local
232 pri_chan = iface->conf->channel; in ieee80211n_allowed_ht40_channel_pair()
233 sec_chan = pri_chan + iface->conf->secondary_channel * 4; in ieee80211n_allowed_ht40_channel_pair()
235 return allowed_ht40_channel_pair(iface->current_mode, pri_chan, in ieee80211n_allowed_ht40_channel_pair()
255 int pri_chan, sec_chan; in ieee80211n_check_40mhz_5g() local
258 pri_chan = iface->conf->channel; in ieee80211n_check_40mhz_5g()
259 sec_chan = pri_chan + iface->conf->secondary_channel * 4; in ieee80211n_check_40mhz_5g()
261 res = check_40mhz_5g(iface->current_mode, scan_res, pri_chan, sec_chan); in ieee80211n_check_40mhz_5g()
273 int pri_chan, sec_chan; in ieee80211n_check_40mhz_2g4() local
275 pri_chan = iface->conf->channel; in ieee80211n_check_40mhz_2g4()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dwpa_supplicant.c1726 struct hostapd_channel_data *pri_chan = NULL, *sec_chan = NULL; in ibss_mesh_setup_freq() local
1791 pri_chan = &mode->channels[chan_idx]; in ibss_mesh_setup_freq()
1792 if (pri_chan->chan == channel) in ibss_mesh_setup_freq()
1794 pri_chan = NULL; in ibss_mesh_setup_freq()
1796 if (!pri_chan) in ibss_mesh_setup_freq()
1800 if (pri_chan->flag & (HOSTAPD_CHAN_DISABLED | HOSTAPD_CHAN_NO_IR)) in ibss_mesh_setup_freq()
1825 freq->channel = pri_chan->chan; in ibss_mesh_setup_freq()
1829 if (!(pri_chan->flag & HOSTAPD_CHAN_HT40MINUS)) in ibss_mesh_setup_freq()
1834 if (!(pri_chan->flag & HOSTAPD_CHAN_HT40PLUS)) in ibss_mesh_setup_freq()
1852 res = check_40mhz_5g(mode, scan_res, pri_chan->chan, in ibss_mesh_setup_freq()