pmksa_cache_auth_add() function
pmksa_cache_auth_add - Add a PMKSA cache entry @pmksa: Pointer to PMKSA cache data from pmksa_cache_auth_init() @pmk: The new pairwise master key @pmk_len: PMK length in bytes, usually PMK_LEN (32) @pmkid: Calculated PMKID @kck: Key confirmation key or %NULL if not yet derived @kck_len: KCK length in bytes @aa: Authenticator address @spa: Supplicant address @session_timeout: Session timeout @eapol: Pointer to EAPOL state machine data @akmp: WPA_KEY_MGMT_* used in key derivation Returns: Pointer to the added PMKSA cache entry or %NULL on error This function create a PMKSA entry for a new PMK and adds it to the PMKSA cache. If an old entry is already in the cache for the same Supplicant, this entry will be replaced with the new entry. PMKID will be calculated based on the PMK.
Syntax
struct rsn_pmksa_cache_entry *
pmksa_cache_auth_add(struct rsn_pmksa_cache *pmksa,
const u8 *pmk,
size_t pmk_len,
const u8 *pmkid,
const u8 *kck,
size_t kck_len,
const u8 *aa,
const u8 *spa,
int session_timeout,
struct eapol_state_machine *eapol,
int akmp);