software/drivers/sd8887/src/wlan/mlinux/moal_cfg80211.c
/* Opportunistic Key Caching APIs functions support
 *
 * this function get pmksa entry list in private structure
 * @param priv         A pointer to moal_private structure
 * @param bssid        A pointer to bssid
 * @return             pointer to target entry or NULL
 */
Opportunistic Key Caching APIs functions support
this function get pmksa entry list in private structure
@param priv         A pointer to moal_private structure
@param bssid        A pointer to bssid
@return             pointer to target entry or NULL
Opportunistic Key Caching APIs functions support this function get pmksa entry list in private structure @param priv A pointer to moal_private structure @param bssid A pointer to bssid @return pointer to target entry or NULL
struct pmksa_entry *
woal_get_pmksa_entry(moal_private *priv, const u8 *bssid)
{
	struct pmksa_entry *entry = NULL;
	unsigned long flags;
	if (!priv || priv->bss_type != MLAN_BSS_TYPE_STA) {
		PRINTM(MERROR, "Invalid interface structure\n");
		return NULL;
	}
	spin_lock_irqsave(&priv->pmksa_list_lock, flags);
	list_for_each_entry(entry, &priv->pmksa_cache_list, link) {
		if (!memcmp(entry->bssid, bssid, ETH_ALEN)) {
			spin_unlock_irqrestore(&priv->pmksa_list_lock, flags);
			return entry;
		}
	}
	spin_unlock_irqrestore(&priv->pmksa_list_lock, flags);
	return NULL;
}
struct pmksa_entry * woal_get_pmksa_entry ( moal_private * priv , const u8 * bssid ) { struct pmksa_entry * entry = NULL ; unsigned long flags ; if ( ! priv || priv -> bss_type != MLAN_BSS_TYPE_STA ) { PRINTM ( MERROR , " \n " ) ; return NULL ; } spin_lock_irqsave ( & priv -> pmksa_list_lock , flags ) ; list_for_each_entry ( entry , & priv -> pmksa_cache_list , link ) { if ( ! memcmp ( entry -> bssid , bssid , ETH_ALEN ) ) { spin_unlock_irqrestore ( & priv -> pmksa_list_lock , flags ) ; return entry ; } } spin_unlock_irqrestore ( & priv -> pmksa_list_lock , flags ) ; return NULL ; }
Opportunistic Key Caching APIs functions support
 this function get pmksa entry list in private structure
 @param priv         A pointer to moal_private structure
 @param bssid        A pointer to bssid
 @return             pointer to target entry or NULL
Opportunistic Key Caching APIs functions support this function get pmksa entry list in private structure @param priv A pointer to moal_private structure @param bssid A pointer to bssid @return pointer to target entry or NULL