software/drivers/sd8887/src/wlan/mapp/uaputl/uaputl.c
/**
 * @brief Checks if secondary channel can be set below given primary channel in 'a' band or not.
 *
 * @param channel   Channel number
 * @return          UAP_SUCCESS or UAP_FAILURE
 */
@brief Checks if secondary channel can be set below given primary channel in 'a' band or not.
@param channel   Channel number
@return          UAP_SUCCESS or UAP_FAILURE
@brief Checks if secondary channel can be set below given primary channel in ' a ' band or not . @param channel Channel number @return UAP_SUCCESS or UAP_FAILURE
int
is_valid_a_band_channel_below(int channel)
{
	int ret = UAP_SUCCESS;
	switch (channel) {
	case 40:
	case 48:
	case 56:
	case 64:
	case 104:
	case 112:
	case 120:
	case 128:
	case 136:
	case 153:
	case 161:
		break;
	default:
		ret = UAP_FAILURE;
		break;
	}
	return ret;
}
int is_valid_a_band_channel_below ( int channel ) { int ret = UAP_SUCCESS ; switch ( channel ) { case 40 : case 48 : case 56 : case 64 : case 104 : case 112 : case 120 : case 128 : case 136 : case 153 : case 161 : break ; default : ret = UAP_FAILURE ; break ; } return ret ; }
@brief Checks if secondary channel can be set below given primary channel in 'a' band or not.
@brief Checks if secondary channel can be set below given primary channel in ' a ' band or not .