software/drivers/sd8887/src/wlan/mlan/mlan_cfp.c
/**
 *  @brief Find the channel frequency power info for a specific channel
 *
 *  @param pmadapter    A pointer to mlan_adapter structure
 *  @param band         It can be BAND_A, BAND_G or BAND_B
 *  @param channel      The channel to search for
 *
 *  @return             A pointer to chan_freq_power_t structure or MNULL if not found.
 */
@brief Find the channel frequency power info for a specific channel
@param pmadapter    A pointer to mlan_adapter structure
@param band         It can be BAND_A, BAND_G or BAND_B
@param channel      The channel to search for

@return             A pointer to chan_freq_power_t structure or MNULL if not found.
@brief Find the channel frequency power info for a specific channel @param pmadapter A pointer to mlan_adapter structure @param band It can be BAND_A BAND_G or BAND_B @param channel The channel to search for @return A pointer to chan_freq_power_t structure or MNULL if not found .
chan_freq_power_t *
wlan_find_cfp_by_band_and_channel(mlan_adapter *pmadapter,
				  t_u8 band, t_u16 channel)
{
	chan_freq_power_t *cfp = MNULL;
	ENTER();
	if (wlan_count_priv_cond(pmadapter, wlan_11d_is_enabled,
				 wlan_is_station) > 0)
		cfp = wlan_get_cfp_by_band_and_channel(pmadapter, band, channel,
						       pmadapter->
						       universal_channel);
	else
		cfp = wlan_get_cfp_by_band_and_channel(pmadapter, band, channel,
						       pmadapter->
						       region_channel);
	LEAVE();
	return cfp;
}
chan_freq_power_t * wlan_find_cfp_by_band_and_channel ( mlan_adapter * pmadapter , t_u8 band , t_u16 channel ) { chan_freq_power_t * cfp = MNULL ; ENTER ( ) ; if ( wlan_count_priv_cond ( pmadapter , wlan_11d_is_enabled , wlan_is_station ) > 0 ) cfp = wlan_get_cfp_by_band_and_channel ( pmadapter , band , channel , pmadapter -> universal_channel ) ; else cfp = wlan_get_cfp_by_band_and_channel ( pmadapter , band , channel , pmadapter -> region_channel ) ; LEAVE ( ) ; return cfp ; }
@brief Find the channel frequency power info for a specific channel
  @param pmadapter    A pointer to mlan_adapter structure
  @param band         It can be BAND_A, BAND_G or BAND_B
  @param channel      The channel to search for
@brief Find the channel frequency power info for a specific channel @param pmadapter A pointer to mlan_adapter structure @param band It can be BAND_A BAND_G or BAND_B @param channel The channel to search for
/* Any station(s) with 11D enabled */