Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/wpa/wpa_supplicant/
H A Dop_classes.c212 const struct oper_class_map *op_class) in wpas_op_class_supported() argument
245 if (op_class->op_class >= 115 && op_class->op_class <= 130 && !freq5) in wpas_op_class_supported()
247 if (op_class->op_class >= 81 && op_class->op_class <= 84 && !freq2) in wpas_op_class_supported()
252 switch (op_class->op_class) { in wpas_op_class_supported()
276 if (op_class->op_class >= 128 && op_class->op_class <= 130) { in wpas_op_class_supported()
283 if (op_class->op_class == 128) { in wpas_op_class_supported()
295 if (op_class->op_class == 129) { in wpas_op_class_supported()
301 if (op_class->op_class == 130) { in wpas_op_class_supported()
325 for (chan = op_class->min_chan; chan <= op_class->max_chan; in wpas_op_class_supported()
326 chan += op_class->inc) { in wpas_op_class_supported()
[all …]
H A Drrm.c469 static int wpas_add_channel(u8 op_class, u8 chan, u8 num_primary_channels, in wpas_add_channel() argument
477 freqs[i] = ieee80211_chan_to_freq(NULL, op_class, primary_chan); in wpas_add_channel()
482 (op_class == 128 || op_class == 129 || op_class == 130)) in wpas_add_channel()
530 if (wpas_add_channel(op->op_class, chan, num_primary_channels, in wpas_add_channels()
633 u8 op_class, u8 chan, int active, in wpas_beacon_request_freqs() argument
648 op = get_oper_class(country, op_class); in wpas_beacon_request_freqs()
652 op_class); in wpas_beacon_request_freqs()
689 u8 *op_class, u8 *chan, u8 *phy_type) in wpas_get_op_chan_phy() argument
738 if (ieee80211_freq_to_channel_ext(freq, sec_chan, vht, op_class, in wpas_get_op_chan_phy()
926 if (wpas_get_op_chan_phy(bss->freq, ies, ies_len, &rep.op_class, in wpas_add_beacon_rep()
H A Dwnm_sta.c514 static int wnm_nei_get_chan(struct wpa_supplicant *wpa_s, u8 op_class, u8 chan) in wnm_nei_get_chan() argument
527 freq = ieee80211_chan_to_freq(country, op_class, chan); in wnm_nei_get_chan()
528 if (freq <= 0 && op_class == 0) { in wnm_nei_get_chan()
870 u32 bss_info, u8 op_class, u8 chan, u8 phy_type, in wnm_add_nei_rep() argument
891 wpabuf_put_u8(*buf, op_class); in wnm_add_nei_rep()
906 u8 op_class, chan; in wnm_nei_rep_add_bss() local
934 if (ieee80211_freq_to_channel_ext(bss->freq, sec_chan, vht, &op_class, in wnm_nei_rep_add_bss()
951 return wnm_add_nei_rep(buf, bss->bssid, info, op_class, chan, phy_type, in wnm_nei_rep_add_bss()
H A Dconfig.c4475 u8 op_class, chan; in wpa_config_process_p2p_pref_chan() local
4480 op_class = atoi(pos); in wpa_config_process_p2p_pref_chan()
4492 pref[num].op_class = op_class; in wpa_config_process_p2p_pref_chan()
H A Dp2p_supplicant.c3609 for (op = 0; global_op_class[op].op_class; op++) { in wpas_p2p_setup_channels()
3628 o->op_class); in wpas_p2p_setup_channels()
3631 reg->reg_class = o->op_class; in wpas_p2p_setup_channels()
3639 o->op_class); in wpas_p2p_setup_channels()
3642 cli_reg->reg_class = o->op_class; in wpas_p2p_setup_channels()
3671 for (op = 0; global_op_class[op].op_class; op++) { in wpas_p2p_get_ht40_mode()
H A Dctrl_iface.c6699 u8 channel, op_class; in p2p_ctrl_set() local
6703 op_class = pos ? atoi(pos) : 81; in p2p_ctrl_set()
6705 return p2p_set_listen_channel(wpa_s->global->p2p, op_class, in p2p_ctrl_set()
6882 int op_class, chan; in p2p_ctrl_set() local
6884 op_class = atoi(param); in p2p_ctrl_set()
6890 p2p_set_override_pref_op_chan(wpa_s->global->p2p, op_class, in p2p_ctrl_set()
H A Dconfig_file.c1249 config->p2p_pref_chan[i].op_class, in wpa_config_write_global()
/freebsd-12.1/contrib/wpa/src/common/
H A Dieee802_11_common.c707 u8 op_class; in ieee80211_freq_to_chan() local
744 *op_class = 83; in ieee80211_freq_to_channel_ext()
746 *op_class = 84; in ieee80211_freq_to_channel_ext()
748 *op_class = 81; in ieee80211_freq_to_channel_ext()
796 *op_class = 116; in ieee80211_freq_to_channel_ext()
798 *op_class = 117; in ieee80211_freq_to_channel_ext()
800 *op_class = 115; in ieee80211_freq_to_channel_ext()
815 *op_class = 119; in ieee80211_freq_to_channel_ext()
880 *op_class = 180; in ieee80211_freq_to_channel_ext()
1873 op_class = country_to_global_op_class(country, op_class); in get_oper_class()
[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()
55 u8 op_class, channel; in ocv_insert_oci() local
60 &op_class, &channel) < 0) { in ocv_insert_oci()
66 *pos++ = op_class; in ocv_insert_oci()
118 oci.op_class = oci_ie[0]; in ocv_verify_tx_params()
H A Dieee802_11_common.h174 int ieee80211_chan_to_freq(const char *country, u8 op_class, u8 chan);
177 u8 *op_class, u8 *channel);
179 int sec_channel, u8 *op_class, u8 *channel);
195 u8 op_class; member
219 u8 country_to_global_op_class(const char *country, u8 op_class);
221 const struct oper_class_map * get_oper_class(const char *country, u8 op_class);
H A Docv.h16 u8 op_class; member
H A Dieee802_11_defs.h1832 u8 op_class; member
1976 u8 op_class; /* Operating Class */ member
2012 u8 op_class; member
/freebsd-12.1/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()
H A Dp2p_go_neg.c447 p2p->cfg->pref_chan[i].op_class, in p2p_reselect_channel()
558 u8 op_class, op_channel; in p2p_check_pref_chan_no_recv() local
572 if (p2p_freq_to_channel(oper_freq, &op_class, in p2p_check_pref_chan_no_recv()
580 p2p->op_reg_class = op_class; in p2p_check_pref_chan_no_recv()
605 u8 op_class, op_channel; in p2p_check_pref_chan_recv() local
621 if (p2p_freq_to_channel(oper_freq, &op_class, in p2p_check_pref_chan_recv()
624 p2p->op_reg_class = op_class; in p2p_check_pref_chan_recv()
648 u8 op_class, op_channel; in p2p_check_pref_chan() local
672 op_class, op_channel) && in p2p_check_pref_chan()
674 op_class, op_channel)))) { in p2p_check_pref_chan()
[all …]
H A Dp2p.c1366 u8 op_class, op_channel; in p2p_prepare_channel_pref() local
1380 freq, op_class, op_channel); in p2p_prepare_channel_pref()
1384 p2p->op_reg_class = op_class; in p2p_prepare_channel_pref()
1403 u8 op_class, op_channel; in p2p_prepare_channel_best() local
1415 p2p->op_reg_class = op_class; in p2p_prepare_channel_best()
1422 p2p->op_reg_class = op_class; in p2p_prepare_channel_best()
1429 p2p->op_reg_class = op_class; in p2p_prepare_channel_best()
1433 p2p->cfg->pref_chan[0].op_class, in p2p_prepare_channel_best()
2243 u8 channel, op_class; in p2p_build_probe_resp_buf() local
5239 u8 op_class, channel; in p2p_build_nfc_handover() local
[all …]
H A 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()
H A Dp2p_i.h679 int p2p_channel_to_freq(int op_class, int channel);
680 int p2p_freq_to_channel(unsigned int freq, u8 *op_class, u8 *channel);
696 u8 *op_class, u8 *op_channel);
697 int p2p_channel_random_social(struct p2p_channels *chans, u8 *op_class,
H A Dp2p.h421 u8 op_class; member
2023 int p2p_config_get_random_social(struct p2p_config *p2p, u8 *op_class,
2388 void p2p_set_override_pref_op_chan(struct p2p_data *p2p, u8 op_class,
/freebsd-12.1/contrib/wpa/src/ap/
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.c171 u8 channel, op_class; in hostapd_neighbor_set_own_report() local
212 &op_class, &channel) == in hostapd_neighbor_set_own_report()
242 wpabuf_put_u8(nr, op_class); in hostapd_neighbor_set_own_report()
H A Dsta_info.h53 u8 op_class; member
H A Dbeacon.c342 u8 op_class, channel; in hostapd_eid_supported_op_classes() local
351 &op_class, &channel) == in hostapd_eid_supported_op_classes()
359 *eid++ = op_class; in hostapd_eid_supported_op_classes()
H A Dieee802_11_ht.c328 ic_report->op_class); in hostapd_2040_coex_action()
H A Dieee802_11.c2149 u8 op_class, channel, phytype; in handle_auth() local
2184 &op_class, &channel) == NUM_HOSTAPD_MODES) { in handle_auth()
2185 op_class = 0; in handle_auth()
2188 *pos++ = op_class; in handle_auth()
/freebsd-12.1/contrib/wpa/src/fst/
H A 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