From 1d00587ec91d0121437cf02c60ed629d104d133f Mon Sep 17 00:00:00 2001 From: fariouche Date: Mon, 1 Oct 2018 10:04:04 +0200 Subject: [PATCH] fixed VHT issue not selected because of wron MESH condition --- core/rtw_ap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/rtw_ap.c b/core/rtw_ap.c index b110139..442a332 100644 --- a/core/rtw_ap.c +++ b/core/rtw_ap.c @@ -2207,9 +2207,9 @@ int rtw_check_beacon_data(_adapter *padapter, u8 *pbuf, int len) && (!rfctl->country_ent || COUNTRY_CHPLAN_EN_11AC(rfctl->country_ent)) ) { if (vht_cap == _TRUE - && MLME_IS_MESH(padapter) /* allow only mesh temporarily before VHT IE checking is ready */ ) { - rtw_check_for_vht20(padapter, ie + _BEACON_IE_OFFSET_, pbss_network->IELength - _BEACON_IE_OFFSET_); + if(MLME_IS_MESH(padapter)) /* allow only mesh temporarily before VHT IE checking is ready */ + rtw_check_for_vht20(padapter, ie + _BEACON_IE_OFFSET_, pbss_network->IELength - _BEACON_IE_OFFSET_); pmlmepriv->ori_vht_en = 1; pmlmepriv->vhtpriv.vht_option = _TRUE; } else if (REGSTY_IS_11AC_AUTO(pregistrypriv)) {