software/drivers/sd8887/src/wlan/mapp/mlanconfig/mlanconfig.c
/**
 *  @brief Parse byte sequence in hex format string to a byte sequence.
 *
 *  @param opstr		A pointer to byte sequence in hex format string, with ':' as delimiter between two byte.
 *  @param val			A pointer to return byte sequence string
 *  @return			NA
 */
@brief Parse byte sequence in hex format string to a byte sequence.
@param opstr                A pointer to byte sequence in hex format string, with ':' as delimiter between two byte.
@param val                  A pointer to return byte sequence string
@return                     NA
@brief Parse byte sequence in hex format string to a byte sequence . @param opstr A pointer to byte sequence in hex format string with ' : ' as delimiter between two byte . @param val A pointer to return byte sequence string @return NA
static void
parse_hex(char *opstr, t_u8 *val)
{
	char delim = ':';
	char *p;
	char *q;
	t_u8 i;
	p = opstr + 1;
	val[1] = hex_atoi(p++);
	for (i = 1; *p; i++) {
		q = strchr(p, delim);
		if (!q)
			break;
		p = q + 1;
		val[i + 1] = hex_atoi(p);
	}
	val[0] = i;
}
static void parse_hex ( char * opstr , t_u8 * val ) { char delim = ' ' ; char * p ; char * q ; t_u8 i ; p = opstr + 1 ; val [ 1 ] = hex_atoi ( p ++ ) ; for ( i = 1 ; * p ; i ++ ) { q = strchr ( p , delim ) ; if ( ! q ) break ; p = q + 1 ; val [ i + 1 ] = hex_atoi ( p ) ; } val [ 0 ] = i ; }
@brief Parse byte sequence in hex format string to a byte sequence.
@brief Parse byte sequence in hex format string to a byte sequence .
/* +1 is for skipping over the preceding h character. */ /* First byte */ /* Parse subsequent bytes. */ /* Each byte is preceded by the : character. */ /* Set num of bytes */