/* Update the RATMASK setting of the flash buffer.  */
static int32_t cn0503_flash_write_ratmask(struct cn0503_dev *dev, uint8_t *arg, uint8_t *buff)
/* Update the RATMASK setting of the flash buffer.  */
static int32_t cn0503_flash_write_ratmask(struct cn0503_dev *dev, uint8_t *arg, uint8_t *buff)
{
	uint8_t *error, check_val;
	check_val = strtol((char *)arg, (char **)&error, 16);
	if(error == arg)
		return FAILURE;
	sprintf((char *)buff, "%x", check_val);
	dev->sw_flash_buffer[CN0503_FLASH_RATM_IDX] = check_val;
	return SUCCESS;
}