software/drivers/sd8887/src/wlan/mlan/mlan_11ac.c
/*
 *  @brief This function check if AP is in 11ac mode
 *
 *  @param priv         A pointer to mlan_private structure
 *
 *  @return             MTRUE/MFALSE
 */
@brief This function check if AP is in 11ac mode
@param priv         A pointer to mlan_private structure

@return             MTRUE/MFALSE
@brief This function check if AP is in 11ac mode @param priv A pointer to mlan_private structure @return MTRUE / MFALSE
t_u8
wlan_is_ap_in_11ac_mode(mlan_private *priv)
{
	BSSDescriptor_t *pbss_desc;
	IEEEtypes_VHTOprat_t *vht_oprat = MNULL;
	pbss_desc = &priv->curr_bss_params.bss_descriptor;
	vht_oprat = pbss_desc->pvht_oprat;
	if (!pbss_desc->pvht_cap)
		return MFALSE;
	if (vht_oprat && (vht_oprat->ieee_hdr.element_id == VHT_OPERATION)) {
		if (vht_oprat->chan_width == VHT_OPER_CHWD_20_40MHZ)
			return MFALSE;
		else
			return MTRUE;
	} else
		return MFALSE;
}
t_u8 wlan_is_ap_in_11ac_mode ( mlan_private * priv ) { BSSDescriptor_t * pbss_desc ; IEEEtypes_VHTOprat_t * vht_oprat = MNULL ; pbss_desc = & priv -> curr_bss_params . bss_descriptor ; vht_oprat = pbss_desc -> pvht_oprat ; if ( ! pbss_desc -> pvht_cap ) return MFALSE ; if ( vht_oprat && ( vht_oprat -> ieee_hdr . element_id == VHT_OPERATION ) ) { if ( vht_oprat -> chan_width == VHT_OPER_CHWD_20_40MHZ ) return MFALSE ; else return MTRUE ; } else return MFALSE ; }
@brief This function check if AP is in 11ac mode
  @param priv         A pointer to mlan_private structure
@brief This function check if AP is in 11ac mode @param priv A pointer to mlan_private structure