/* Returns the MSS value of a TCP connection according to the socket descriptor. 
getmssvalue */
UINT16 CC3000_EXPORT() getmssvalue(INT32 sd)
/* Returns the MSS value of a TCP connection according to the socket descriptor. 
getmssvalue */
UINT16 CC3000_EXPORT() getmssvalue(INT32 sd)
{
	UINT8 *ptr, *args;
	UINT16 ret;
	ptr = tSLInformation.pucTxCommandBuffer;
	args = (ptr + HEADERS_SIZE_CMD);
	args = UINT32_TO_STREAM(args, sd);
	hci_command_send(HCI_CMND_GETMSSVALUE, ptr, SOCKET_GET_MSS_VALUE_PARAMS_LEN);
	SimpleLinkWaitEvent(HCI_EVNT_GETMSSVALUE, &ret);
	return ret;
}