software/drivers/sd8887/src/wlan/mlinux/moal_cfg80211.c
/**
 *  @brief Convert driver band configuration to IEEE band type
 *
 *  @param band     Driver band configuration
 *
 *  @return         IEEE band type
 */
@brief Convert driver band configuration to IEEE band type
@param band     Driver band configuration

@return         IEEE band type
@brief Convert driver band configuration to IEEE band type @param band Driver band configuration @return IEEE band type
t_u8
woal_band_cfg_to_ieee_band(t_u32 band)
{
	t_u8 ret_radio_type;
	ENTER();
	switch (band) {
	case BAND_A:
	case BAND_AN:
	case BAND_A | BAND_AN:
		ret_radio_type = IEEE80211_BAND_5GHZ;
		break;
	case BAND_B:
	case BAND_G:
	case BAND_B | BAND_G:
	case BAND_GN:
	case BAND_B | BAND_GN:
	default:
		ret_radio_type = IEEE80211_BAND_2GHZ;
		break;
	}
	LEAVE();
	return ret_radio_type;
}
t_u8 woal_band_cfg_to_ieee_band ( t_u32 band ) { t_u8 ret_radio_type ; ENTER ( ) ; switch ( band ) { case BAND_A : case BAND_AN : case BAND_A | BAND_AN : ret_radio_type = IEEE80211_BAND_5GHZ ; break ; case BAND_B : case BAND_G : case BAND_B | BAND_G : case BAND_GN : case BAND_B | BAND_GN : default : ret_radio_type = IEEE80211_BAND_2GHZ ; break ; } LEAVE ( ) ; return ret_radio_type ; }
@brief Convert driver band configuration to IEEE band type
  @param band     Driver band configuration
@brief Convert driver band configuration to IEEE band type @param band Driver band configuration