/hostap-latest/tests/hwsim/ |
D | test_eap_proto.py | 194 idx = 0 196 idx += 1 197 if ctx['num'] == idx: 203 idx += 1 204 if ctx['num'] == idx: 208 idx += 1 209 if ctx['num'] == idx: 215 idx += 1 216 if ctx['num'] == idx: 220 idx += 1 [all …]
|
D | rfkill.py | 51 def __init__(self, idx): argument 52 self._idx = idx 56 def idx(self): member in RFKill 67 if r.idx == self.idx: 80 if r.idx == self.idx: 101 s = struct.pack(_event_struct, self.idx, TYPE_ALL, _OP_CHANGE, 1, 0) 107 s = struct.pack(_event_struct, self.idx, TYPE_ALL, _OP_CHANGE, 0, 0) 150 print("%d: %s: %s" % (r.idx, r.name, r.type_name))
|
D | test_he_mbssid.py | 50 def mbssid_write_bss_params(f, ifname, idx, params=None, single_ssid=False): argument 56 if idx == 0: 59 f.write("\nbss=%s\n" % (ifname + '-' + str(idx))) 65 f.write("ssid=bss-%s\n" % idx) 67 f.write("bssid=00:03:7f:12:2a:%02x\n" % idx) 143 for idx in range(0, 4): 144 mbssid_write_bss_params(f, ifname, idx) 162 for idx in range(0, 2): 163 mbssid_write_bss_params(f, ifname, idx, sae_params) 395 for idx in range(0, 8): [all …]
|
D | hostapd.py | 991 idx = ''.join(filter(str.isdigit, conf.split('-')[-1])) 994 if idx != '1': 995 ifname = ifname + '-' + idx 1006 f.write("ssid=bss-%s\n" % idx) 1010 bssid = bssid_inc(apdev, int(idx) - 1) 1017 idx = 0 variable 1019 global idx 1021 conf = "link-%d.conf" % idx 1026 if idx != 0: 1027 ctrl_iface="/var/run/hostapd_%d" % idx [all …]
|
/hostap-latest/wpa_supplicant/ |
D | wpa_priv.c | 47 int idx; member 468 msg.msg_name = &iface->l2_addr[l2_ctx->idx]; in wpa_priv_l2_rx() 469 msg.msg_namelen = iface->l2_addr_len[l2_ctx->idx]; in wpa_priv_l2_rx() 493 int idx; in wpa_priv_cmd_l2_register() local 508 for (idx = 0; idx < WPA_PRIV_MAX_L2; idx++) { in wpa_priv_cmd_l2_register() 509 if (!iface->l2[idx]) in wpa_priv_cmd_l2_register() 512 if (idx == WPA_PRIV_MAX_L2) { in wpa_priv_cmd_l2_register() 517 os_memcpy(&iface->l2_addr[idx], from, fromlen); in wpa_priv_cmd_l2_register() 518 iface->l2_addr_len[idx] = fromlen; in wpa_priv_cmd_l2_register() 520 iface->l2_ctx[idx].idx = idx; in wpa_priv_cmd_l2_register() [all …]
|
D | wmm_ac.c | 79 enum ts_dir_idx idx = wmm_ac_direction_to_idx(dir); in wmm_ac_add_ts() local 82 if (wpa_s->tspecs[ac][idx]) { in wmm_ac_add_ts() 106 wpa_s->tspecs[ac][idx] = _tspec; in wmm_ac_add_ts() 247 enum ts_dir_idx idx; in wmm_ac_find_tsid() local 250 for (idx = 0; idx < TS_DIR_IDX_COUNT; idx++) { in wmm_ac_find_tsid() 251 if (wpa_s->tspecs[ac][idx] && in wmm_ac_find_tsid() 252 wmm_ac_get_tsid(wpa_s->tspecs[ac][idx]) == tsid) { in wmm_ac_find_tsid() 254 *dir = idx; in wmm_ac_find_tsid() 333 enum ts_dir_idx idx; in wmm_ac_should_replace_ts() local 336 cur_ac = wmm_ac_find_tsid(wpa_s, tsid, &idx); in wmm_ac_should_replace_ts() [all …]
|
D | bgscan_learn.c | 238 int idx, *n; in bgscan_learn_get_probe_freq() local 243 idx = data->probe_idx; in bgscan_learn_get_probe_freq() 245 if (!in_array(freqs, data->supp_freqs[idx])) { in bgscan_learn_get_probe_freq() 247 "%u", data->supp_freqs[idx]); in bgscan_learn_get_probe_freq() 248 data->probe_idx = idx + 1; in bgscan_learn_get_probe_freq() 255 freqs[count] = data->supp_freqs[idx]; in bgscan_learn_get_probe_freq() 261 idx++; in bgscan_learn_get_probe_freq() 262 if (data->supp_freqs[idx] == 0) in bgscan_learn_get_probe_freq() 263 idx = 0; in bgscan_learn_get_probe_freq() 264 } while (idx != data->probe_idx); in bgscan_learn_get_probe_freq()
|
D | ctrl_iface_unix.c | 950 int idx, res; in wpa_supplicant_ctrl_iface_send() local 960 idx = 0; in wpa_supplicant_ctrl_iface_send() 962 io[idx].iov_base = "IFNAME="; in wpa_supplicant_ctrl_iface_send() 963 io[idx].iov_len = 7; in wpa_supplicant_ctrl_iface_send() 964 idx++; in wpa_supplicant_ctrl_iface_send() 965 io[idx].iov_base = (char *) ifname; in wpa_supplicant_ctrl_iface_send() 966 io[idx].iov_len = os_strlen(ifname); in wpa_supplicant_ctrl_iface_send() 967 idx++; in wpa_supplicant_ctrl_iface_send() 968 io[idx].iov_base = " "; in wpa_supplicant_ctrl_iface_send() 969 io[idx].iov_len = 1; in wpa_supplicant_ctrl_iface_send() [all …]
|
D | mesh_rsn.c | 103 const u8 *addr, int idx, u8 *key, size_t key_len, in auth_set_key() argument 114 __func__, alg, MAC2STR(addr), idx); in auth_set_key() 117 __func__, alg, idx); in auth_set_key() 121 return wpa_drv_set_key(mesh_rsn->wpa_s, -1, alg, addr, idx, in auth_set_key() 300 static int index_within_array(const int *array, int idx) in index_within_array() argument 304 for (i = 0; i < idx; i++) { in index_within_array()
|
D | ctrl_iface_zephyr.c | 57 int idx; in wpa_supplicant_ctrl_iface_send() local 70 idx = 0; in wpa_supplicant_ctrl_iface_send() 90 idx++; in wpa_supplicant_ctrl_iface_send()
|
D | ibss_rsn.c | 317 const u8 *addr, int idx, u8 *key, size_t key_len, in auth_set_key() argument 328 __func__, alg, MAC2STR(addr), idx); in auth_set_key() 331 __func__, alg, idx); in auth_set_key() 335 if (idx == 0) { in auth_set_key() 356 return wpa_drv_set_key(ibss_rsn->wpa_s, -1, alg, addr, idx, in auth_set_key()
|
/hostap-latest/src/ap/ |
D | comeback_token.c | 21 static int comeback_token_hash(const u8 *comeback_key, const u8 *addr, u8 *idx) in comeback_token_hash() argument 28 *idx = hash[0]; in comeback_token_hash() 41 u8 idx; in check_comeback_token() local 44 comeback_token_hash(comeback_key, addr, &idx) < 0) in check_comeback_token() 46 token_idx = comeback_pending_idx[idx]; in check_comeback_token() 64 comeback_pending_idx[idx] = 0; /* invalidate used token */ in check_comeback_token() 79 u8 idx[2]; in auth_build_token_req() local 123 WPA_PUT_BE16(idx, token_idx); in auth_build_token_req() 127 addrs[1] = idx; in auth_build_token_req() 128 len[1] = sizeof(idx); in auth_build_token_req()
|
D | wpa_auth_glue.c | 506 const u8 *addr, int idx, u8 *key, in hostapd_wpa_auth_set_key() argument 533 sta->last_tk_key_idx = idx; in hostapd_wpa_auth_set_key() 542 if (idx == 4 || idx == 5) { in hostapd_wpa_auth_set_key() 544 hapd->last_igtk_key_idx = idx; in hostapd_wpa_auth_set_key() 548 } else if (idx == 6 || idx == 7) { in hostapd_wpa_auth_set_key() 550 hapd->last_bigtk_key_idx = idx; in hostapd_wpa_auth_set_key() 557 hapd->last_gtk_key_idx = idx; in hostapd_wpa_auth_set_key() 563 return hostapd_drv_set_key(ifname, hapd, alg, addr, idx, vlan_id, 1, in hostapd_wpa_auth_set_key() 568 static int hostapd_wpa_auth_get_seqnum(void *ctx, const u8 *addr, int idx, in hostapd_wpa_auth_get_seqnum() argument 575 if (hapd->conf->mld_ap && idx) in hostapd_wpa_auth_get_seqnum() [all …]
|
/hostap-latest/src/utils/ |
D | os_unix.c | 555 size_t i, j, res, len, idx; in testing_test_fail() local 561 for (idx = 0; idx < ARRAY_SIZE(wpa_trace_test_fail[is_alloc]); idx++) { in testing_test_fail() 562 if (wpa_trace_test_fail[is_alloc][idx].fail_after != 0) in testing_test_fail() 565 if (idx >= ARRAY_SIZE(wpa_trace_test_fail[is_alloc])) in testing_test_fail() 590 pos = wpa_trace_test_fail[is_alloc][idx].pattern; in testing_test_fail() 641 wpa_trace_test_fail[is_alloc][idx].fail_after--; in testing_test_fail() 642 if (wpa_trace_test_fail[is_alloc][idx].fail_after == 0) { in testing_test_fail() 644 wpa_trace_test_fail[is_alloc][idx].pattern); in testing_test_fail() 659 size_t idx; in testing_set_fail_pattern() local 666 idx = 0; in testing_set_fail_pattern() [all …]
|
D | os.h | 673 size_t idx) in os_remove_in_array() argument 675 if (idx < nmemb - 1) in os_remove_in_array() 676 os_memmove(((unsigned char *) ptr) + idx * size, in os_remove_in_array() 677 ((unsigned char *) ptr) + (idx + 1) * size, in os_remove_in_array() 678 (nmemb - idx - 1) * size); in os_remove_in_array()
|
/hostap-latest/src/drivers/ |
D | rfkill.c | 20 u32 idx; member 51 uint32_t idx; member 74 if (event.op != RFKILL_OP_CHANGE || event.idx != rfkill->idx) in rfkill_receive() 79 event.idx, event.type, event.op, event.soft, in rfkill_receive() 159 "/sys/class/rfkill/rfkill%d/device", event.idx); in rfkill_init() 171 event.idx, event.type, event.op, event.soft, in rfkill_init() 174 rfkill->idx = event.idx; in rfkill_init()
|
D | driver_nl80211_monitor.c | 286 int idx; in add_monitor_filter() local 289 for (idx = 0; idx < msock_filter.len; idx++) { in add_monitor_filter() 290 struct sock_filter *insn = &msock_filter_insns[idx]; in add_monitor_filter() 295 insn->k = msock_filter.len - idx - 2; in add_monitor_filter() 297 insn->k = msock_filter.len - idx - 3; in add_monitor_filter() 301 insn->jt = msock_filter.len - idx - 2; in add_monitor_filter() 303 insn->jt = msock_filter.len - idx - 3; in add_monitor_filter() 306 insn->jf = msock_filter.len - idx - 2; in add_monitor_filter() 308 insn->jf = msock_filter.len - idx - 3; in add_monitor_filter()
|
D | driver_nl80211_capa.c | 1381 size_t idx = feature / 8; in check_feature() local 1383 return (idx < info->flags_len) && in check_feature() 1384 (info->flags[idx] & BIT(feature % 8)); in check_feature() 1833 int rem_freq, idx; in phy_info_freqs() local 1855 idx = phy_info->last_chan_idx; in phy_info_freqs() 1862 phy_info_freq(mode, &mode->channels[idx], tb_freq); in phy_info_freqs() 1863 idx++; in phy_info_freqs() 1865 phy_info->last_chan_idx = idx; in phy_info_freqs() 1880 int rem_rate, idx; in phy_info_rates() local 1898 idx = 0; in phy_info_rates() [all …]
|
/hostap-latest/src/tls/ |
D | asn1.c | 560 int idx = 0; in asn1_put_oid() local 563 bytes[idx] = (idx ? 0x80 : 0x00) | (val & 0x7f); in asn1_put_oid() 564 idx++; in asn1_put_oid() 567 if (idx == 0) { in asn1_put_oid() 568 bytes[idx] = 0; in asn1_put_oid() 569 idx = 1; in asn1_put_oid() 571 while (idx > 0) { in asn1_put_oid() 572 idx--; in asn1_put_oid() 573 wpabuf_put_u8(buf, bytes[idx]); in asn1_put_oid()
|
/hostap-latest/src/p2p/ |
D | p2p_utils.c | 462 unsigned int i, idx; in p2p_channels_to_freqs() local 467 for (i = 0, idx = 0; i < channels->reg_classes; i++) { in p2p_channels_to_freqs() 471 if (idx + 1 == max_len) in p2p_channels_to_freqs() 477 if (idx + 1 == max_len) in p2p_channels_to_freqs() 484 for (k = 0; k < idx; k++) { in p2p_channels_to_freqs() 489 if (k < idx) in p2p_channels_to_freqs() 491 freq_list[idx++] = freq; in p2p_channels_to_freqs() 495 freq_list[idx] = 0; in p2p_channels_to_freqs() 497 return idx; in p2p_channels_to_freqs()
|
/hostap-latest/src/eap_common/ |
D | eap_eke_common.c | 212 u8 idx; in eap_eke_prf_hmac_sha1() local 217 idx = 0; in eap_eke_prf_hmac_sha1() 222 addr[2] = &idx; in eap_eke_prf_hmac_sha1() 226 idx++; in eap_eke_prf_hmac_sha1() 227 if (idx == 1) in eap_eke_prf_hmac_sha1() 253 u8 idx; in eap_eke_prf_hmac_sha256() local 258 idx = 0; in eap_eke_prf_hmac_sha256() 263 addr[2] = &idx; in eap_eke_prf_hmac_sha256() 267 idx++; in eap_eke_prf_hmac_sha256() 268 if (idx == 1) in eap_eke_prf_hmac_sha256()
|
/hostap-latest/src/crypto/ |
D | crypto_libtomcrypt.c | 306 int idx, res, rc4 = 0; in crypto_cipher_init() local 310 idx = find_cipher("aes"); in crypto_cipher_init() 313 idx = find_cipher("3des"); in crypto_cipher_init() 316 idx = find_cipher("des"); in crypto_cipher_init() 319 idx = find_cipher("rc2"); in crypto_cipher_init() 322 idx = -1; in crypto_cipher_init() 342 res = cbc_start(idx, iv, key, key_len, 0, &ctx->u.cbc); in crypto_cipher_init()
|
/hostap-latest/src/wps/ |
D | wps_attr_process.c | 85 const u8 *idx) in wps_process_cred_network_idx() argument 87 if (idx == NULL) { in wps_process_cred_network_idx() 93 wpa_printf(MSG_DEBUG, "WPS: Network Index: %d", *idx); in wps_process_cred_network_idx()
|
/hostap-latest/tests/fuzzing/eapol-key-auth/ |
D | eapol-key-auth.c | 171 const u8 *addr, int idx, u8 *key, in auth_set_key() argument 178 __func__, vlan_id, alg, idx, (int) key_len, key_flag); in auth_set_key() 182 if (alg != WPA_ALG_NONE && idx == 0 && key_len > 0 && in auth_set_key()
|
/hostap-latest/hostapd/ |
D | ctrl_iface.c | 2212 int idx, set_tx; in hostapd_ctrl_set_key() local 2229 idx = atoi(pos); in hostapd_ctrl_set_key() 2261 return hostapd_drv_set_key(hapd->conf->iface, hapd, alg, addr, idx, 0, in hostapd_ctrl_set_key() 2469 int idx, bw; in hostapd_ctrl_check_freq_params() local 2476 idx = (params->center_freq1 - 5925) / 5; in hostapd_ctrl_check_freq_params() 2478 idx = (params->center_freq1 - 5950) / 5; in hostapd_ctrl_check_freq_params() 2480 bw = center_idx_to_bw_6ghz(idx); in hostapd_ctrl_check_freq_params() 5811 int idx, res; in hostapd_ctrl_iface_send_internal() local 5821 idx = 0; in hostapd_ctrl_iface_send_internal() 5823 io[idx].iov_base = "IFNAME="; in hostapd_ctrl_iface_send_internal() [all …]
|