software/drivers/sd8887/src/wlan/mapp/uaputl/uaputl.c
/**
 *  @brief Check protocol is valid or not
 *
 *  @param protocol    	     Protocol
 *
 *  @return         UAP_SUCCESS or UAP_FAILURE
 */
@brief Check protocol is valid or not
@param protocol          Protocol


@brief Check protocol is valid or not @param protocol Protocol
int
is_protocol_valid(int protocol)
{
	int ret = UAP_FAILURE;
	switch (protocol) {
	case PROTOCOL_NO_SECURITY:
	case PROTOCOL_STATIC_WEP:
	case PROTOCOL_WPA:
	case PROTOCOL_WPA2:
	case PROTOCOL_WPA2_MIXED:
		ret = UAP_SUCCESS;
		break;
	default:
		printf("ERR: Invalid Protocol: %d\n", protocol);
		break;
	}
	return ret;
}
int is_protocol_valid ( int protocol ) { int ret = UAP_FAILURE ; switch ( protocol ) { case PROTOCOL_NO_SECURITY : case PROTOCOL_STATIC_WEP : case PROTOCOL_WPA : case PROTOCOL_WPA2 : case PROTOCOL_WPA2_MIXED : ret = UAP_SUCCESS ; break ; default : printf ( " \n " , protocol ) ; break ; } return ret ; }
@brief Check protocol is valid or not
  @param protocol          Protocol
@brief Check protocol is valid or not @param protocol Protocol