MT7601u/src/mgmt/mgmt_vht.c
Murat Demirtas 612db32659 FIXED
2016-10-30 14:40:00 +00:00

40 lines
690 B
C

/*
*/
#include "rt_config.h"
#ifdef DOT11_VHT_AC
VOID rtmp_set_vht(RTMP_ADAPTER *pAd, RT_PHY_INFO *phy_info)
{
if (!phy_info)
return;
if (phy_info->bVhtEnable)
phy_info->vht_bw = VHT_BW_80;
}
INT SetCommonVHT(RTMP_ADAPTER *pAd)
{
UCHAR cent_ch = 0;
if (!WMODE_CAP_AC(pAd->CommonCfg.PhyMode))
{
/* Clear previous VHT information */
return FALSE;
}
pAd->CommonCfg.vht_cent_ch = vht_cent_ch_freq(pAd, pAd->CommonCfg.Channel);
DBGPRINT(RT_DEBUG_TRACE, ("%s(): Config VHT parameters!cent_ch=%d!vht_cent_ch = %d, vht_cent_ch2 = %d\n",
__FUNCTION__, cent_ch, pAd->CommonCfg.vht_cent_ch, pAd->CommonCfg.vht_cent_ch2));
return TRUE;
}
#endif /* DOT11_VHT_AC */