Home
last modified time | relevance | path

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

/third_party/wpa_supplicant/wpa_supplicant-2.9/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 const int ht40_plus = pri_chan < sec_chan; in allowed_ht40_channel_pair()
97 p_chan = hw_get_channel_chan(mode, pri_chan, NULL); in allowed_ht40_channel_pair()
101 if (pri_chan == sec_chan || !sec_chan) { in allowed_ht40_channel_pair()
106 pri_chan); in allowed_ht40_channel_pair()
116 pri_chan, sec_chan); in allowed_ht40_channel_pair()
137 first = pri_chan < sec_chan ? pri_chan : sec_chan; in allowed_ht40_channel_pair()
148 pri_chan, sec_chan); in allowed_ht40_channel_pair()
156 void get_pri_sec_chan(struct wpa_scan_res *bss, int *pri_chan, int *sec_chan) in get_pri_sec_chan() argument
161 *pri_chan = *sec_chan = 0; 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,
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
Dhw_features_common.c119 int ht40_plus, pri_chan, sec_chan; in allowed_ht40_channel_pair() local
123 pri_chan = p_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()
133 pri_chan); in allowed_ht40_channel_pair()
139 pri_chan, p_chan->freq, sec_chan, s_chan->freq); 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);
33 struct hostapd_channel_data *pri_chan,
36 struct wpa_scan_results *scan_res, int pri_chan,
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dhw_features.c230 int pri_chan, sec_chan; in ieee80211n_allowed_ht40_channel_pair() local
238 pri_chan = iface->conf->channel; in ieee80211n_allowed_ht40_channel_pair()
239 sec_chan = pri_chan + iface->conf->secondary_channel * 4; in ieee80211n_allowed_ht40_channel_pair()
241 return allowed_ht40_channel_pair(iface->current_mode, pri_chan, in ieee80211n_allowed_ht40_channel_pair()
261 int pri_chan, sec_chan; in ieee80211n_check_40mhz_5g() local
264 pri_chan = iface->conf->channel; in ieee80211n_check_40mhz_5g()
265 sec_chan = pri_chan + iface->conf->secondary_channel * 4; in ieee80211n_check_40mhz_5g()
267 res = check_40mhz_5g(iface->current_mode, scan_res, pri_chan, sec_chan); in ieee80211n_check_40mhz_5g()
285 int pri_chan, sec_chan; in ieee80211n_check_40mhz_2g4() local
287 pri_chan = iface->conf->channel; in ieee80211n_check_40mhz_2g4()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dhw_features.c275 struct hostapd_channel_data *pri_chan, *sec_chan; in ieee80211n_check_40mhz_5g() local
282 pri_chan = hw_get_channel_freq(iface->current_mode->mode, pri_freq, in ieee80211n_check_40mhz_5g()
289 res = check_40mhz_5g(scan_res, pri_chan, sec_chan); in ieee80211n_check_40mhz_5g()
307 int pri_chan, sec_chan; in ieee80211n_check_40mhz_2g4() local
309 pri_chan = iface->conf->channel; in ieee80211n_check_40mhz_2g4()
310 sec_chan = pri_chan + iface->conf->secondary_channel * 4; in ieee80211n_check_40mhz_2g4()
312 return check_40mhz_2g4(iface->current_mode, scan_res, pri_chan, in ieee80211n_check_40mhz_2g4()
834 struct hostapd_channel_data *pri_chan; in hostapd_is_usable_edmg() local
841 pri_chan = hw_get_channel_freq(iface->current_mode->mode, in hostapd_is_usable_edmg()
845 if (!pri_chan) in hostapd_is_usable_edmg()
[all …]
Ddrv_callbacks.c1061 struct hostapd_channel_data *pri_chan; in hostapd_acs_channel_selected() local
1103 pri_chan = hw_get_channel_freq(hapd->iface->current_mode->mode, in hostapd_acs_channel_selected()
1107 if (!pri_chan) { in hostapd_acs_channel_selected()
1115 hapd->iconf->channel = pri_chan->chan; in hostapd_acs_channel_selected()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant_lib/
Dwpa_magiclink.c121 int pri_chan = 0; local
123 (u8 *)&pri_chan);
137 int behavior = hw_magiclink_get_ht40_mode(pri_chan);
139 int sec_freq = 5000 + (pri_chan + behavior * 4) * 5;
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant_lib/
Dwpa_magiclink.c121 int pri_chan = 0; local
123 (u8 *)&pri_chan);
137 int behavior = hw_magiclink_get_ht40_mode(pri_chan);
139 int sec_freq = 5000 + (pri_chan + behavior * 4) * 5;
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Dwpa_supplicant.c2176 struct hostapd_channel_data *pri_chan = NULL, *sec_chan = NULL; in ibss_mesh_setup_freq() local
2253 pri_chan = &mode->channels[chan_idx]; in ibss_mesh_setup_freq()
2254 if (pri_chan->chan == channel) in ibss_mesh_setup_freq()
2256 pri_chan = NULL; in ibss_mesh_setup_freq()
2258 if (!pri_chan) in ibss_mesh_setup_freq()
2262 if (pri_chan->flag & (HOSTAPD_CHAN_DISABLED | HOSTAPD_CHAN_NO_IR)) in ibss_mesh_setup_freq()
2265 freq->channel = pri_chan->chan; in ibss_mesh_setup_freq()
2298 if (!(pri_chan->flag & HOSTAPD_CHAN_HT40MINUS)) in ibss_mesh_setup_freq()
2301 if (!(pri_chan->flag & HOSTAPD_CHAN_HT40PLUS)) in ibss_mesh_setup_freq()
2316 res = check_40mhz_5g(mode, scan_res, pri_chan->chan, in ibss_mesh_setup_freq()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dwpa_supplicant.c2469 struct hostapd_channel_data *pri_chan = NULL, *sec_chan = NULL; in ibss_mesh_setup_freq() local
2564 pri_chan = &mode->channels[chan_idx]; in ibss_mesh_setup_freq()
2565 if (pri_chan->chan == channel) in ibss_mesh_setup_freq()
2567 pri_chan = NULL; in ibss_mesh_setup_freq()
2569 if (!pri_chan) in ibss_mesh_setup_freq()
2573 if (pri_chan->flag & (HOSTAPD_CHAN_DISABLED | HOSTAPD_CHAN_NO_IR)) in ibss_mesh_setup_freq()
2576 freq->channel = pri_chan->chan; in ibss_mesh_setup_freq()
2611 if (!(pri_chan->flag & HOSTAPD_CHAN_HT40MINUS)) in ibss_mesh_setup_freq()
2614 if (!(pri_chan->flag & HOSTAPD_CHAN_HT40PLUS)) in ibss_mesh_setup_freq()
2629 res = check_40mhz_5g(scan_res, pri_chan, sec_chan); in ibss_mesh_setup_freq()