/* Get the CLI commands and correlate them to functions. */
int32_t cn0414_find_command(struct cn0414_dev *dev, uint8_t *command, cmd_func *function)
/* Get the CLI commands and correlate them to functions. */
int32_t cn0414_find_command(struct cn0414_dev *dev, uint8_t *command, cmd_func *function)
{
	uint8_t i = 0;
	while (v_cmd_fun[i/2] != NULL) {
		if(strncmp((char *)command,
			   (char *)cmd_commands[i],
			   command_size[i]) == 0 ||
		    strncmp((char *)command,
			    (char *)cmd_commands[i + 1],
			    command_size[i+1]) == 0) {
			if(command_size == 0)
				break;
			*function = v_cmd_fun[i / 2];
			break;
		}
		i += 2;
	}
	return 0;
}