Home
last modified time | relevance | path

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

123

/freebsd/contrib/wpa/wpa_supplicant/
H A Dop_classes.c22 u8 op_class, u8 chan, in allow_channel() argument
26 bool is_6ghz = is_6ghz_op_class(op_class); 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()
143 u8 op_class, u8 channel) in verify_160mhz() argument
153 if (is_6ghz_op_class(op_class)) { in verify_160mhz()
171 if (allow_channel(mode, op_class, adj_chan, &flags) == in verify_160mhz()
214 u8 op_class, u8 channel) in verify_320mhz() argument
236 if (allow_channel(mode, op_class, adj_chan, &flags) == in verify_320mhz()
[all …]
H A Dpr_supplicant.c147 static int wpas_pr_op_class_to_chan_params(u8 op_class, u8 op_channel, in wpas_pr_op_class_to_chan_params() argument
163 if (op_class == 130 || op_class == 135) { in wpas_pr_op_class_to_chan_params()
166 op_class); in wpas_pr_op_class_to_chan_params()
170 control_freq = ieee80211_chan_to_freq(NULL, op_class, op_channel); in wpas_pr_op_class_to_chan_params()
173 op_class, op_channel); in wpas_pr_op_class_to_chan_params()
177 bw = op_class_to_bandwidth(op_class); in wpas_pr_op_class_to_chan_params()
184 if (op_class == 83) { in wpas_pr_op_class_to_chan_params()
189 if (op_class == 84) { in wpas_pr_op_class_to_chan_params()
227 op_class, op_channel, control_freq, *center_freq1, bw); in wpas_pr_op_class_to_chan_params()
242 for (i = 0; global_op_class[i].op_class; i++) { in wpas_pr_setup_edca_channels()
[all …]
H A Drrm.c515 static int wpas_add_channel(u8 op_class, u8 chan, u8 num_primary_channels, in wpas_add_channel() argument
523 freqs[i] = ieee80211_chan_to_freq(NULL, op_class, primary_chan); in wpas_add_channel()
528 (op_class == 128 || op_class == 129 || op_class == 130)) in wpas_add_channel()
573 enum chan_allowed res = verify_channel(mode, op->op_class, chan, in wpas_add_channels()
579 if (wpas_add_channel(op->op_class, chan, num_primary_channels, in wpas_add_channels()
608 bool is_6ghz = is_6ghz_op_class(op->op_class); in wpas_op_class_freqs()
667 is_6ghz_op_class(op->op_class)); in wpas_channel_report_freqs()
696 u8 op_class, u8 chan, in wpas_beacon_request_freqs() argument
711 op = get_oper_class(country, op_class); in wpas_beacon_request_freqs()
715 op_class); in wpas_beacon_request_freqs()
[all …]
H A Dnan_supplicant.c113 u8 channel, int bw, u8 op_class, u8 *cf1) in wpas_nan_valid_chan() argument
132 int freq = ieee80211_chan_to_freq(NULL, op_class, c); in wpas_nan_valid_chan()
151 return verify_channel(hw_mode, op_class, channel, bw) == ALLOWED; in wpas_nan_valid_chan()
885 for (op = 0; global_op_class[op].op_class; op++) { in wpas_nan_get_chans_cb()
890 if (o->op_class > 129) in wpas_nan_get_chans_cb()
904 o->op_class, &center)) in wpas_nan_get_chans_cb()
907 freq = ieee80211_chan_to_freq(NULL, o->op_class, c); in wpas_nan_get_chans_cb()
936 chan_list[chan_count].op_class = o->op_class; in wpas_nan_get_chans_cb()
1585 u8 op_class, pref; in wpas_nan_parse_override_potential_avail() local
1590 if (sscanf(pos, "%hhu:0x%hx:%hhu", &op_class, &bitmap, &pref) != in wpas_nan_parse_override_potential_avail()
[all …]
H A Dmesh.c435 conf->op_class = 136; in wpa_supplicant_mesh_init()
437 conf->op_class = 131; in wpa_supplicant_mesh_init()
440 conf->op_class = 132; in wpa_supplicant_mesh_init()
443 conf->op_class = 133; in wpa_supplicant_mesh_init()
446 conf->op_class = 134; in wpa_supplicant_mesh_init()
449 conf->op_class = 137; in wpa_supplicant_mesh_init()
452 conf->op_class = 131; in wpa_supplicant_mesh_init()
H A Dp2p_supplicant.c2400 u8 *op_class, u8 *op_edmg_channel) in wpas_p2p_freq_to_edmg_channel() argument
2425 op_class, in wpas_p2p_freq_to_edmg_channel()
2434 freq, *op_edmg_channel, *op_class); in wpas_p2p_freq_to_edmg_channel()
2446 u8 op_channel, op_class; in wpas_p2p_try_edmg_channel() local
2452 if (wpas_p2p_freq_to_edmg_channel(wpa_s, freq, &op_class, in wpas_p2p_try_edmg_channel()
2456 freq, op_channel, op_class); in wpas_p2p_try_edmg_channel()
2502 u8 op_channel, op_class; in wpas_start_go() local
2505 &op_class, &op_channel)) { in wpas_start_go()
4353 struct hostapd_hw_modes *mode, u8 op_class, in has_channel() argument
4359 freq = ieee80211_chan_to_freq(NULL, op_class, chan); in has_channel()
[all …]
/freebsd/contrib/wpa/src/common/
H A Dieee802_11_common.c1492 u8 op_class; in ieee80211_freq_to_chan() local
1495 &op_class, channel); in ieee80211_freq_to_chan()
1512 u8 *op_class, u8 *channel) in ieee80211_freq_to_channel_ext() argument
1530 *op_class = 83; in ieee80211_freq_to_channel_ext()
1532 *op_class = 84; in ieee80211_freq_to_channel_ext()
1534 *op_class = 81; in ieee80211_freq_to_channel_ext()
1545 *op_class = 82; /* channel 14 */ in ieee80211_freq_to_channel_ext()
1555 *op_class = 0; /* TODO */ in ieee80211_freq_to_channel_ext()
1580 *op_class = vht_opclass; in ieee80211_freq_to_channel_ext()
1582 *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 Dproximity_ranging.c543 if (is_6ghz_op_class(src->op_class[i].op_class)) in pr_copy_channels()
545 os_memcpy(&dst->op_class[j], &src->op_class[i], in pr_copy_channels()
559 res->op_class = a->op_class; in pr_op_class_intersect()
596 a_op = &a->op_class[i]; in pr_channels_intersect()
598 b_op = &b->op_class[j]; in pr_channels_intersect()
599 if (a_op->op_class != b_op->op_class) in pr_channels_intersect()
602 &res->op_class[res->op_classes]); in pr_channels_intersect()
603 if (res->op_class[res->op_classes].channels) { in pr_channels_intersect()
625 const struct pr_op_class *c = &chan->op_class[i]; in pr_buf_add_channel_list()
627 wpabuf_put_u8(buf, c->op_class); in pr_buf_add_channel_list()
[all …]
H A Dieee802_11_common.h266 int ieee80211_chan_to_freq(const char *country, u8 op_class, u8 chan);
270 u8 *op_class, u8 *channel);
272 int sec_channel, u8 *op_class, u8 *channel);
275 int is_dfs_global_op_class(u8 op_class);
276 bool is_80plus_op_class(u8 op_class);
290 u8 op_class; member
318 u8 country_to_global_op_class(const char *country, u8 op_class);
320 const struct oper_class_map * get_oper_class(const char *country, u8 op_class);
326 bool is_6ghz_op_class(u8 op_class);
345 int op_class_to_bandwidth(u8 op_class);
[all …]
H A Dproximity_ranging.h78 u8 op_class; member
89 } op_class[PR_MAX_OP_CLASSES]; member
593 void (*pasn_result)(void *ctx, u8 role, u8 protocol_type, u8 op_class,
603 u8 protocol_type, u8 op_class, u8 op_channel,
H A Docv.h16 u8 op_class; member
/freebsd/contrib/wpa/src/nan/
H A Dnan_util.c489 u8 op_class, u8 channel, u16 *chan_idx_map) in nan_chan_to_chan_idx_map() argument
497 op_c = get_oper_class(NULL, op_class); in nan_chan_to_chan_idx_map()
515 u8 type, u8 op_class, u16 chan_bm, in nan_add_avail_entry() argument
558 wpabuf_put_u8(buf, op_class); in nan_add_avail_entry()
568 u8 *op_class, u16 *chan_bm, u16 *pri_chan_bm) in nan_get_chan_bm() argument
622 bandwidth, op_class, &channel); in nan_get_chan_bm()
630 *op_class, channel); in nan_get_chan_bm()
632 ret = nan_chan_to_chan_idx_map(nan, *op_class, channel, chan_bm); in nan_get_chan_bm()
688 wpabuf_put_u8(buf, cur->op_class); in nan_add_pot_avail_entry()
725 ret = nan_chan_to_chan_idx_map(nan, chan->op_class, in nan_build_pot_avail_entry_with_chans()
[all …]
H A Dnan_module_test_cases.c113 chans->chans[0].op_class = 81; in nan_test_get_chans_default()
117 chans->chans[1].op_class = 126; in nan_test_get_chans_default()
133 chans->chans[0].op_class = 126; in nan_test_get_chans_default_reverse()
137 chans->chans[1].op_class = 81; in nan_test_get_chans_default_reverse()
153 chans->chans[0].op_class = 81; in nan_test_get_chans_default_24g()
169 chans->chans[0].op_class = 126; in nan_test_get_chans_default_52g()
H A Dnan_i.h742 u8 op_class, u8 channel, u16 *chan_idx_map);
759 u8 *op_class, u16 *cbm, u16 *pcbm);
761 u8 *op_class, u16 *chan_bm, u16 *pri_chan_bm);
784 struct bitfield *sched_bf, u8 map_id, u8 op_class, u16 cbm);
787 u8 op_class, u16 cbm, u16 pri_cbm);
/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.c508 p2p->cfg->pref_chan[i].op_class, in p2p_reselect_channel()
510 p2p->op_reg_class = p2p->cfg->pref_chan[i].op_class; in p2p_reselect_channel()
628 u8 op_class, op_channel; in p2p_check_pref_chan_no_recv() local
642 if (p2p_freq_to_channel(oper_freq, &op_class, in p2p_check_pref_chan_no_recv()
651 p2p->op_reg_class = op_class; in p2p_check_pref_chan_no_recv()
677 u8 op_class, op_channel; in p2p_check_pref_chan_recv() local
693 if (p2p_freq_to_channel(oper_freq, &op_class, in p2p_check_pref_chan_recv()
698 p2p->op_reg_class = op_class; in p2p_check_pref_chan_recv()
722 u8 op_class, op_channel; in p2p_check_pref_chan() local
755 &op_class, &op_channel) < 0 || in p2p_check_pref_chan()
[all …]
/freebsd/contrib/wpa/src/ap/
H A Dafc.c188 static struct wpabuf * hostapd_afc_get_opclass_chan_list(u8 op_class) in hostapd_afc_get_opclass_chan_list() argument
195 oper_class = get_oper_class(NULL, op_class); in hostapd_afc_get_opclass_chan_list()
204 switch (op_class) { in hostapd_afc_get_opclass_chan_list()
254 num = int_array_len(iconf->afc.op_class); in hostapd_afc_build_req_chan_list()
257 u8 op_class = iconf->afc.op_class[i]; in hostapd_afc_build_req_chan_list() local
259 if (!is_6ghz_op_class(op_class)) in hostapd_afc_build_req_chan_list()
265 op_class); in hostapd_afc_build_req_chan_list()
268 chan_list_obj = hostapd_afc_get_opclass_chan_list(op_class); in hostapd_afc_build_req_chan_list()
460 int *chan_list_size, u8 op_class, in hostad_afc_update_chan_info() argument
467 switch (op_class) { in hostad_afc_update_chan_info()
[all …]
H A Ddfs.c985 u8 op_class, chan; in hostapd_dfs_request_channel_switch() local
995 new_vht_oper_chwidth, &op_class, in hostapd_dfs_request_channel_switch()
998 iface->conf->op_class, op_class); in hostapd_dfs_request_channel_switch()
999 iface->conf->op_class = op_class; in hostapd_dfs_request_channel_switch()
1060 &op_class, &chan) != in hostapd_dfs_request_channel_switch()
1063 iface->conf->op_class, op_class); in hostapd_dfs_request_channel_switch()
1064 iface->conf->op_class = op_class; in hostapd_dfs_request_channel_switch()
1338 u8 op_class, chan; in hostapd_dfs_start_channel_switch_cac() local
1373 &op_class, &chan) != in hostapd_dfs_start_channel_switch_cac()
1376 iface->conf->op_class, op_class); in hostapd_dfs_start_channel_switch_cac()
[all …]
H A Dbeacon.c210 if (!is_6ghz_op_class(hapd->iconf->op_class)) in hostapd_eid_country_add()
266 u8 op_class; in hostapd_eid_country() local
273 op_class = hostapd_get_oper_class_of_bss(hapd); in hostapd_eid_country()
281 force_global = is_6ghz_op_class(op_class); in hostapd_eid_country()
296 if (is_6ghz_op_class(op_class)) { in hostapd_eid_country()
302 *pos++ = op_class; in hostapd_eid_country()
306 if (op_class == 131 || op_class == 136) in hostapd_eid_country()
556 u8 op_class, channel; in hostapd_eid_supported_op_classes() local
575 &op_class, &channel) == in hostapd_eid_supported_op_classes()
583 *eid++ = op_class; in hostapd_eid_supported_op_classes()
[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 Dneighbor_db.c238 u8 channel, op_class; in hostapd_neighbor_set_own_report() local
290 &op_class, &channel) == in hostapd_neighbor_set_own_report()
319 wpabuf_put_u8(nr, op_class); in hostapd_neighbor_set_own_report()
H A Dieee802_11_he.c167 if (is_6ghz_op_class(hapd->iconf->op_class)) in hostapd_eid_he_operation()
207 if (is_6ghz_op_class(hapd->iconf->op_class)) { in hostapd_eid_he_operation()
366 if (!mode || !is_6ghz_op_class(hapd->iconf->op_class) || in hostapd_eid_he_6ghz_band_cap()
507 !is_6ghz_op_class(hapd->iconf->op_class) || in copy_sta_he_6ghz_capab()
H A Dap_config.h1078 u8 op_class; member
1319 int *op_class; /* int array */ member
1378 if (is_6ghz_op_class(conf->op_class) && in hostapd_set_oper_centr_freq_seg0_idx()
1415 if (conf->ieee80211be && is_6ghz_op_class(conf->op_class) && in hostapd_get_bw320_offset()
1427 if (conf->ieee80211be && is_6ghz_op_class(conf->op_class) && in hostapd_set_and_check_bw320_offset()
1428 op_class_to_ch_width(conf->op_class) == CONF_OPER_CHWIDTH_320MHZ) { in hostapd_set_and_check_bw320_offset()
H A Dieee802_11_ht.c30 is_6ghz_op_class(hapd->iconf->op_class)) in hostapd_eid_ht_capabilities()
133 is_6ghz_op_class(hapd->iconf->op_class)) in hostapd_eid_ht_operation()
346 ic_report->op_class); in hostapd_2040_coex_action()

123