Home
last modified time | relevance | path

Searched refs:pmkid (Results 1 – 25 of 27) sorted by relevance

12

/external/wpa_supplicant_8/src/ap/
Dpmksa_cache_auth.c25 #define PMKID_HASH(pmkid) (unsigned int) ((pmkid)[0] & 0x7f) argument
26 struct rsn_pmksa_cache_entry *pmkid[PMKID_HASH_SIZE]; member
59 hash = PMKID_HASH(entry->pmkid); in pmksa_cache_free_entry()
60 pos = pmksa->pmkid[hash]; in pmksa_cache_free_entry()
67 pmksa->pmkid[hash] = entry->hnext; in pmksa_cache_free_entry()
212 hash = PMKID_HASH(entry->pmkid); in pmksa_cache_link_entry()
213 entry->hnext = pmksa->pmkid[hash]; in pmksa_cache_link_entry()
214 pmksa->pmkid[hash] = entry; in pmksa_cache_link_entry()
221 wpa_hexdump(MSG_DEBUG, "RSN: added PMKID", entry->pmkid, PMKID_LEN); in pmksa_cache_link_entry()
259 rsn_pmkid(pmk, pmk_len, aa, spa, entry->pmkid, in pmksa_cache_auth_add()
[all …]
Dwpa_auth_ie.c92 const u8 *pmkid) in wpa_write_rsn_ie() argument
243 if (pmkid) { in wpa_write_rsn_ie()
249 os_memcpy(pos, pmkid, PMKID_LEN); in wpa_write_rsn_ie()
257 if (pmkid == NULL) { in wpa_write_rsn_ie()
293 int pmkid_count_set = pmkid != NULL; in wpa_write_rsn_ie()
431 const u8 *pmkid; member
439 data->pmkid); in wpa_auth_okc_iter()
455 const u8 *pmkid = NULL; in wpa_validate_wpa_ie() local
651 &data.pmkid[i * PMKID_LEN], PMKID_LEN); in wpa_validate_wpa_ie()
653 &data.pmkid[i * PMKID_LEN]); in wpa_validate_wpa_ie()
[all …]
Dpmksa_cache_auth.h19 u8 pmkid[PMKID_LEN]; member
43 const u8 *spa, const u8 *pmkid);
46 const u8 *pmkid);
55 const u8 *aa, const u8 *pmkid);
Dwpa_auth_ie.h17 const u8 *pmkid; member
Dwpa_auth.c711 ie.num_pmkid != 1 || ie.pmkid == NULL) { in ft_check_msg_2_of_4()
717 os_memcpy(sm->sup_pmk_r1_name, ie.pmkid, PMKID_LEN); in ft_check_msg_2_of_4()
1770 u8 buf[2 + RSN_SELECTOR_LEN + PMKID_LEN], *pmkid = NULL; in SM_STATE() local
1793 pmkid = buf; in SM_STATE()
1795 pmkid[0] = WLAN_EID_VENDOR_SPECIFIC; in SM_STATE()
1796 pmkid[1] = RSN_SELECTOR_LEN + PMKID_LEN; in SM_STATE()
1797 RSN_SELECTOR_PUT(&pmkid[2], RSN_KEY_DATA_PMKID); in SM_STATE()
1799 os_memcpy(&pmkid[2 + RSN_SELECTOR_LEN], in SM_STATE()
1800 sm->pmksa->pmkid, PMKID_LEN); in SM_STATE()
1807 sm->addr, &pmkid[2 + RSN_SELECTOR_LEN], in SM_STATE()
[all …]
Dwpa_auth_i.h209 const u8 *pmkid);
/external/wpa_supplicant_8/src/rsn_supp/
Dpmksa_cache.c46 wpa_sm_remove_pmkid(pmksa->sm, entry->aa, entry->pmkid); in pmksa_cache_free_entry()
138 rsn_pmkid(pmk, pmk_len, aa, spa, entry->pmkid, in pmksa_cache_add()
156 os_memcmp_const(pos->pmkid, entry->pmkid, in pmksa_cache_add()
234 wpa_sm_add_pmkid(pmksa->sm, entry->aa, entry->pmkid); in pmksa_cache_add()
312 const u8 *aa, const u8 *pmkid, in pmksa_cache_get() argument
318 (pmkid == NULL || in pmksa_cache_get()
319 os_memcmp(entry->pmkid, pmkid, PMKID_LEN) == 0) && in pmksa_cache_get()
419 int pmksa_cache_set_current(struct wpa_sm *sm, const u8 *pmkid, in pmksa_cache_set_current() argument
426 if (pmkid) in pmksa_cache_set_current()
428 pmkid, PMKID_LEN); in pmksa_cache_set_current()
[all …]
Dpmksa_cache.h17 u8 pmkid[PMKID_LEN]; member
55 const u8 *aa, const u8 *pmkid,
63 int pmksa_cache_set_current(struct wpa_sm *sm, const u8 *pmkid,
87 pmksa_cache_get(struct rsn_pmksa_cache *pmksa, const u8 *aa, const u8 *pmkid, in pmksa_cache_get() argument
116 static inline int pmksa_cache_set_current(struct wpa_sm *sm, const u8 *pmkid, in pmksa_cache_set_current() argument
Dwpa_i.h202 const u8 *pmkid) in wpa_sm_add_pmkid() argument
205 return sm->ctx->add_pmkid(sm->ctx->ctx, bssid, pmkid); in wpa_sm_add_pmkid()
209 const u8 *pmkid) in wpa_sm_remove_pmkid() argument
212 return sm->ctx->remove_pmkid(sm->ctx->ctx, bssid, pmkid); in wpa_sm_remove_pmkid()
Dwpa.c143 const u8 *pmkid) in wpa_supplicant_get_pmk() argument
147 if (pmkid && !sm->cur_pmksa) { in wpa_supplicant_get_pmk()
152 sm->cur_pmksa = pmksa_cache_get(sm->pmksa, src_addr, pmkid, in wpa_supplicant_get_pmk()
164 if (pmkid && sm->cur_pmksa && in wpa_supplicant_get_pmk()
165 os_memcmp_const(pmkid, sm->cur_pmksa->pmkid, PMKID_LEN) == 0) { in wpa_supplicant_get_pmk()
166 wpa_hexdump(MSG_DEBUG, "RSN: matched PMKID", pmkid, PMKID_LEN); in wpa_supplicant_get_pmk()
209 if (!sm->cur_pmksa && pmkid && in wpa_supplicant_get_pmk()
210 pmksa_cache_get(sm->pmksa, src_addr, pmkid, NULL)) in wpa_supplicant_get_pmk()
409 if (ie.pmkid) { in wpa_supplicant_process_1_of_4()
411 "Authenticator", ie.pmkid, PMKID_LEN); in wpa_supplicant_process_1_of_4()
[all …]
Dwpa_ie.h19 const u8 *pmkid; member
Dpeerkey.c673 ie.pmkid == NULL) { in wpa_supplicant_process_stk_1_of_4()
677 if (os_memcmp_const(ie.pmkid, peerkey->smkid, PMKID_LEN) != 0) { in wpa_supplicant_process_stk_1_of_4()
679 ie.pmkid, PMKID_LEN); in wpa_supplicant_process_stk_1_of_4()
776 kde.pmkid == NULL || kde.rsn_ie == NULL) { in wpa_supplicant_process_stk_2_of_4()
781 if (os_memcmp_const(kde.pmkid, peerkey->smkid, PMKID_LEN) != 0) { in wpa_supplicant_process_stk_2_of_4()
783 kde.pmkid, PMKID_LEN); in wpa_supplicant_process_stk_2_of_4()
Dwpa.h40 int (*add_pmkid)(void *ctx, const u8 *bssid, const u8 *pmkid);
41 int (*remove_pmkid)(void *ctx, const u8 *bssid, const u8 *pmkid);
Dwpa_ie.c199 os_memcpy(pos, sm->cur_pmksa->pmkid, PMKID_LEN); in wpa_gen_wpa_ie_rsn()
377 ie->pmkid = pos + 2 + RSN_SELECTOR_LEN; in wpa_parse_generic()
Dpreauth.c329 wpa_sm_add_pmkid(sm, candidate->bssid, p->pmkid); in rsn_preauth_candidate_process()
/external/wpa_supplicant_8/src/drivers/
Ddriver_ndis.h23 u8 pmkid[16]; member
46 struct ndis_pmkid_entry *pmkid; member
Ddriver_ndis.c1208 entry = drv->pmkid; in wpa_driver_ndis_set_pmkid()
1222 entry = drv->pmkid; in wpa_driver_ndis_set_pmkid()
1225 os_memcpy(&p->BSSIDInfo[i].PMKID, entry->pmkid, 16); in wpa_driver_ndis_set_pmkid()
1236 const u8 *pmkid) in wpa_driver_ndis_add_pmkid() argument
1245 entry = drv->pmkid; in wpa_driver_ndis_add_pmkid()
1256 os_memcpy(entry->pmkid, pmkid, 16); in wpa_driver_ndis_add_pmkid()
1259 entry->next = drv->pmkid; in wpa_driver_ndis_add_pmkid()
1260 drv->pmkid = entry; in wpa_driver_ndis_add_pmkid()
1266 os_memcpy(entry->pmkid, pmkid, 16); in wpa_driver_ndis_add_pmkid()
1267 entry->next = drv->pmkid; in wpa_driver_ndis_add_pmkid()
[all …]
Ddriver_wext.c2219 u32 cmd, const u8 *bssid, const u8 *pmkid) in wpa_driver_wext_pmksa() argument
2232 if (pmkid) in wpa_driver_wext_pmksa()
2233 os_memcpy(pmksa.pmkid, pmkid, IW_PMKID_LEN); in wpa_driver_wext_pmksa()
2248 const u8 *pmkid) in wpa_driver_wext_add_pmkid() argument
2251 return wpa_driver_wext_pmksa(drv, IW_PMKSA_ADD, bssid, pmkid); in wpa_driver_wext_add_pmkid()
2256 const u8 *pmkid) in wpa_driver_wext_remove_pmkid() argument
2259 return wpa_driver_wext_pmksa(drv, IW_PMKSA_REMOVE, bssid, pmkid); in wpa_driver_wext_remove_pmkid()
Ddriver.h1518 int (*add_pmkid)(void *priv, const u8 *bssid, const u8 *pmkid);
1538 int (*remove_pmkid)(void *priv, const u8 *bssid, const u8 *pmkid);
/external/wpa_supplicant_8/src/common/
Dwpa_common.c272 if (data.num_pmkid == 1 && data.pmkid) in wpa_ft_parse_ies()
273 parse->rsn_pmkid = data.pmkid; in wpa_ft_parse_ies()
447 data->pmkid = NULL; in wpa_parse_wpa_ie_rsn()
561 data->pmkid = pos; in wpa_parse_wpa_ie_rsn()
633 data->pmkid = NULL; in wpa_parse_wpa_ie_wpa()
910 u8 *pmkid, int use_sha256) in rsn_pmkid() argument
927 os_memcpy(pmkid, hash, PMKID_LEN); in rsn_pmkid()
1068 int wpa_insert_pmkid(u8 *ies, size_t ies_len, const u8 *pmkid) in wpa_insert_pmkid() argument
1120 os_memcpy(rpos, pmkid, PMKID_LEN); in wpa_insert_pmkid()
1133 os_memcpy(rpos, pmkid, PMKID_LEN); in wpa_insert_pmkid()
Dwpa_common.h365 const u8 *pmkid; member
376 u8 *pmkid, int use_sha256);
384 int wpa_insert_pmkid(u8 *ies, size_t ies_len, const u8 *pmkid);
/external/wpa_supplicant_8/wpa_supplicant/
Dpreauth_test.c147 const u8 *bssid, const u8 *pmkid) in wpa_supplicant_add_pmkid() argument
155 const u8 *bssid, const u8 *pmkid) in wpa_supplicant_remove_pmkid() argument
Dwpas_glue.c502 const u8 *bssid, const u8 *pmkid) in wpa_supplicant_add_pmkid() argument
504 return wpa_drv_add_pmkid(wpa_s, bssid, pmkid); in wpa_supplicant_add_pmkid()
509 const u8 *bssid, const u8 *pmkid) in wpa_supplicant_remove_pmkid() argument
511 return wpa_drv_remove_pmkid(wpa_s, bssid, pmkid); in wpa_supplicant_remove_pmkid()
Ddriver_i.h159 const u8 *bssid, const u8 *pmkid) in wpa_drv_add_pmkid() argument
162 return wpa_s->driver->add_pmkid(wpa_s->drv_priv, bssid, pmkid); in wpa_drv_add_pmkid()
168 const u8 *bssid, const u8 *pmkid) in wpa_drv_remove_pmkid() argument
172 pmkid); in wpa_drv_remove_pmkid()
/external/kernel-headers/original/uapi/linux/
Dwireless.h862 __u8 pmkid[IW_PMKID_LEN]; member

12