Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 81) sorted by relevance

1234

/hostap-3.6.0/tests/hwsim/
Dtest_eap_proto.py183 idx = 0
185 idx += 1
186 if ctx['num'] == idx:
192 idx += 1
193 if ctx['num'] == idx:
197 idx += 1
198 if ctx['num'] == idx:
204 idx += 1
205 if ctx['num'] == idx:
209 idx += 1
[all …]
Drfkill.py51 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))
/hostap-3.6.0/wpa_supplicant/
Dwpa_priv.c47 int idx; member
464 msg.msg_name = &iface->l2_addr[l2_ctx->idx]; in wpa_priv_l2_rx()
465 msg.msg_namelen = iface->l2_addr_len[l2_ctx->idx]; in wpa_priv_l2_rx()
489 int idx; in wpa_priv_cmd_l2_register() local
504 for (idx = 0; idx < WPA_PRIV_MAX_L2; idx++) { in wpa_priv_cmd_l2_register()
505 if (!iface->l2[idx]) in wpa_priv_cmd_l2_register()
508 if (idx == WPA_PRIV_MAX_L2) { in wpa_priv_cmd_l2_register()
513 os_memcpy(&iface->l2_addr[idx], from, fromlen); in wpa_priv_cmd_l2_register()
514 iface->l2_addr_len[idx] = fromlen; in wpa_priv_cmd_l2_register()
516 iface->l2_ctx[idx].idx = idx; in wpa_priv_cmd_l2_register()
[all …]
Dwmm_ac.c79 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 …]
Dbgscan_learn.c238 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()
Dctrl_iface_unix.c947 int idx, res; in wpa_supplicant_ctrl_iface_send() local
957 idx = 0; in wpa_supplicant_ctrl_iface_send()
959 io[idx].iov_base = "IFNAME="; in wpa_supplicant_ctrl_iface_send()
960 io[idx].iov_len = 7; in wpa_supplicant_ctrl_iface_send()
961 idx++; in wpa_supplicant_ctrl_iface_send()
962 io[idx].iov_base = (char *) ifname; in wpa_supplicant_ctrl_iface_send()
963 io[idx].iov_len = os_strlen(ifname); in wpa_supplicant_ctrl_iface_send()
964 idx++; in wpa_supplicant_ctrl_iface_send()
965 io[idx].iov_base = " "; in wpa_supplicant_ctrl_iface_send()
966 io[idx].iov_len = 1; in wpa_supplicant_ctrl_iface_send()
[all …]
Dmesh_rsn.c103 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, alg, addr, idx, in auth_set_key()
282 static int index_within_array(const int *array, int idx) in index_within_array() argument
286 for (i = 0; i < idx; i++) { in index_within_array()
Dibss_rsn.c316 const u8 *addr, int idx, u8 *key, size_t key_len, in auth_set_key() argument
327 __func__, alg, MAC2STR(addr), idx); in auth_set_key()
330 __func__, alg, idx); in auth_set_key()
334 if (idx == 0) { in auth_set_key()
355 return wpa_drv_set_key(ibss_rsn->wpa_s, alg, addr, idx, in auth_set_key()
/hostap-3.6.0/src/drivers/
Drfkill.c20 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()
Ddriver_nl80211_monitor.c286 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()
Ddriver_zephyr.c316 int idx; in phy_info_freqs_cfg() local
334 idx = phy_info->last_chan_idx; in phy_info_freqs_cfg()
337 phy_info_freq_cfg(mode, &mode->channels[idx], &band_info->channels[i]); in phy_info_freqs_cfg()
338 idx++; in phy_info_freqs_cfg()
341 phy_info->last_chan_idx = idx; in phy_info_freqs_cfg()
349 int idx; in phy_info_rates_cfg() local
362 idx = 0; in phy_info_rates_cfg()
367 mode->rates[idx] = band_info->bitrates[i].wpa_supp_bitrate; in phy_info_rates_cfg()
368 idx++; in phy_info_rates_cfg()
Ddriver_nl80211_capa.c1276 size_t idx = feature / 8; in check_feature() local
1278 return (idx < info->flags_len) && in check_feature()
1279 (info->flags[idx] & BIT(feature % 8)); in check_feature()
1699 int rem_freq, idx; in phy_info_freqs() local
1721 idx = phy_info->last_chan_idx; in phy_info_freqs()
1728 phy_info_freq(mode, &mode->channels[idx], tb_freq); in phy_info_freqs()
1729 idx++; in phy_info_freqs()
1731 phy_info->last_chan_idx = idx; in phy_info_freqs()
1746 int rem_rate, idx; in phy_info_rates() local
1764 idx = 0; in phy_info_rates()
[all …]
/hostap-3.6.0/src/tls/
Dasn1.c560 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()
Dtlsv1_client_read.c358 size_t left, len, list_len, cert_len, idx; in tls_process_certificate() local
446 idx = 0; in tls_process_certificate()
472 (unsigned long) idx, (unsigned long) cert_len); in tls_process_certificate()
474 if (idx == 0) { in tls_process_certificate()
497 tls_peer_cert_event(conn, idx, cert); in tls_process_certificate()
505 idx++; in tls_process_certificate()
Dtlsv1_server_read.c400 size_t left, len, list_len, cert_len, idx; in tls_process_certificate() local
489 idx = 0; in tls_process_certificate()
513 (unsigned long) idx, (unsigned long) cert_len); in tls_process_certificate()
515 if (idx == 0) { in tls_process_certificate()
542 idx++; in tls_process_certificate()
/hostap-3.6.0/src/p2p/
Dp2p_utils.c462 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-3.6.0/src/eap_common/
Deap_eke_common.c212 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-3.6.0/src/utils/
Dos.h584 size_t idx) in os_remove_in_array() argument
586 if (idx < nmemb - 1) in os_remove_in_array()
587 os_memmove(((unsigned char *) ptr) + idx * size, in os_remove_in_array()
588 ((unsigned char *) ptr) + (idx + 1) * size, in os_remove_in_array()
589 (nmemb - idx - 1) * size); in os_remove_in_array()
/hostap-3.6.0/src/crypto/
Dcrypto_libtomcrypt.c306 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-3.6.0/src/wps/
Dwps_attr_process.c85 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-3.6.0/tests/fuzzing/eapol-key-auth/
Deapol-key-auth.c171 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-3.6.0/src/ap/
Dwpa_auth_glue.c438 const u8 *addr, int idx, u8 *key, in hostapd_wpa_auth_set_key() argument
465 sta->last_tk_key_idx = idx; in hostapd_wpa_auth_set_key()
474 if (idx == 4 || idx == 5) { in hostapd_wpa_auth_set_key()
476 hapd->last_igtk_key_idx = idx; in hostapd_wpa_auth_set_key()
480 } else if (idx == 6 || idx == 7) { in hostapd_wpa_auth_set_key()
482 hapd->last_bigtk_key_idx = idx; in hostapd_wpa_auth_set_key()
489 hapd->last_gtk_key_idx = idx; in hostapd_wpa_auth_set_key()
495 return hostapd_drv_set_key(ifname, hapd, alg, addr, idx, vlan_id, 1, in hostapd_wpa_auth_set_key()
500 static int hostapd_wpa_auth_get_seqnum(void *ctx, const u8 *addr, int idx, in hostapd_wpa_auth_get_seqnum() argument
504 return hostapd_get_seqnum(hapd->conf->iface, hapd, addr, idx, seq); in hostapd_wpa_auth_get_seqnum()
Dhostapd.c338 int errors = 0, idx; in hostapd_broadcast_wep_set() local
341 idx = ssid->wep.idx; in hostapd_broadcast_wep_set()
342 if (ssid->wep.default_len && ssid->wep.key[idx] && in hostapd_broadcast_wep_set()
344 hapd, WPA_ALG_WEP, broadcast_ether_addr, idx, 0, in hostapd_broadcast_wep_set()
345 1, NULL, 0, ssid->wep.key[idx], in hostapd_broadcast_wep_set()
346 ssid->wep.len[idx], in hostapd_broadcast_wep_set()
582 i == hapd->conf->ssid.wep.idx, NULL, 0, in hostapd_setup_encryption()
585 i == hapd->conf->ssid.wep.idx ? in hostapd_setup_encryption()
593 i == hapd->conf->ssid.wep.idx) in hostapd_setup_encryption()
3119 static int hostapd_remove_bss(struct hostapd_iface *iface, unsigned int idx) in hostapd_remove_bss() argument
[all …]
/hostap-3.6.0/hostapd/
Dctrl_iface.c2417 int idx, set_tx; in hostapd_ctrl_set_key() local
2434 idx = atoi(pos); in hostapd_ctrl_set_key()
2466 return hostapd_drv_set_key(hapd->conf->iface, hapd, alg, addr, idx, 0, in hostapd_ctrl_set_key()
5209 int idx, res; in hostapd_ctrl_iface_send_internal() local
5219 idx = 0; in hostapd_ctrl_iface_send_internal()
5221 io[idx].iov_base = "IFNAME="; in hostapd_ctrl_iface_send_internal()
5222 io[idx].iov_len = 7; in hostapd_ctrl_iface_send_internal()
5223 idx++; in hostapd_ctrl_iface_send_internal()
5224 io[idx].iov_base = (char *) ifname; in hostapd_ctrl_iface_send_internal()
5225 io[idx].iov_len = os_strlen(ifname); in hostapd_ctrl_iface_send_internal()
[all …]
/hostap-3.6.0/wlantest/
Dtest_vectors.c559 static int run_gcmp(int idx, const struct gcmp_test *vector) in run_gcmp() argument
568 idx); in run_gcmp()
593 idx); in run_gcmp()
598 wpa_printf(MSG_ERROR, "GCMP test mpdu #%d MIC mismatch", idx); in run_gcmp()

1234