software/drivers/sd8887/src/wlan/mlinux/moal_ioctl.c
/**
 *  @brief This function converts region string to region code
 *
 *  @param country_code     Region string
 *
 *  @return                 Region code
 */
@brief This function converts region string to region code
@param country_code     Region string

@return                 Region code
@brief This function converts region string to region code @param country_code Region string @return Region code
t_bool
woal_is_etsi_country(t_u8 *country_code)
{
	t_u8 i;
	ENTER();
	for (i = 0; i < ARRAY_SIZE(eu_country_code_table); i++) {
		if (!memcmp(country_code, eu_country_code_table[i],
			    COUNTRY_CODE_LEN - 1)) {
			PRINTM(MIOCTL, "found region code=%d in EU table\n",
			       EU_REGION_CODE);
			LEAVE();
			return MTRUE;
		}
	}
	LEAVE();
	return MFALSE;
}
t_bool woal_is_etsi_country ( t_u8 * country_code ) { t_u8 i ; ENTER ( ) ; for ( i = 0 ; i < ARRAY_SIZE ( eu_country_code_table ) ; i ++ ) { if ( ! memcmp ( country_code , eu_country_code_table [ i ] , COUNTRY_CODE_LEN - 1 ) ) { PRINTM ( MIOCTL , " \n " , EU_REGION_CODE ) ; LEAVE ( ) ; return MTRUE ; } } LEAVE ( ) ; return MFALSE ; }
@brief This function converts region string to region code
  @param country_code     Region string
@brief This function converts region string to region code @param country_code Region string