software/drivers/sd8887/src/wlan/mlan/mlan_cmdevt.c
/**
 *  @brief This function convert a given character to hex
 *
 *  @param chr        Character to be converted
 *
 *  @return           The converted hex if chr is a valid hex, else 0
 */
@brief This function convert a given character to hex
@param chr        Character to be converted

@return           The converted hex if chr is a valid hex, else 0
@brief This function convert a given character to hex @param chr Character to be converted @return The converted hex if chr is a valid hex else 0
static t_u32
wlan_hexval(t_u8 chr)
{
	if (chr >= '0' && chr <= '9')
		return chr - '0';
	if (chr >= 'A' && chr <= 'F')
		return chr - 'A' + 10;
	if (chr >= 'a' && chr <= 'f')
		return chr - 'a' + 10;
	return 0;
}
static t_u32 wlan_hexval ( t_u8 chr ) { if ( chr >= ' ' && chr <= ' ' ) return chr - ' ' ; if ( chr >= ' ' && chr <= ' ' ) return chr - ' ' + 10 ; if ( chr >= ' ' && chr <= ' ' ) return chr - ' ' + 10 ; return 0 ; }
@brief This function convert a given character to hex
  @param chr        Character to be converted
@brief This function convert a given character to hex @param chr Character to be converted