software/drivers/sd8887/src/wlan/mlinux/moal_uap_cfg80211.c
/**
 *  @brief This function check if uap interface is ready
 *
 * @param wiphy           A pointer to wiphy structure
 * @param name            Virtual interface name
 *
 *  @return        MTRUE/MFALSE;
 */
@brief This function check if uap interface is ready
@param wiphy           A pointer to wiphy structure
@param name            Virtual interface name

@return        MTRUE/MFALSE.
@brief This function check if uap interface is ready @param wiphy A pointer to wiphy structure @param name Virtual interface name @return MTRUE / MFALSE .
static t_u8
woal_uap_interface_ready(struct wiphy *wiphy, char *name,
			 struct net_device **new_dev)
{
	moal_handle *handle = (moal_handle *)woal_get_wiphy_priv(wiphy);
	moal_private *priv = NULL;
	int i;
	for (i = 0; i < handle->priv_num; i++) {
		priv = handle->priv[i];
		if (priv && (priv->bss_type == MLAN_BSS_TYPE_UAP) &&
		    !strcmp(priv->netdev->name, name)) {
			priv->wdev->iftype = NL80211_IFTYPE_AP;
			*new_dev = priv->netdev;
			break;
		}
	}
	if (priv && *new_dev)
		return MTRUE;
	else
		return MFALSE;
}
static t_u8 woal_uap_interface_ready ( struct wiphy * wiphy , char * name , struct net_device * * new_dev ) { moal_handle * handle = ( moal_handle * ) woal_get_wiphy_priv ( wiphy ) ; moal_private * priv = NULL ; int i ; for ( i = 0 ; i < handle -> priv_num ; i ++ ) { priv = handle -> priv [ i ] ; if ( priv && ( priv -> bss_type == MLAN_BSS_TYPE_UAP ) && ! strcmp ( priv -> netdev -> name , name ) ) { priv -> wdev -> iftype = NL80211_IFTYPE_AP ; * new_dev = priv -> netdev ; break ; } } if ( priv && * new_dev ) return MTRUE ; else return MFALSE ; }
@brief This function check if uap interface is ready
 @param wiphy           A pointer to wiphy structure
 @param name            Virtual interface name
@brief This function check if uap interface is ready @param wiphy A pointer to wiphy structure @param name Virtual interface name