/* Check if the socket ID and status are valid and set accordingly the global socket status. 
set_socket_active_status */
void set_socket_active_status(INT32 Sd, INT32 Status)
/* Check if the socket ID and status are valid and set accordingly the global socket status. 
set_socket_active_status */
void set_socket_active_status(INT32 Sd, INT32 Status)
{
	if(M_IS_VALID_SD(Sd) && M_IS_VALID_STATUS(Status))
	{
		socket_active_status &= ~(1 << Sd);
		socket_active_status |= (Status << Sd);
	}
}