/* CLI command to clear the flash software buffer.  */
int32_t cn0503_flash_swbuff_clear(struct cn0503_dev *dev, uint8_t *arg)
/* CLI command to clear the flash software buffer.  */
int32_t cn0503_flash_swbuff_clear(struct cn0503_dev *dev, uint8_t *arg)
{
	int16_t i;
	for (i = 0; i < CN0503_FLASH_BUFF_SIZE; i++)
		dev->sw_flash_buffer[i] = 0xFFFFFFFF;
	cli_write_string(dev->cli_handler,
			 (uint8_t *)"RESP: FL_CLEARBUF\n");
	return SUCCESS;
}