/hostap-latest/src/drivers/ |
D | driver_macsec_qca.c | 520 u32 *channel) in macsec_qca_lookup_channel() argument 527 *channel = i; in macsec_qca_lookup_channel() 538 u32 channel) in macsec_qca_register_channel() argument 540 os_memcpy(&map[channel].sci, sci, sizeof(struct ieee802_1x_mka_sci)); in macsec_qca_register_channel() 546 u32 *channel) in macsec_qca_lookup_receive_channel() argument 549 channel); in macsec_qca_lookup_receive_channel() 555 u32 channel) in macsec_qca_register_receive_channel() argument 558 channel); in macsec_qca_register_receive_channel() 564 u32 *channel) in macsec_qca_lookup_transmit_channel() argument 567 channel); in macsec_qca_lookup_transmit_channel() [all …]
|
/hostap-latest/src/ap/ |
D | dfs.c | 356 int channel_no = iface->conf->channel; in dfs_get_start_chan_idx() 428 mode->num_channels, channel_no, iface->conf->channel, in dfs_get_start_chan_idx() 447 struct hostapd_channel_data *channel; in dfs_check_chans_radar() local 456 channel = &mode->channels[start_chan_idx + i]; in dfs_check_chans_radar() 457 if (channel->flag & HOSTAPD_CHAN_RADAR) in dfs_check_chans_radar() 469 struct hostapd_channel_data *channel; in dfs_check_chans_available() local 476 channel = &mode->channels[start_chan_idx + i]; in dfs_check_chans_available() 478 if (channel->flag & HOSTAPD_CHAN_DISABLED) in dfs_check_chans_available() 481 if (!(channel->flag & HOSTAPD_CHAN_RADAR)) in dfs_check_chans_available() 484 if ((channel->flag & HOSTAPD_CHAN_DFS_MASK) != in dfs_check_chans_available() [all …]
|
D | ap_list.c | 37 iface->conf->channel != ap->channel) in ap_list_beacon_olbc() 202 ap->channel = elems->ds_params[0]; in ap_list_process_beacon() 204 ap->channel = elems->ht_operation[0]; in ap_list_process_beacon() 206 ap->channel = fi->channel; in ap_list_process_beacon() 227 MAC2STR(ap->addr), ap->channel); in ap_list_process_beacon() 232 (ap->channel == 0 || in ap_list_process_beacon() 233 ap->channel == iface->conf->channel || in ap_list_process_beacon() 234 ap->channel == iface->conf->channel + in ap_list_process_beacon() 240 MAC2STR(ap->addr), ap->channel); in ap_list_process_beacon()
|
D | hw_features.c | 285 iface->conf->channel += 4; in ieee80211n_switch_pri_sec() 289 iface->conf->channel -= 4; in ieee80211n_switch_pri_sec() 335 pri_chan = iface->conf->channel; in ieee80211n_check_40mhz_2g4() 370 iface->conf->channel, in ieee80211n_check_scan() 371 iface->conf->channel + in ieee80211n_check_scan() 780 iface->conf->channel, in hostapd_check_edmg_capab() 999 if (!is_punct_bitmap_valid(bw, (conf->channel - start_chan) / 4, in hostapd_is_usable_punct_bitmap() 1190 iface->conf->channel, in hostapd_notify_bad_chans() 1212 iface->freq, iface->conf->channel); in hostapd_acs_completed() 1281 iface->conf->channel == 14) { in hostapd_select_hw_mode() [all …]
|
D | ieee802_11_ht.c | 97 oper->primary_chan = hapd->iconf->channel; in hostapd_eid_ht_operation() 179 static int is_40_allowed(struct hostapd_iface *iface, int channel) in is_40_allowed() argument 183 int pri = 2407 + 5 * channel; in is_40_allowed() 188 pri_freq = hostapd_hw_get_freq(iface->bss[0], iface->conf->channel); in is_40_allowed() 313 if (chan == iface->conf->channel) in hostapd_2040_coex_action()
|
D | hostapd.c | 317 hapd->iconf->channel = oldconf->channel; in hostapd_reload_config() 1957 iface->conf->channel = 0; in hostapd_no_ir_channel_list_updated() 2085 if (!iface->conf->channel) in configured_fixed_chan_to_freq() 2089 iface->conf->channel); in configured_fixed_chan_to_freq() 2093 iface->conf->op_class, iface->conf->channel); in configured_fixed_chan_to_freq() 2113 if (chan->chan == iface->conf->channel && in configured_fixed_chan_to_freq() 2137 if (((iface->conf->channel - 1) / 4) % 2) in hostapd_set_6ghz_sec_chan() 2158 iface->conf->channel = 0; in setup_interface2() 2233 u8 *channel) in fst_hostapd_get_channel_info_cb() argument 2237 *hw_mode = ieee80211_freq_to_chan(hapd->iface->freq, channel); in fst_hostapd_get_channel_info_cb() [all …]
|
/hostap-latest/src/common/ |
D | hw_features_common.c | 455 int freq, int channel, int enable_edmg, in hostapd_set_freq_params() argument 476 data->channel = channel; in hostapd_set_freq_params() 497 hostapd_encode_edmg_chan(enable_edmg, edmg_channel, channel, in hostapd_set_freq_params() 507 if (center_idx_to_bw_6ghz(channel) < 0) { in hostapd_set_freq_params() 658 punct_update_legacy_bw(punct_bitmap, channel, in hostapd_set_freq_params() 705 if (channel <= 48) in hostapd_set_freq_params() 707 else if (channel <= 64) in hostapd_set_freq_params() 709 else if (channel <= 112) in hostapd_set_freq_params() 711 else if (channel <= 128) in hostapd_set_freq_params() 713 else if (channel <= 144) in hostapd_set_freq_params() [all …]
|
D | ocv.c | 26 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() 49 oci->sec_channel = (((oci->channel - 1) / 4) % 2) ? -1 : 1; in ocv_derive_all_parameters() 57 u8 op_class, channel; in ocv_insert_oci() local 62 &op_class, &channel) < 0) { in ocv_insert_oci() 69 *pos++ = channel; in ocv_insert_oci() 122 oci.channel = oci_ie[1]; in ocv_verify_tx_params()
|
D | ieee802_11_common.c | 1384 enum hostapd_hw_mode ieee80211_freq_to_chan(int freq, u8 *channel) in ieee80211_freq_to_chan() argument 1389 &op_class, channel); in ieee80211_freq_to_chan() 1406 u8 *op_class, u8 *channel) in ieee80211_freq_to_channel_ext() argument 1430 *channel = (freq - 2407) / 5; in ieee80211_freq_to_channel_ext() 1440 *channel = 14; in ieee80211_freq_to_channel_ext() 1448 *channel = (freq - 4000) / 5; in ieee80211_freq_to_channel_ext() 1482 *channel = (freq - 5000) / 5; in ieee80211_freq_to_channel_ext() 1501 *channel = (freq - 5000) / 5; in ieee80211_freq_to_channel_ext() 1520 *channel = (freq - 5000) / 5; in ieee80211_freq_to_channel_ext() 1539 *channel = (freq - 5000) / 5; in ieee80211_freq_to_channel_ext() [all …]
|
D | ieee802_11_common.h | 243 enum hostapd_hw_mode ieee80211_freq_to_chan(int freq, u8 *channel); 248 u8 *op_class, u8 *channel); 250 int sec_channel, u8 *op_class, u8 *channel); 304 int get_6ghz_sec_channel(int channel);
|
/hostap-latest/wpa_supplicant/ |
D | op_classes.c | 49 static int get_center_80mhz(struct hostapd_hw_modes *mode, u8 channel, in get_center_80mhz() argument 62 if (channel >= center_channels[i] - 6 && in get_center_80mhz() 63 channel <= center_channels[i] + 6) in get_center_80mhz() 72 u8 op_class, u8 channel) in verify_80mhz() argument 91 center_chan = get_center_80mhz(mode, channel, center_channels, in verify_80mhz() 119 static int get_center_160mhz(struct hostapd_hw_modes *mode, u8 channel, in get_center_160mhz() argument 132 if (channel >= center_channels[i] - 14 && in get_center_160mhz() 133 channel <= center_channels[i] + 14) in get_center_160mhz() 142 u8 op_class, u8 channel) in verify_160mhz() argument 160 center_chan = get_center_160mhz(mode, channel, center_channels, in verify_160mhz() [all …]
|
D | README-DPP | 70 channel=1 105 > dpp_bootstrap_gen type=qrcode mac=<mac-address-of-device> chan=<operating-class/channel> key=<key… 108 separating colons. The channel list includes the possible channels on which the 110 GHz channel 1 on 2412 MHz.) 116 band channel 1 is 2412 MHz) in case the Enrollee is a client device. An 117 AP as an Enrollee is listening on its operating channel. 178 channel=1
|
D | ap.c | 77 u8 channel = conf->channel; in wpas_conf_ap_vht() local 91 &conf->channel); in wpas_conf_ap_vht() 117 center_chan = wpas_p2p_get_vht80_center(wpa_s, mode, channel, in wpas_conf_ap_vht() 124 center_chan = wpas_p2p_get_vht160_center(wpa_s, mode, channel, in wpas_conf_ap_vht() 140 &conf->channel); in wpas_conf_ap_vht() 141 center_chan = wpas_p2p_get_vht160_center(wpa_s, mode, channel, in wpas_conf_ap_vht() 152 &conf->channel); in wpas_conf_ap_vht() 154 channel, in wpas_conf_ap_vht() 174 conf->channel); in wpas_conf_ap_vht() 176 conf, conf->channel + conf->secondary_channel * 2); in wpas_conf_ap_vht() [all …]
|
/hostap-latest/src/p2p/ |
D | p2p_utils.c | 57 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() 89 if (a->channel[i] != b->channel[j]) in p2p_reg_class_intersect() 91 res->channel[res->channels] = a->channel[i]; in p2p_reg_class_intersect() 145 if (b_cl->channel[i] == cl->channel[j]) in p2p_op_class_union() 151 cl->channel[cl->channels++] = b_cl->channel[i]; in p2p_op_class_union() 226 op->channel[c]); in p2p_channels_remove_freqs() 229 os_memmove(&op->channel[c], in p2p_channels_remove_freqs() [all …]
|
D | p2p_build.c | 87 u8 reg_class, u8 channel) in p2p_buf_add_listen_channel() argument 94 wpabuf_put_u8(buf, channel); /* Channel Number */ in p2p_buf_add_listen_channel() 96 "Channel %u", reg_class, channel); in p2p_buf_add_listen_channel() 101 u8 reg_class, u8 channel) in p2p_buf_add_operating_channel() argument 108 wpabuf_put_u8(buf, channel); /* Channel Number */ in p2p_buf_add_operating_channel() 110 "Channel %u", reg_class, channel); in p2p_buf_add_operating_channel() 172 wpabuf_put_data(buf, c->channel, c->channels); in p2p_buf_add_channel_list() 377 u8 oper_class, u8 channel, in p2p_buf_add_oob_go_neg_channel() argument 385 wpabuf_put_u8(buf, channel); /* Channel Number */ in p2p_buf_add_oob_go_neg_channel() 389 oper_class, channel, role); in p2p_buf_add_oob_go_neg_channel()
|
D | p2p_invitation.c | 116 u8 reg_class, u8 channel, in p2p_build_invitation_resp() argument 157 if (reg_class && channel) in p2p_build_invitation_resp() 159 reg_class, channel); in p2p_build_invitation_resp() 195 u8 reg_class = 0, channel = 0; in p2p_process_invitation_req() local 288 if (p2p_freq_to_channel(op_freq, ®_class, &channel) < 0) { in p2p_process_invitation_req() 295 if (!p2p_channels_includes(&intersection, reg_class, channel)) in p2p_process_invitation_req() 378 channel = p2p->op_channel; in p2p_process_invitation_req() 389 bssid, reg_class, channel, channels); in p2p_process_invitation_req() 398 p2p->cfg->channel); in p2p_process_invitation_req()
|
/hostap-latest/tests/remote/ |
D | rutils.py | 151 def get_ap_params(channel="1", bw="HT20", country="US", security="open", ht_capab=None, vht_capab=N… argument 152 ssid = "test_" + channel + "_" + security + "_" + bw 155 params = hostapd.b_only_params(channel, ssid, country) 157 params = hostapd.g_only_params(channel, ssid, country) 159 params = hostapd.g_only_params(channel, ssid, country) 162 params = hostapd.a_only_params(channel, ssid, country) 164 params = hostapd.a_only_params(channel, ssid, country) 167 params = hostapd.ht20_params(channel, ssid, country) 174 params = hostapd.ht40_plus_params(channel, ssid, country) 178 params = hostapd.ht40_minus_params(channel, ssid, country) [all …]
|
/hostap-latest/tests/hwsim/ |
D | test_ocv.py | 23 def make_ocikde(op_class, channel, seg1_idx): argument 27 data = RSN_KEY_DATA_OCI + struct.pack("<BBB", op_class, channel, seg1_idx) 135 for channel, capab, freq, mode in [("6", "[HT40-]", "2437", "g"), 140 "channel": channel, 174 for channel, capab, freq in [("40", "[HT40-]", "5200"), 177 "channel": channel, 219 for channel, capab, freq in [("40", "[HT40-]", "5200"), 222 "channel": channel, 260 for channel, capab, freq in [("100", "[HT40+]", "5500"), 263 "channel": channel, [all …]
|
D | hostapd.py | 855 def b_only_params(channel="1", ssid=None, country=None): argument 857 "channel": channel} 864 def g_only_params(channel="1", ssid=None, country=None): argument 866 "channel": channel} 873 def a_only_params(channel="36", ssid=None, country=None): argument 875 "channel": channel} 882 def ht20_params(channel="1", ssid=None, country=None): argument 884 "channel": channel, 886 if int(channel) > 14: 894 def ht40_plus_params(channel="1", ssid=None, country=None): argument [all …]
|
D | test_wnm.py | 39 hw_mode=None, channel=None, country_code=None, country3=None, argument 74 if channel: 75 params["channel"] = channel 913 channel="36") 1107 channel='2', freq=2417, nei_info="81,2,6") 1112 channel='3', freq=2422, nei_info="81,2,5") 1115 channel='36', freq=5180, argument 1121 channel="1") 1123 channel=channel, ht=ht, vht=vht) 1160 channel="1") [all …]
|
D | test_eht.py | 1200 def _test_eht_5ghz(dev, apdev, channel, chanwidth, ccfs1, ccfs2=0, argument 1212 "channel": str(channel), 1227 if channel < he_ccfs1: 1229 elif channel > he_ccfs1: 1241 freq = 5000 + channel * 5 1243 if chanwidth != 0 or channel != ccfs1: 1321 def _test_eht_6ghz(dev, apdev, channel, op_class, ccfs1): argument 1333 params["channel"] = str(channel) 1355 freq = 5950 + channel * 5 1696 report.channel != 6: [all …]
|
/hostap-latest/src/fst/ |
D | fst_group.c | 60 const u8 *own_addr, enum mb_band_id band, u8 channel) in fst_fill_mb_ie() argument 85 mbie->chan = channel; in fst_fill_mb_ie() 102 u8 channel; in fst_fill_iface_mb_ies() local 105 fst_iface_get_channel_info(f, &hw_mode, &channel); in fst_fill_iface_mb_ies() 107 fst_hw_mode_to_band(hw_mode), channel); in fst_fill_iface_mb_ies()
|
D | fst_iface.c | 76 u8 channel; in fst_iface_get_band_id() local 78 fst_iface_get_channel_info(i, &hw_mode, &channel); in fst_iface_get_band_id()
|
D | fst_session.c | 506 u8 channel; in fst_session_handle_setup_response() local 578 fst_iface_get_channel_info(s->data.new_iface, &hw_mode, &channel); in fst_session_handle_setup_response() 926 u8 channel; in fst_session_respond() local 978 &channel); in fst_session_respond() 984 &channel); in fst_session_respond() 1357 u8 channel; in fst_test_req_send_fst_request() local 1379 fst_iface_get_channel_info(s.data.new_iface, &hw_mode, &channel); in fst_test_req_send_fst_request() 1384 fst_iface_get_channel_info(s.data.old_iface, &hw_mode, &channel); in fst_test_req_send_fst_request() 1410 u8 channel; in fst_test_req_send_fst_response() local 1452 &channel); in fst_test_req_send_fst_response() [all …]
|
D | fst_iface.h | 76 u8 *channel) in fst_iface_get_channel_info() argument 78 i->iface_obj.get_channel_info(i->iface_obj.ctx, hw_mode, channel); in fst_iface_get_channel_info()
|