/* Configure station ssid prefix. The prefix is used internally in CC3000. It should always be TTT. 
wlan_smart_config_set_prefix */
INT32 wlan_smart_config_set_prefix(CHAR *cNewPrefix)
/* Configure station ssid prefix. The prefix is used internally in CC3000. It should always be TTT. 
wlan_smart_config_set_prefix */
INT32 wlan_smart_config_set_prefix(CHAR *cNewPrefix)
{
	INT32 ret;
	UINT8 *ptr;
	UINT8 *args;
	ret = EFAIL;
	ptr = tSLInformation.pucTxCommandBuffer;
	args = (ptr + HEADERS_SIZE_CMD);
	if (cNewPrefix == NULL)
		return ret;
	else
	{
		*cNewPrefix = 'T';
		*(cNewPrefix + 1) = 'T';
		*(cNewPrefix + 2) = 'T';
	}
	ARRAY_TO_STREAM(args, cNewPrefix, SL_SIMPLE_CONFIG_PREFIX_LENGTH);
	hci_command_send(HCI_CMND_WLAN_IOCTL_SIMPLE_CONFIG_SET_PREFIX, ptr, 
		SL_SIMPLE_CONFIG_PREFIX_LENGTH);
	SimpleLinkWaitEvent(HCI_CMND_WLAN_IOCTL_SIMPLE_CONFIG_SET_PREFIX, &ret);
	return(ret);    
}