Home
last modified time | relevance | path

Searched refs:key_idx (Results 1 – 25 of 30) sorted by relevance

12

/external/wpa_supplicant_8/src/wps/
Dwps_attr_process.c156 const u8 *key_idx) in wps_process_cred_network_key_idx() argument
158 if (key_idx == NULL) in wps_process_cred_network_key_idx()
161 wpa_printf(MSG_DEBUG, "WPS: Network Key Index: %d", *key_idx); in wps_process_cred_network_key_idx()
162 cred->key_idx = *key_idx; in wps_process_cred_network_key_idx()
Dwps.h52 u8 key_idx; member
/external/wpa_supplicant_8/src/drivers/
Ddriver_madwifi.c392 madwifi_del_key(void *priv, const u8 *addr, int key_idx) in madwifi_del_key() argument
399 __func__, ether_sprintf(addr), key_idx); in madwifi_del_key()
406 wk.idk_keyix = key_idx; in madwifi_del_key()
413 key_idx); in madwifi_del_key()
421 const u8 *addr, int key_idx, int set_tx, in wpa_driver_madwifi_set_key() argument
431 return madwifi_del_key(drv, addr, key_idx); in wpa_driver_madwifi_set_key()
434 __func__, alg, ether_sprintf(addr), key_idx); in wpa_driver_madwifi_set_key()
459 wk.ik_keyix = key_idx; in wpa_driver_madwifi_set_key()
472 __func__, ether_sprintf(wk.ik_macaddr), key_idx, in wpa_driver_madwifi_set_key()
Ddriver_bsd.c251 bsd_del_key(void *priv, const u8 *addr, int key_idx) in bsd_del_key() argument
257 wpa_printf(MSG_DEBUG, "%s: key_idx=%d", __func__, key_idx); in bsd_del_key()
258 wk.idk_keyix = key_idx; in bsd_del_key()
323 const unsigned char *addr, int key_idx, int set_tx, const u8 *seq, in bsd_set_key() argument
330 "seq_len=%zu key_len=%zu", __func__, alg, addr, key_idx, in bsd_set_key()
336 return bsd_del_key(priv, NULL, key_idx); in bsd_set_key()
339 return bsd_del_key(priv, addr, key_idx); in bsd_set_key()
364 wk.ik_keyix = key_idx; in bsd_set_key()
374 wk.ik_keyix = key_idx; in bsd_set_key()
376 wk.ik_keyix = key_idx == 0 ? IEEE80211_KEYIX_NONE : in bsd_set_key()
[all …]
Ddriver_wext.h62 const u8 *addr, int key_idx,
Ddriver_privsep.c189 int key_idx, int set_tx, in wpa_driver_privsep_set_key() argument
197 __func__, priv, alg, key_idx, set_tx); in wpa_driver_privsep_set_key()
205 cmd.key_idx = key_idx; in wpa_driver_privsep_set_key()
Ddriver_openbsd.c72 const unsigned char *addr, int key_idx, int set_tx, const u8 *seq, in wpa_driver_openbsd_set_key() argument
Ddriver_atheros.c424 atheros_del_key(void *priv, const u8 *addr, int key_idx) in atheros_del_key() argument
431 __func__, ether_sprintf(addr), key_idx); in atheros_del_key()
438 wk.idk_keyix = key_idx; in atheros_del_key()
445 key_idx); in atheros_del_key()
453 const u8 *addr, int key_idx, int set_tx, const u8 *seq, in atheros_set_key() argument
462 return atheros_del_key(drv, addr, key_idx); in atheros_set_key()
465 __func__, alg, ether_sprintf(addr), key_idx); in atheros_set_key()
499 wk.ik_keyix = key_idx; in atheros_set_key()
513 __func__, ether_sprintf(wk.ik_macaddr), key_idx, in atheros_set_key()
Ddriver_ndis.c915 int key_idx, const u8 *addr, in wpa_driver_ndis_remove_key() argument
925 rkey.KeyIndex = key_idx; in wpa_driver_ndis_remove_key()
933 index = key_idx; in wpa_driver_ndis_remove_key()
946 int pairwise, int key_idx, int set_tx, in wpa_driver_ndis_add_wep() argument
958 wep->KeyIndex = key_idx; in wpa_driver_ndis_add_wep()
980 int key_idx, int set_tx, in wpa_driver_ndis_set_key() argument
1002 return wpa_driver_ndis_remove_key(drv, key_idx, addr, bssid, in wpa_driver_ndis_set_key()
1007 return wpa_driver_ndis_add_wep(drv, pairwise, key_idx, set_tx, in wpa_driver_ndis_set_key()
1018 nkey->KeyIndex = key_idx; in wpa_driver_ndis_set_key()
Ddriver_wext.c1641 const u8 *addr, int key_idx, in wpa_driver_wext_set_key_ext() argument
1662 iwr.u.encoding.flags = key_idx + 1; in wpa_driver_wext_set_key_ext()
1760 const u8 *addr, int key_idx, in wpa_driver_wext_set_key() argument
1770 __FUNCTION__, alg, key_idx, set_tx, in wpa_driver_wext_set_key()
1773 ret = wpa_driver_wext_set_key_ext(drv, alg, addr, key_idx, set_tx, in wpa_driver_wext_set_key()
1791 iwr.u.encoding.flags = key_idx + 1; in wpa_driver_wext_set_key()
1806 iwr.u.encoding.flags = key_idx + 1; in wpa_driver_wext_set_key()
Ddriver_hostap.c396 int key_idx, int set_tx, in wpa_driver_hostap_set_key() argument
439 param->u.crypt.idx = key_idx; in wpa_driver_hostap_set_key()
Ddriver_nl80211.c4902 int key_idx, int set_tx, in wpa_driver_nl80211_set_key() argument
4919 __func__, ifindex, ifname, alg, addr, key_idx, set_tx, in wpa_driver_nl80211_set_key()
4922 if (key_idx == -1) { in wpa_driver_nl80211_set_key()
4923 key_idx = 0; in wpa_driver_nl80211_set_key()
4985 if (alg != WPA_ALG_WEP && key_idx && !set_tx) { in wpa_driver_nl80211_set_key()
5001 NLA_PUT_U8(msg, NL80211_ATTR_KEY_IDX, key_idx); in wpa_driver_nl80211_set_key()
5026 NLA_PUT_U8(msg, NL80211_ATTR_KEY_IDX, key_idx); in wpa_driver_nl80211_set_key()
5065 int key_idx, int defkey, in nl_add_key() argument
5078 NLA_PUT_U8(msg, NL80211_KEY_IDX, key_idx); in nl_add_key()
10605 int key_idx, int set_tx, in driver_nl80211_set_key() argument
[all …]
/external/wpa_supplicant_8/src/common/
Dprivsep_commands.h48 int key_idx; member
/external/wpa_supplicant_8/wpa_supplicant/
Dwps_supplicant.c301 u8 key_idx = 0; in wpa_supplicant_wps_cred() local
333 wpa_printf(MSG_DEBUG, "WPS: Network Key Index %d", cred->key_idx); in wpa_supplicant_wps_cred()
419 if (cred->key_idx > NUM_WEP_KEYS) { in wpa_supplicant_wps_cred()
421 cred->key_idx); in wpa_supplicant_wps_cred()
424 if (cred->key_idx) in wpa_supplicant_wps_cred()
425 key_idx = cred->key_idx - 1; in wpa_supplicant_wps_cred()
428 ssid->wep_key[key_idx], in wpa_supplicant_wps_cred()
431 "%d", key_idx); in wpa_supplicant_wps_cred()
434 ssid->wep_key_len[key_idx] = cred->key_len / 2; in wpa_supplicant_wps_cred()
436 os_memcpy(ssid->wep_key[key_idx], cred->key, in wpa_supplicant_wps_cred()
[all …]
Dwpas_glue.c431 const u8 *addr, int key_idx, int set_tx, in wpa_supplicant_set_key() argument
436 if (alg == WPA_ALG_TKIP && key_idx == 0 && key_len == 32) { in wpa_supplicant_set_key()
441 if (key_idx > 0 && addr && is_broadcast_ether_addr(addr) && in wpa_supplicant_set_key()
447 return wpa_drv_set_key(wpa_s, alg, addr, key_idx, set_tx, seq, seq_len, in wpa_supplicant_set_key()
Dibss_rsn.c140 const u8 *addr, int key_idx, int set_tx, in supp_set_key() argument
148 __func__, alg, MAC2STR(addr), key_idx, set_tx); in supp_set_key()
152 if (key_idx == 0) { in supp_set_key()
168 return wpa_drv_set_key(peer->ibss_rsn->wpa_s, alg, addr, key_idx, in supp_set_key()
Dpreauth_test.c131 const u8 *addr, int key_idx, int set_tx, in wpa_supplicant_set_key() argument
Ddriver_i.h119 int key_idx, int set_tx, in wpa_drv_set_key() argument
126 alg, addr, key_idx, set_tx, in wpa_drv_set_key()
/external/wpa_supplicant_8/src/ap/
Dwps_hostapd.c373 if (cred->encr_type & WPS_ENCR_WEP && cred->key_idx > 0 && in hapd_wps_reconfig_in_memory()
374 cred->key_idx <= 4) { in hapd_wps_reconfig_in_memory()
376 int idx = cred->key_idx; in hapd_wps_reconfig_in_memory()
433 wpa_printf(MSG_DEBUG, "WPS: Network Key Index %d", cred->key_idx); in hapd_wps_cred_cb()
580 if (cred->encr_type & WPS_ENCR_WEP && cred->key_idx <= 4) { in hapd_wps_cred_cb()
581 int key_idx = cred->key_idx; in hapd_wps_cred_cb() local
582 if (key_idx) in hapd_wps_cred_cb()
583 key_idx--; in hapd_wps_cred_cb()
584 fprintf(nconf, "wep_default_key=%d\n", key_idx); in hapd_wps_cred_cb()
585 fprintf(nconf, "wep_key%d=", key_idx); in hapd_wps_cred_cb()
Dap_drv_ops.h84 int key_idx, int set_tx,
Dap_drv_ops.c641 int key_idx, int set_tx, in hostapd_drv_set_key() argument
648 key_idx, set_tx, seq, seq_len, key, in hostapd_drv_set_key()
/external/wpa_supplicant_8/src/rsn_supp/
Dwpa_i.h147 const u8 *addr, int key_idx, int set_tx, in wpa_sm_set_key() argument
152 return sm->ctx->set_key(sm->ctx->ctx, alg, addr, key_idx, set_tx, in wpa_sm_set_key()
Dwpa.h29 const u8 *addr, int key_idx, int set_tx,
/external/bluetooth/bluedroid/bta/hh/
Dbta_hh_utils.c266 UINT16 xx, yy, key_idx = 0; in bta_hh_parse_keybd_rpt() local
332 p_data->this_char[key_idx ++] = this_char; in bta_hh_parse_keybd_rpt()
/external/wpa_supplicant_8/wpa_supplicant/tests/
Dtest_wpa.c141 const u8 *addr, int key_idx, int set_tx, in supp_set_key() argument
147 __func__, alg, MAC2STR(addr), key_idx, set_tx); in supp_set_key()

12