prima: set channel width for TDLS link from ongoing session

Channel width of TDLS link on base channel should not exceed
channel width  of STA-AP link.
pStaDs->vhtSupportedChannelWidthSet represent the channel width
of TDLS link on base channel and psessionEntry->vhtTxChannelWidthSet
represents channel width set for STA-AP link.
Hence update pStaDs->vhtSupportedChannelWidthSet from
psessionEntry->vhtTxChannelWidthSet.

Change-Id: Ibf119111b80e2c77c7b92f4978a80230e5563046
CRs-Fixed: 955795
diff --git a/CORE/MAC/src/pe/lim/limProcessTdls.c b/CORE/MAC/src/pe/lim/limProcessTdls.c
index e861a67..61bfac4 100644
--- a/CORE/MAC/src/pe/lim/limProcessTdls.c
+++ b/CORE/MAC/src/pe/lim/limProcessTdls.c
@@ -2550,27 +2550,11 @@
     {
         pStaDs->mlmStaContext.vhtCapability = 1 ;
 
-        if (psessionEntry->currentOperChannel <= SIR_11B_CHANNEL_END)
-        {
-            /* if the channel is 2G then update the min channel widthset in
-             * pStaDs. These values are used when sending a AddSta request to
-             * firmware
-             * 11.21.1 General: The channel width of the TDLS direct link on the
-             * base channel shall not exceed the channel width of the BSS to which
-             * the TDLS peer STAs are associated.*/
-            pStaDs->vhtSupportedChannelWidthSet = WNI_CFG_VHT_CHANNEL_WIDTH_20_40MHZ;
-            pStaDs->htSupportedChannelWidthSet = eHT_CHANNEL_WIDTH_20MHZ;
-            limLog(pMac, LOG1,
-                    FL("vhtSupportedChannelWidthSet = %hu,"
-                        " htSupportedChannelWidthSet %hu"),
-                    pStaDs->vhtSupportedChannelWidthSet,
-                    pStaDs->htSupportedChannelWidthSet) ;
-        }
-        else
-        {
-            pStaDs->vhtSupportedChannelWidthSet =  WNI_CFG_VHT_CHANNEL_WIDTH_80MHZ;
-            pStaDs->htSupportedChannelWidthSet = eHT_CHANNEL_WIDTH_40MHZ ;
-        }
+        pStaDs->vhtSupportedChannelWidthSet =
+                    psessionEntry->vhtTxChannelWidthSet;
+
+        limLog(pMac, LOG1, FL("Vht supported channel width is set to = %d"),
+               pStaDs->vhtSupportedChannelWidthSet);
 
         pStaDs->vhtLdpcCapable = pVhtCaps->ldpcCodingCap;
         pStaDs->vhtBeamFormerCapable= pVhtCaps->suBeamFormerCap;