software/drivers/sd8887/src/wlan/mlan/mlan_cfp.c
/**
 *  @brief This function finds if given country code is in EU table
 *
 *  @param pmadapter        A pointer to mlan_adapter structure
 *  @param country_code     Country string
 *
 *  @return                 MTRUE or MFALSE
 */
@brief This function finds if given country code is in EU table
@param pmadapter        A pointer to mlan_adapter structure
@param country_code     Country string

@return                 MTRUE or MFALSE
@brief This function finds if given country code is in EU table @param pmadapter A pointer to mlan_adapter structure @param country_code Country string @return MTRUE or MFALSE
t_bool
wlan_is_etsi_country(pmlan_adapter pmadapter, t_u8 *country_code)
{
	t_u8 i;
	ENTER();
	for (i = 0; i < NELEMENTS(eu_country_code_table); i++) {
		if (!memcmp(pmadapter, eu_country_code_table[i],
			    country_code, COUNTRY_CODE_LEN - 1)) {
			LEAVE();
			return MTRUE;
		}
	}
	LEAVE();
	return MFALSE;
}
t_bool wlan_is_etsi_country ( pmlan_adapter pmadapter , t_u8 * country_code ) { t_u8 i ; ENTER ( ) ; for ( i = 0 ; i < NELEMENTS ( eu_country_code_table ) ; i ++ ) { if ( ! memcmp ( pmadapter , eu_country_code_table [ i ] , country_code , COUNTRY_CODE_LEN - 1 ) ) { LEAVE ( ) ; return MTRUE ; } } LEAVE ( ) ; return MFALSE ; }
@brief This function finds if given country code is in EU table
  @param pmadapter        A pointer to mlan_adapter structure
  @param country_code     Country string
@brief This function finds if given country code is in EU table @param pmadapter A pointer to mlan_adapter structure @param country_code Country string
/* Look for code in EU country code table */