pmksa_cache_add() function
pmksa_cache_add - Add a PMKSA cache entry @pmksa: Pointer to PMKSA cache data from pmksa_cache_init() @pmk: The new pairwise master key @pmk_len: PMK length in bytes, usually PMK_LEN (32) @kck: Key confirmation key or %NULL if not yet derived @kck_len: KCK length in bytes @aa: Authenticator address @spa: Supplicant address @network_ctx: Network configuration context for this PMK @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 Authenticator, this entry will be replaced with the new entry. PMKID will be calculated based on the PMK and the driver interface is notified of the new PMKID.