Home
last modified time | relevance | path

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

12

/freebsd/contrib/wpa/wpa_supplicant/
H A Dop_classes.c21 u8 op_class, u8 chan, in allow_channel() argument
25 bool is_6ghz = is_6ghz_op_class(op_class); in allow_channel()
72 u8 op_class, u8 channel) in verify_80mhz() argument
83 if (is_6ghz_op_class(op_class)) { in verify_80mhz()
101 if (allow_channel(mode, op_class, adj_chan, &flags) == in verify_80mhz()
142 u8 op_class, u8 channel) in verify_160mhz() argument
152 if (is_6ghz_op_class(op_class)) { in verify_160mhz()
170 if (allow_channel(mode, op_class, adj_chan, &flags) == in verify_160mhz()
212 u8 op_class, u8 channel) in verify_320mhz() argument
234 if (allow_channel(mode, op_class, adj_chan, &flags) == in verify_320mhz()
[all …]
H A 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()
534 enum chan_allowed res = verify_channel(mode, op->op_class, chan, in wpas_add_channels()
540 if (wpas_add_channel(op->op_class, chan, num_primary_channels, in wpas_add_channels()
569 bool is_6ghz = is_6ghz_op_class(op->op_class); in wpas_op_class_freqs()
628 is_6ghz_op_class(op->op_class)); in wpas_channel_report_freqs()
657 u8 op_class, u8 chan, in wpas_beacon_request_freqs() argument
672 op = get_oper_class(country, op_class); in wpas_beacon_request_freqs()
676 op_class); in wpas_beacon_request_freqs()
[all …]
H A Dmesh.c454 conf->op_class = 136; in wpa_supplicant_mesh_init()
456 conf->op_class = 131; in wpa_supplicant_mesh_init()
459 conf->op_class = 132; in wpa_supplicant_mesh_init()
462 conf->op_class = 133; in wpa_supplicant_mesh_init()
465 conf->op_class = 134; in wpa_supplicant_mesh_init()
468 conf->op_class = 131; in wpa_supplicant_mesh_init()
H A Dp2p_supplicant.c1986 u8 *op_class, u8 *op_edmg_channel) in wpas_p2p_freq_to_edmg_channel() argument
2011 op_class, in wpas_p2p_freq_to_edmg_channel()
2020 freq, *op_edmg_channel, *op_class); in wpas_p2p_freq_to_edmg_channel()
2032 u8 op_channel, op_class; in wpas_p2p_try_edmg_channel() local
2038 if (wpas_p2p_freq_to_edmg_channel(wpa_s, freq, &op_class, in wpas_p2p_try_edmg_channel()
2042 freq, op_channel, op_class); in wpas_p2p_try_edmg_channel()
2088 u8 op_channel, op_class; in wpas_start_wps_go() local
2091 &op_class, &op_channel)) { in wpas_start_wps_go()
3699 struct hostapd_hw_modes *mode, u8 op_class, in has_channel() argument
3705 freq = ieee80211_chan_to_freq(NULL, op_class, chan); in has_channel()
[all …]
H A Dwnm_sta.c545 static int wnm_nei_get_chan(struct wpa_supplicant *wpa_s, u8 op_class, u8 chan) in wnm_nei_get_chan() argument
558 freq = ieee80211_chan_to_freq(country, op_class, chan); in wnm_nei_get_chan()
559 if (freq <= 0 && op_class == 0) { in wnm_nei_get_chan()
909 u32 bss_info, u8 op_class, u8 chan, u8 phy_type, in wnm_add_nei_rep() argument
930 wpabuf_put_u8(*buf, op_class); in wnm_add_nei_rep()
945 u8 op_class, chan; in wnm_nei_rep_add_bss() local
974 if (ieee80211_freq_to_channel_ext(bss->freq, sec_chan, vht, &op_class, in wnm_nei_rep_add_bss()
991 return wnm_add_nei_rep(buf, bss->bssid, info, op_class, chan, phy_type, in wnm_nei_rep_add_bss()
H A 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()
180 &conf->op_class, &conf->channel); in wpas_conf_ap_vht()
273 &conf->op_class, in wpa_supplicant_conf_ap_ht()
H A Dp2p_supplicant.h158 u8 op_class);
161 u8 op_class);
/freebsd/contrib/wpa/src/common/
H A Dieee802_11_common.c1365 u8 op_class; in ieee80211_freq_to_chan() local
1368 &op_class, channel); in ieee80211_freq_to_chan()
1385 u8 *op_class, u8 *channel) in ieee80211_freq_to_channel_ext() argument
1403 *op_class = 83; in ieee80211_freq_to_channel_ext()
1405 *op_class = 84; in ieee80211_freq_to_channel_ext()
1407 *op_class = 81; in ieee80211_freq_to_channel_ext()
1418 *op_class = 82; /* channel 14 */ in ieee80211_freq_to_channel_ext()
1428 *op_class = 0; /* TODO */ in ieee80211_freq_to_channel_ext()
1453 *op_class = vht_opclass; in ieee80211_freq_to_channel_ext()
1455 *op_class = 116; in ieee80211_freq_to_channel_ext()
[all …]
H A 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()
H A Dieee802_11_common.h236 int ieee80211_chan_to_freq(const char *country, u8 op_class, u8 chan);
240 u8 *op_class, u8 *channel);
242 int sec_channel, u8 *op_class, u8 *channel);
245 int is_dfs_global_op_class(u8 op_class);
246 bool is_80plus_op_class(u8 op_class);
260 u8 op_class; member
288 u8 country_to_global_op_class(const char *country, u8 op_class);
290 const struct oper_class_map * get_oper_class(const char *country, u8 op_class);
294 bool is_6ghz_op_class(u8 op_class);
309 int op_class_to_bandwidth(u8 op_class);
[all …]
H A Docv.h16 u8 op_class; member
/freebsd/contrib/wpa/src/p2p/
H A 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()
[all …]
H A Dp2p_go_neg.c485 p2p->cfg->pref_chan[i].op_class, in p2p_reselect_channel()
487 p2p->op_reg_class = p2p->cfg->pref_chan[i].op_class; in p2p_reselect_channel()
605 u8 op_class, op_channel; in p2p_check_pref_chan_no_recv() local
619 if (p2p_freq_to_channel(oper_freq, &op_class, in p2p_check_pref_chan_no_recv()
628 p2p->op_reg_class = op_class; in p2p_check_pref_chan_no_recv()
654 u8 op_class, op_channel; in p2p_check_pref_chan_recv() local
670 if (p2p_freq_to_channel(oper_freq, &op_class, in p2p_check_pref_chan_recv()
675 p2p->op_reg_class = op_class; in p2p_check_pref_chan_recv()
699 u8 op_class, op_channel; in p2p_check_pref_chan() local
728 &op_class, &op_channel) < 0 || in p2p_check_pref_chan()
[all …]
H A Dp2p.c1403 u8 op_class, op_channel; in p2p_prepare_channel_pref() local
1408 if (p2p_freq_to_channel(freq, &op_class, &op_channel) < 0) { in p2p_prepare_channel_pref()
1413 if (!p2p_channels_includes(&p2p->cfg->channels, op_class, op_channel) && in p2p_prepare_channel_pref()
1414 (go || !p2p_channels_includes(&p2p->cfg->cli_channels, op_class, in p2p_prepare_channel_pref()
1417 freq, op_class, op_channel); in p2p_prepare_channel_pref()
1421 p2p->op_reg_class = op_class; in p2p_prepare_channel_pref()
1440 u8 op_class, op_channel; in p2p_prepare_channel_best() local
1451 p2p_freq_to_channel(p2p->best_freq_overall, &op_class, &op_channel) in p2p_prepare_channel_best()
1454 p2p->op_reg_class = op_class; in p2p_prepare_channel_best()
1458 p2p_freq_to_channel(p2p->best_freq_5, &op_class, &op_channel) in p2p_prepare_channel_best()
[all …]
H A Dp2p_build.c119 u8 op_class, op_channel; in p2p_buf_add_pref_channel_list() local
130 if (p2p_freq_to_channel(pref_freq_list[i].freq, &op_class, in p2p_buf_add_pref_channel_list()
141 if (p2p_freq_to_channel(pref_freq_list[i].freq, &op_class, in p2p_buf_add_pref_channel_list()
148 wpabuf_put_u8(buf, op_class); in p2p_buf_add_pref_channel_list()
H A Dp2p.h425 u8 op_class; member
2038 int p2p_config_get_random_social(struct p2p_config *p2p, u8 *op_class,
2407 void p2p_set_override_pref_op_chan(struct p2p_data *p2p, u8 op_class,
2431 int p2p_channel_to_freq(int op_class, int channel);
/freebsd/contrib/wpa/src/ap/
H A Dbeacon.c209 if (!is_6ghz_op_class(hapd->iconf->op_class)) in hostapd_eid_country_add()
275 if (is_6ghz_op_class(hapd->iconf->op_class)) { in hostapd_eid_country()
285 *pos++ = hapd->iconf->op_class; in hostapd_eid_country()
289 if (hapd->iconf->op_class == 131 || in hostapd_eid_country()
290 hapd->iconf->op_class == 136) in hostapd_eid_country()
444 u8 op_class, channel; in hostapd_eid_supported_op_classes() local
453 &op_class, &channel) == in hostapd_eid_supported_op_classes()
461 *eid++ = op_class; in hostapd_eid_supported_op_classes()
578 if (is_6ghz_op_class(hapd->iconf->op_class)) { in he_elem_len()
789 !is_6ghz_op_class(hapd->iconf->op_class)) { in hostapd_probe_resp_fill_elems()
[all …]
H A 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()
H A Dieee802_11_he.c182 if (is_6ghz_op_class(hapd->iconf->op_class)) in hostapd_eid_he_operation()
222 if (is_6ghz_op_class(hapd->iconf->op_class)) { in hostapd_eid_he_operation()
378 if (!mode || !is_6ghz_op_class(hapd->iconf->op_class) || in hostapd_eid_he_6ghz_band_cap()
519 !is_6ghz_op_class(hapd->iconf->op_class)) { in copy_sta_he_6ghz_capab()
H A Dneighbor_db.c239 u8 channel, op_class; in hostapd_neighbor_set_own_report() local
284 &op_class, &channel) == in hostapd_neighbor_set_own_report()
314 wpabuf_put_u8(nr, op_class); in hostapd_neighbor_set_own_report()
H A Dap_config.h1041 u8 op_class; member
1293 if (is_6ghz_op_class(conf->op_class) && in hostapd_set_oper_centr_freq_seg0_idx()
1330 if (conf->ieee80211be && is_6ghz_op_class(conf->op_class) && in hostapd_get_bw320_offset()
1342 if (conf->ieee80211be && is_6ghz_op_class(conf->op_class) && in hostapd_set_and_check_bw320_offset()
1343 op_class_to_ch_width(conf->op_class) == CONF_OPER_CHWIDTH_320MHZ) { in hostapd_set_and_check_bw320_offset()
H A Dieee802_11_eht.c124 len += ieee80211_eht_mcs_set_size(mode->mode, hapd->iconf->op_class, in hostapd_eid_eht_capab_len()
161 if (!is_6ghz_op_class(hapd->iconf->op_class)) in hostapd_eid_eht_capab()
179 hapd->iconf->op_class, in hostapd_eid_eht_capab()
214 if (is_6ghz_op_class(conf->op_class)) in hostapd_eid_eht_operation()
215 chwidth = op_class_to_ch_width(conf->op_class); in hostapd_eid_eht_operation()
334 if (ieee80211_eht_mcs_set_size(mode->mode, hapd->iconf->op_class, in check_valid_eht_mcs()
401 ieee80211_invalid_eht_cap_size(mode, hapd->iconf->op_class, in copy_sta_eht_capab()
H A 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()
H A Dieee802_11_vht.c30 if (!mode || is_6ghz_op_class(hapd->iconf->op_class)) in hostapd_eid_vht_capabilities()
87 if (is_6ghz_op_class(hapd->iconf->op_class)) in hostapd_eid_vht_operation()
/freebsd/contrib/wpa/src/fst/
H A Dfst_group.c44 mbie->mb_ctrl, mbie->band_id, mbie->op_class, in fst_dump_mb_ies()
84 mbie->op_class = 0; /* means all */ in fst_fill_mb_ie()

12