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_country_code_supported(t_u8 *country_code)
{
	t_u8 i;
	ENTER();
	for (i = 0; i < ARRAY_SIZE(region_code_mapping); i++) {
		if (!memcmp(country_code, region_code_mapping[i].region,
			    COUNTRY_CODE_LEN - 1)) {
			PRINTM(MIOCTL,
			       "found country code in region_code table\n");
			LEAVE();
			return MTRUE;
		}
	}
	LEAVE();
	return MFALSE;
}
t_bool woal_is_country_code_supported ( t_u8 * country_code ) { t_u8 i ; ENTER ( ) ; for ( i = 0 ; i < ARRAY_SIZE ( region_code_mapping ) ; i ++ ) { if ( ! memcmp ( country_code , region_code_mapping [ i ] . region , COUNTRY_CODE_LEN - 1 ) ) { PRINTM ( MIOCTL , " \n " ) ; 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