software/drivers/sd8887/src/wlan/mlinux/moal_cfg80211.c
/**
 * @brief Get second channel offset
 *
 * @param chan             channel num
 * @return                second channel offset
 */
@brief Get second channel offset
@param chan             channel num
@return                second channel offset
@brief Get second channel offset @param chan channel num @return second channel offset
t_u8
woal_get_second_channel_offset(int chan)
{
	t_u8 chan2Offset = SEC_CHAN_NONE;
	switch (chan) {
	case 36:
	case 44:
	case 52:
	case 60:
	case 100:
	case 108:
	case 116:
	case 124:
	case 132:
	case 140:
	case 149:
	case 157:
		chan2Offset = SEC_CHAN_ABOVE;
		break;
	case 40:
	case 48:
	case 56:
	case 64:
	case 104:
	case 112:
	case 120:
	case 128:
	case 136:
	case 144:
	case 153:
	case 161:
		chan2Offset = SEC_CHAN_BELOW;
		break;
	case 165:
		chan2Offset = SEC_CHAN_NONE;
		break;
	}
	return chan2Offset;
}
t_u8 woal_get_second_channel_offset ( int chan ) { t_u8 chan2Offset = SEC_CHAN_NONE ; switch ( chan ) { case 36 : case 44 : case 52 : case 60 : case 100 : case 108 : case 116 : case 124 : case 132 : case 140 : case 149 : case 157 : chan2Offset = SEC_CHAN_ABOVE ; break ; case 40 : case 48 : case 56 : case 64 : case 104 : case 112 : case 120 : case 128 : case 136 : case 144 : case 153 : case 161 : chan2Offset = SEC_CHAN_BELOW ; break ; case 165 : chan2Offset = SEC_CHAN_NONE ; break ; } return chan2Offset ; }
@brief Get second channel offset
 @param chan             channel num
 @return                second channel offset
@brief Get second channel offset @param chan channel num @return second channel offset
/* Special Case: 20Mhz-only Channel */