software/drivers/sd8887/src/wlan/mlan/mlan_11ac.c
/**
 *  @brief This function check if 11AC is allowed in bandcfg
 *
 *  @param pmpriv       A pointer to mlan_private structure
 *  @param bss_band     bss band
 *
 *  @return 0--not allowed, other value allowed
 */
@brief This function check if 11AC is allowed in bandcfg
@param pmpriv       A pointer to mlan_private structure
@param bss_band     bss band

@return 0--not allowed, other value allowed
@brief This function check if 11AC is allowed in bandcfg @param pmpriv A pointer to mlan_private structure @param bss_band bss band @return 0 -- not allowed other value allowed
t_u8
wlan_11ac_bandconfig_allowed(mlan_private *pmpriv, t_u8 bss_band)
{
	if (pmpriv->bss_mode == MLAN_BSS_MODE_IBSS) {
		if (bss_band & BAND_G)
			return (pmpriv->adapter->adhoc_start_band & BAND_GAC);
		else if (bss_band & BAND_A)
			return (pmpriv->adapter->adhoc_start_band & BAND_AAC);
	} else {
		if (bss_band & BAND_G)
			return (pmpriv->config_bands & BAND_GAC);
		else if (bss_band & BAND_A)
			return (pmpriv->config_bands & BAND_AAC);
	}
	return 0;
}
t_u8 wlan_11ac_bandconfig_allowed ( mlan_private * pmpriv , t_u8 bss_band ) { if ( pmpriv -> bss_mode == MLAN_BSS_MODE_IBSS ) { if ( bss_band & BAND_G ) return ( pmpriv -> adapter -> adhoc_start_band & BAND_GAC ) ; else if ( bss_band & BAND_A ) return ( pmpriv -> adapter -> adhoc_start_band & BAND_AAC ) ; } else { if ( bss_band & BAND_G ) return ( pmpriv -> config_bands & BAND_GAC ) ; else if ( bss_band & BAND_A ) return ( pmpriv -> config_bands & BAND_AAC ) ; } return 0 ; }
@brief This function check if 11AC is allowed in bandcfg
  @param pmpriv       A pointer to mlan_private structure
  @param bss_band     bss band
@brief This function check if 11AC is allowed in bandcfg @param pmpriv A pointer to mlan_private structure @param bss_band bss band