software/drivers/sd8887/src/wlan/mlinux/moal_cfg80211.c
/**
 * This function flush pmksa entry list in private structure
 * @param priv         A pointer to moal_private structure
 * @return             success of failure
 */
This function flush pmksa entry list in private structure
@param priv         A pointer to moal_private structure
@return             success of failure
This function flush pmksa entry list in private structure @param priv A pointer to moal_private structure @return success of failure
int
woal_flush_pmksa_list(moal_private *priv)
{
	struct pmksa_entry *entry, *tmp;
	unsigned long flags;
	if (!priv || priv->bss_type != MLAN_BSS_TYPE_STA) {
		PRINTM(MERROR, "Invalid interface structure\n");
		return -1;
	}
	spin_lock_irqsave(&priv->pmksa_list_lock, flags);
	list_for_each_entry_safe(entry, tmp, &priv->pmksa_cache_list, link) {
		list_del(&entry->link);
		kfree(entry);
	}
	INIT_LIST_HEAD(&priv->pmksa_cache_list);
	spin_unlock_irqrestore(&priv->pmksa_list_lock, flags);
	return 0;
}
int woal_flush_pmksa_list ( moal_private * priv ) { struct pmksa_entry * entry , * tmp ; unsigned long flags ; if ( ! priv || priv -> bss_type != MLAN_BSS_TYPE_STA ) { PRINTM ( MERROR , " \n " ) ; return -1 ; } spin_lock_irqsave ( & priv -> pmksa_list_lock , flags ) ; list_for_each_entry_safe ( entry , tmp , & priv -> pmksa_cache_list , link ) { list_del ( & entry -> link ) ; kfree ( entry ) ; } INIT_LIST_HEAD ( & priv -> pmksa_cache_list ) ; spin_unlock_irqrestore ( & priv -> pmksa_list_lock , flags ) ; return 0 ; }
This function flush pmksa entry list in private structure
 @param priv         A pointer to moal_private structure
 @return             success of failure
This function flush pmksa entry list in private structure @param priv A pointer to moal_private structure @return success of failure