Lines Matching refs:pmksa
315 if (sm->pmksa == ctx)
316 sm->pmksa = NULL;
443 wpa_auth->pmksa = pmksa_cache_auth_init(wpa_auth_pmksa_free_cb,
445 if (wpa_auth->pmksa == NULL) {
446 wpa_printf(MSG_ERROR, "PMKSA cache initialization failed.");
459 pmksa_cache_auth_deinit(wpa_auth->pmksa);
516 pmksa_cache_auth_deinit(wpa_auth->pmksa);
1939 if (sm->pmksa) {
1940 wpa_printf(MSG_DEBUG, "WPA: PMK from PMKSA cache");
1941 os_memcpy(sm->PMK, sm->pmksa->pmk, sm->pmksa->pmk_len);
1942 sm->pmk_len = sm->pmksa->pmk_len;
2037 if (sm->pmksa) {
2039 sm->pmksa->pmkid, PMKID_LEN);
2045 * Calculate PMKID since no PMKSA cache entry was
3769 if (sm == NULL || sm->pmksa != entry)
3771 sm->pmksa = NULL;
3779 return sm ? sm->pmksa : NULL;
3814 if (pmksa_cache_auth_add(sm->wpa_auth->pmksa, pmk, pmk_len, NULL,
3832 if (pmksa_cache_auth_add(wpa_auth->pmksa, pmk, len, NULL,
3849 if (pmksa_cache_auth_add(wpa_auth->pmksa, pmk, PMK_LEN, pmkid,
3862 struct rsn_pmksa_cache_entry *pmksa;
3864 if (wpa_auth == NULL || wpa_auth->pmksa == NULL)
3866 pmksa = pmksa_cache_auth_get(wpa_auth->pmksa, sta_addr, NULL);
3867 if (pmksa) {
3868 wpa_printf(MSG_DEBUG, "WPA: Remove PMKSA cache entry for "
3870 pmksa_cache_free_entry(wpa_auth->pmksa, pmksa);
3878 if (!wpa_auth || !wpa_auth->pmksa)
3880 return pmksa_cache_auth_list(wpa_auth->pmksa, buf, len);
3886 if (wpa_auth && wpa_auth->pmksa)
3887 pmksa_cache_auth_flush(wpa_auth->pmksa);
3897 if (!wpa_auth || !wpa_auth->pmksa)
3900 return pmksa_cache_auth_list_mesh(wpa_auth->pmksa, addr, buf, len);
3927 if (!wpa_auth || !wpa_auth->pmksa)
3930 ret = pmksa_cache_auth_add_entry(wpa_auth->pmksa, entry);
3933 "RSN: Failed to store external PMKSA cache for "
3947 if (!wpa_auth || !wpa_auth->pmksa)
3949 return pmksa_cache_auth_get(wpa_auth->pmksa, sta_addr, pmkid);
3953 void wpa_auth_pmksa_set_to_sm(struct rsn_pmksa_cache_entry *pmksa,
3961 sm->pmksa = pmksa;
3962 os_memcpy(pmk, pmksa->pmk, PMK_LEN);
3963 os_memcpy(pmkid, pmksa->pmkid, PMKID_LEN);
3964 os_memcpy(wpa_auth->dot11RSNAPMKIDUsed, pmksa->pmkid, PMKID_LEN);
4235 return pmksa_cache_auth_radius_das_disconnect(wpa_auth->pmksa, attr);