Fix TDLS link rate to operate with 11AC AP

While adding TDLS peer STA, vhtCapablity is not properly set.
This fix is to get proper vhtCapability and 11AC related
parameter during adding TDLS peer station.

CRs-Fixed: 451491
Change-Id: I61e59e74c3657ae3957217803f7d698564f25089
diff --git a/CORE/MAC/src/pe/lim/limProcessTdls.c b/CORE/MAC/src/pe/lim/limProcessTdls.c
index 8e2f37c..294333f 100644
--- a/CORE/MAC/src/pe/lim/limProcessTdls.c
+++ b/CORE/MAC/src/pe/lim/limProcessTdls.c
@@ -2065,13 +2065,16 @@
 {
     //tDot11fIEHTCaps *htCaps = &setupPeerInfo->tdlsPeerHTCaps ;
     tDot11fIEHTCaps htCap, *htCaps;
+#ifdef WLAN_FEATURE_11AC
+    tDot11fIEVHTCaps vhtCap, *pVhtCaps;
+#endif
     tpDphHashNode pSessStaDs = NULL;
     tANI_U16 aid;
 
     //HACK- to get the session's htcaps.
     PopulateDot11fHTCaps(pMac, psessionEntry, &htCap);
     htCaps = &htCap;
-    if(htCaps->present)
+    if (htCaps->present)
     {
         pStaDs->mlmStaContext.htCapability = 1 ;
         pStaDs->htGreenfield = htCaps->greenField ;
@@ -2095,6 +2098,24 @@
         pStaDs->mlmStaContext.htCapability = 0 ;
         pMac->lim.gLimTdlsLinkMode = TDLS_LINK_MODE_BG ;
     }
+#ifdef WLAN_FEATURE_11AC
+    //HACK- this needs to get from peer
+    PopulateDot11fVHTCaps(pMac, &vhtCap);
+    pVhtCaps = &vhtCap;
+    if (pVhtCaps->present)
+    {
+        pStaDs->mlmStaContext.vhtCapability = 1 ;
+        pStaDs->vhtSupportedChannelWidthSet= 1; // pVhtCaps->supportedChannelWidthSet;
+        pStaDs->vhtLdpcCapable = 1; // pVhtCaps->ldpcCodingCap
+        pStaDs->vhtBeamFormerCapable= 1; // pVhtCaps->suBeamFormerCap
+
+        pMac->lim.gLimTdlsLinkMode = TDLS_LINK_MODE_AC;
+    }
+    else
+    {
+        pStaDs->mlmStaContext.vhtCapability = 0 ;
+    }
+#endif
     
     pSessStaDs = dphLookupHashEntry(pMac, psessionEntry->bssId, &aid, 
                                           &psessionEntry->dph.dphHashTable) ;