software/drivers/sd8887/src/wlan/mapp/uaputl/uaputl.c
/**
 *  @brief Function to check valid rate
 *
 *  @param  rate    Rate to verify
 *
 *  @return 	    UAP_SUCCESS or UAP_FAILURE
 **/
@brief Function to check valid rate
@param  rate    Rate to verify


@brief Function to check valid rate @param rate Rate to verify
int
is_rate_valid(int rate)
{
	int ret = UAP_SUCCESS;
	switch (rate) {
	case 2:
	case 4:
	case 11:
	case 22:
	case 12:
	case 18:
	case 24:
	case 48:
	case 72:
	case 96:
	case 108:
	case 36:
		break;
	default:
		ret = UAP_FAILURE;
		break;
	}
	return ret;
}
int is_rate_valid ( int rate ) { int ret = UAP_SUCCESS ; switch ( rate ) { case 2 : case 4 : case 11 : case 22 : case 12 : case 18 : case 24 : case 48 : case 72 : case 96 : case 108 : case 36 : break ; default : ret = UAP_FAILURE ; break ; } return ret ; }
@brief Function to check valid rate
  @param  rate    Rate to verify
@brief Function to check valid rate @param rate Rate to verify