/* CLI command to do software reset of the application.  */
int32_t cn0503_reboot(struct cn0503_dev *dev, uint8_t *arg)
/* CLI command to do software reset of the application.  */
int32_t cn0503_reboot(struct cn0503_dev *dev, uint8_t *arg)
{
	int32_t ret;
	int8_t i, j;
	ret = adpd410x_reset(dev->adpd4100_handler);
	if(ret != SUCCESS)
		return FAILURE;
	cn0503_handler_init(dev, false);
	for(i = 0; i < CN0503_RAT_NO; i++)
		for(j = 0; j < CN0503_DLPF_DEFAULT; j++)
			dev->arat_flt_data[i][j] = 0;
	return SUCCESS;
}