software/drivers/sd8887/src/wlan/mapp/mlanconfig/mlanhostcmd.c
/**
 *  @brief convert char to hex integer
 *
 *  @param chr 		char to convert
 *  @return      	hex integer or 0
 */
@brief convert char to hex integer
@param chr          char to convert
@return             hex integer or 0
@brief convert char to hex integer @param chr char to convert @return hex integer or 0
int
hexval(t_s32 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;
}
int hexval ( t_s32 chr ) { if ( chr >= ' ' && chr <= ' ' ) return chr - ' ' ; if ( chr >= ' ' && chr <= ' ' ) return chr - ' ' + 10 ; if ( chr >= ' ' && chr <= ' ' ) return chr - ' ' + 10 ; return 0 ; }
@brief convert char to hex integer
  @param chr          char to convert
  @return             hex integer or 0
@brief convert char to hex integer @param chr char to convert @return hex integer or 0