Home
last modified time | relevance | path

Searched refs:op_class (Results 1 – 25 of 44) sorted by relevance

12

/freebsd-12-stable/contrib/wpa/wpa_supplicant/
Dop_classes.c21 u8 op_class, u8 chan, in allow_channel() argument
25 bool is_6ghz = op_class >= 131 && op_class <= 136; in allow_channel()
73 u8 op_class, u8 channel) in verify_80mhz() argument
84 if (is_6ghz_op_class(op_class)) { in verify_80mhz()
102 if (allow_channel(mode, op_class, adj_chan, &flags) == in verify_80mhz()
146 u8 op_class, u8 channel) in verify_160mhz() argument
156 if (is_6ghz_op_class(op_class)) { in verify_160mhz()
174 if (allow_channel(mode, op_class, adj_chan, &flags) == in verify_160mhz()
199 enum chan_allowed verify_channel(struct hostapd_hw_modes *mode, u8 op_class, in verify_channel() argument
205 res2 = res = allow_channel(mode, op_class, channel, &flag); in verify_channel()
[all …]
Drrm.c476 static int wpas_add_channel(u8 op_class, u8 chan, u8 num_primary_channels, in wpas_add_channel() argument
484 freqs[i] = ieee80211_chan_to_freq(NULL, op_class, primary_chan); in wpas_add_channel()
489 (op_class == 128 || op_class == 129 || op_class == 130)) in wpas_add_channel()
532 enum chan_allowed res = verify_channel(mode, op->op_class, chan, in wpas_add_channels()
538 if (wpas_add_channel(op->op_class, chan, num_primary_channels, in wpas_add_channels()
566 bool is_6ghz = is_6ghz_op_class(op->op_class); in wpas_op_class_freqs()
622 is_6ghz_op_class(op->op_class)); in wpas_channel_report_freqs()
651 u8 op_class, u8 chan, int active, in wpas_beacon_request_freqs() argument
666 op = get_oper_class(country, op_class); in wpas_beacon_request_freqs()
670 op_class); in wpas_beacon_request_freqs()
[all …]
Dmesh.c453 conf->op_class = 136; in wpa_supplicant_mesh_init()
455 conf->op_class = 131; in wpa_supplicant_mesh_init()
458 conf->op_class = 132; in wpa_supplicant_mesh_init()
461 conf->op_class = 133; in wpa_supplicant_mesh_init()
464 conf->op_class = 134; in wpa_supplicant_mesh_init()
467 conf->op_class = 131; in wpa_supplicant_mesh_init()
Dp2p_supplicant.c1958 u8 *op_class, u8 *op_edmg_channel) in wpas_p2p_freq_to_edmg_channel() argument
1983 op_class, in wpas_p2p_freq_to_edmg_channel()
1992 freq, *op_edmg_channel, *op_class); in wpas_p2p_freq_to_edmg_channel()
2004 u8 op_channel, op_class; in wpas_p2p_try_edmg_channel() local
2010 if (wpas_p2p_freq_to_edmg_channel(wpa_s, freq, &op_class, in wpas_p2p_try_edmg_channel()
2014 freq, op_channel, op_class); in wpas_p2p_try_edmg_channel()
2060 u8 op_channel, op_class; in wpas_start_wps_go() local
2063 &op_class, &op_channel)) { in wpas_start_wps_go()
3576 struct hostapd_hw_modes *mode, u8 op_class, in has_channel() argument
3582 freq = ieee80211_chan_to_freq(NULL, op_class, chan); in has_channel()
[all …]
Dwnm_sta.c531 static int wnm_nei_get_chan(struct wpa_supplicant *wpa_s, u8 op_class, u8 chan) in wnm_nei_get_chan() argument
544 freq = ieee80211_chan_to_freq(country, op_class, chan); in wnm_nei_get_chan()
545 if (freq <= 0 && op_class == 0) { in wnm_nei_get_chan()
887 u32 bss_info, u8 op_class, u8 chan, u8 phy_type, in wnm_add_nei_rep() argument
908 wpabuf_put_u8(*buf, op_class); in wnm_add_nei_rep()
923 u8 op_class, chan; in wnm_nei_rep_add_bss() local
951 if (ieee80211_freq_to_channel_ext(bss->freq, sec_chan, vht, &op_class, in wnm_nei_rep_add_bss()
968 return wnm_add_nei_rep(buf, bss->bssid, info, op_class, chan, phy_type, in wnm_nei_rep_add_bss()
Dap.c90 &conf->op_class, in wpas_conf_ap_vht()
118 conf->op_class); in wpas_conf_ap_vht()
125 conf->op_class); in wpas_conf_ap_vht()
139 &conf->op_class, in wpas_conf_ap_vht()
142 conf->op_class); in wpas_conf_ap_vht()
151 &conf->op_class, in wpas_conf_ap_vht()
155 conf->op_class); in wpas_conf_ap_vht()
270 &conf->op_class, in wpa_supplicant_conf_ap_ht()
Dp2p_supplicant.h154 u8 op_class);
157 u8 op_class);
/freebsd-12-stable/contrib/wpa/src/common/
Dieee802_11_common.c873 u8 op_class; in ieee80211_freq_to_chan() local
876 &op_class, channel); in ieee80211_freq_to_chan()
893 u8 *op_class, u8 *channel) in ieee80211_freq_to_channel_ext() argument
911 *op_class = 83; in ieee80211_freq_to_channel_ext()
913 *op_class = 84; in ieee80211_freq_to_channel_ext()
915 *op_class = 81; in ieee80211_freq_to_channel_ext()
926 *op_class = 82; /* channel 14 */ in ieee80211_freq_to_channel_ext()
936 *op_class = 0; /* TODO */ in ieee80211_freq_to_channel_ext()
961 *op_class = vht_opclass; in ieee80211_freq_to_channel_ext()
963 *op_class = 116; in ieee80211_freq_to_channel_ext()
[all …]
Docv.c26 oci->freq = ieee80211_chan_to_freq(NULL, oci->op_class, oci->channel); in ocv_derive_all_parameters()
30 oci->op_class, oci->channel); in ocv_derive_all_parameters()
34 op_class_map = get_oper_class(NULL, oci->op_class); in ocv_derive_all_parameters()
38 oci->op_class); in ocv_derive_all_parameters()
57 u8 op_class, channel; in ocv_insert_oci() local
62 &op_class, &channel) < 0) { in ocv_insert_oci()
68 *pos++ = op_class; in ocv_insert_oci()
121 oci.op_class = oci_ie[0]; in ocv_verify_tx_params()
Dieee802_11_common.h213 int ieee80211_chan_to_freq(const char *country, u8 op_class, u8 chan);
216 u8 *op_class, u8 *channel);
218 int sec_channel, u8 *op_class, u8 *channel);
221 int is_dfs_global_op_class(u8 op_class);
235 u8 op_class; member
260 u8 country_to_global_op_class(const char *country, u8 op_class);
262 const struct oper_class_map * get_oper_class(const char *country, u8 op_class);
266 bool is_6ghz_op_class(u8 op_class);
277 int op_class_to_bandwidth(u8 op_class);
278 int op_class_to_ch_width(u8 op_class);
Docv.h16 u8 op_class; member
/freebsd-12-stable/contrib/wpa/src/p2p/
Dp2p_utils.c57 int p2p_channel_to_freq(int op_class, int channel) in p2p_channel_to_freq() argument
59 return ieee80211_chan_to_freq(NULL, op_class, channel); in p2p_channel_to_freq()
69 int p2p_freq_to_channel(unsigned int freq, u8 *op_class, u8 *channel) in p2p_freq_to_channel() argument
71 if (ieee80211_freq_to_channel_ext(freq, 0, 0, op_class, channel) == in p2p_freq_to_channel()
332 freq = p2p_channel_to_freq(p2p->cfg->pref_chan[i].op_class, in p2p_get_pref_freq()
385 u8 *op_class, u8 *op_channel) in p2p_channel_select() argument
401 *op_class = c->reg_class; in p2p_channel_select()
415 int p2p_channel_random_social(struct p2p_channels *chans, u8 *op_class, in p2p_channel_random_social() argument
451 *op_class = 180; in p2p_channel_random_social()
453 *op_class = 81; in p2p_channel_random_social()
Dp2p_go_neg.c448 p2p->cfg->pref_chan[i].op_class, in p2p_reselect_channel()
450 p2p->op_reg_class = p2p->cfg->pref_chan[i].op_class; in p2p_reselect_channel()
567 u8 op_class, op_channel; in p2p_check_pref_chan_no_recv() local
581 if (p2p_freq_to_channel(oper_freq, &op_class, in p2p_check_pref_chan_no_recv()
589 p2p->op_reg_class = op_class; in p2p_check_pref_chan_no_recv()
614 u8 op_class, op_channel; in p2p_check_pref_chan_recv() local
630 if (p2p_freq_to_channel(oper_freq, &op_class, in p2p_check_pref_chan_recv()
633 p2p->op_reg_class = op_class; in p2p_check_pref_chan_recv()
657 u8 op_class, op_channel; in p2p_check_pref_chan() local
678 if (p2p_freq_to_channel(freq_list[i], &op_class, in p2p_check_pref_chan()
[all …]
Dp2p.c1375 u8 op_class, op_channel; in p2p_prepare_channel_pref() local
1380 if (p2p_freq_to_channel(freq, &op_class, &op_channel) < 0) { in p2p_prepare_channel_pref()
1385 if (!p2p_channels_includes(&p2p->cfg->channels, op_class, op_channel) && in p2p_prepare_channel_pref()
1386 (go || !p2p_channels_includes(&p2p->cfg->cli_channels, op_class, in p2p_prepare_channel_pref()
1389 freq, op_class, op_channel); in p2p_prepare_channel_pref()
1393 p2p->op_reg_class = op_class; in p2p_prepare_channel_pref()
1412 u8 op_class, op_channel; in p2p_prepare_channel_best() local
1423 p2p_freq_to_channel(p2p->best_freq_overall, &op_class, &op_channel) in p2p_prepare_channel_best()
1426 p2p->op_reg_class = op_class; in p2p_prepare_channel_best()
1430 p2p_freq_to_channel(p2p->best_freq_5, &op_class, &op_channel) in p2p_prepare_channel_best()
[all …]
Dp2p_i.h682 int p2p_channel_to_freq(int op_class, int channel);
683 int p2p_freq_to_channel(unsigned int freq, u8 *op_class, u8 *channel);
699 u8 *op_class, u8 *op_channel);
700 int p2p_channel_random_social(struct p2p_channels *chans, u8 *op_class,
Dp2p_build.c118 u8 op_class, op_channel; in p2p_buf_add_pref_channel_list() local
129 if (p2p_freq_to_channel(preferred_freq_list[i], &op_class, in p2p_buf_add_pref_channel_list()
139 if (p2p_freq_to_channel(preferred_freq_list[i], &op_class, in p2p_buf_add_pref_channel_list()
145 wpabuf_put_u8(buf, op_class); in p2p_buf_add_pref_channel_list()
Dp2p.h423 u8 op_class; member
2035 int p2p_config_get_random_social(struct p2p_config *p2p, u8 *op_class,
2402 void p2p_set_override_pref_op_chan(struct p2p_data *p2p, u8 op_class,
/freebsd-12-stable/contrib/wpa/src/ap/
Dbeacon.c405 u8 op_class, channel; in hostapd_eid_supported_op_classes() local
414 &op_class, &channel) == in hostapd_eid_supported_op_classes()
422 *eid++ = op_class; in hostapd_eid_supported_op_classes()
466 if (is_6ghz_op_class(hapd->iconf->op_class)) in hostapd_gen_probe_resp()
560 !is_6ghz_op_class(hapd->iconf->op_class)) { in hostapd_gen_probe_resp()
569 is_6ghz_op_class(hapd->iconf->op_class)) in hostapd_gen_probe_resp()
697 is_6ghz_op_class(hapd->iconf->op_class)) in ssid_match()
706 !is_6ghz_op_class(colocated->conf->op_class)) in ssid_match()
1161 if (!is_6ghz_op_class(hapd->iconf->op_class)) in hostapd_unsol_bcast_probe_resp()
1195 if (is_6ghz_op_class(hapd->iconf->op_class)) { in hostapd_fils_discovery_cap()
[all …]
Dmbo_ap.c48 info->op_class = buf[0]; in mbo_ap_parse_non_pref_chan()
78 MAC2STR(sta->addr), info->op_class, info->pref, in mbo_ap_parse_non_pref_chan()
136 count, info->op_class, info->pref, in mbo_ap_get_info()
Dieee802_11_he.c174 if (is_6ghz_op_class(hapd->iconf->op_class)) in hostapd_eid_he_operation()
213 if (is_6ghz_op_class(hapd->iconf->op_class)) { in hostapd_eid_he_operation()
346 if (!mode || !is_6ghz_op_class(hapd->iconf->op_class) || in hostapd_eid_he_6ghz_band_cap()
487 !is_6ghz_op_class(hapd->iconf->op_class)) { in copy_sta_he_6ghz_capab()
Dneighbor_db.c229 u8 channel, op_class; in hostapd_neighbor_set_own_report() local
272 &op_class, &channel) == in hostapd_neighbor_set_own_report()
302 wpabuf_put_u8(nr, op_class); in hostapd_neighbor_set_own_report()
Dieee802_11_ht.c30 hapd->conf->disable_11n || is_6ghz_op_class(hapd->iconf->op_class)) in hostapd_eid_ht_capabilities()
88 is_6ghz_op_class(hapd->iconf->op_class)) in hostapd_eid_ht_operation()
306 ic_report->op_class); in hostapd_2040_coex_action()
Dieee802_11_vht.c29 if (!mode || is_6ghz_op_class(hapd->iconf->op_class)) in hostapd_eid_vht_capabilities()
79 if (is_6ghz_op_class(hapd->iconf->op_class)) in hostapd_eid_vht_operation()
Dacs.c848 if (is_6ghz_op_class(iface->conf->op_class)) { in acs_find_ideal_chan()
849 bw = op_class_to_bandwidth(iface->conf->op_class); in acs_find_ideal_chan()
/freebsd-12-stable/contrib/wpa/src/fst/
Dfst_group.c39 mbie->mb_ctrl, mbie->band_id, mbie->op_class, in fst_dump_mb_ies()
79 mbie->op_class = 0; /* means all */ in fst_fill_mb_ie()

12