software/drivers/sd8887/src/wlan/mlan/mlan_scan.c
/**
 *  @brief Convert radio type scan parameter to a band config used in join cmd
 *
 *  @param radio_type Scan parameter indicating the radio used for a channel
 *                    in a scan command.
 *
 *  @return          Band type conversion of scanBand used in join/assoc cmds
 *
 */
@brief Convert radio type scan parameter to a band config used in join cmd
@param radio_type Scan parameter indicating the radio used for a channel
in a scan command.

@return          Band type conversion of scanBand used in join/assoc cmds
@brief Convert radio type scan parameter to a band config used in join cmd @param radio_type Scan parameter indicating the radio used for a channel in a scan command . @return Band type conversion of scanBand used in join / assoc cmds
t_u8
radio_type_to_band(t_u8 radio_type)
{
	t_u8 ret_band;
	switch (radio_type) {
	case BAND_5GHZ:
		ret_band = BAND_A;
		break;
	case BAND_2GHZ:
	default:
		ret_band = BAND_G;
		break;
	}
	return ret_band;
}
t_u8 radio_type_to_band ( t_u8 radio_type ) { t_u8 ret_band ; switch ( radio_type ) { case BAND_5GHZ : ret_band = BAND_A ; break ; case BAND_2GHZ : default : ret_band = BAND_G ; break ; } return ret_band ; }
@brief Convert radio type scan parameter to a band config used in join cmd
  @param radio_type Scan parameter indicating the radio used for a channel
                    in a scan command.
@brief Convert radio type scan parameter to a band config used in join cmd @param radio_type Scan parameter indicating the radio used for a channel in a scan command .