wlan: Added the support for VHT Wider Bandwidth Channel Switch
Added the Parsing of Wider BandWidth Channel Switch IE in Action frame
as well as Beacons
Change-Id: Ie0667f25d5854fe5f22615b90d8be0dceb754d73
CRs-Fixed: 399036
diff --git a/CORE/SYS/legacy/src/utils/src/parserApi.c b/CORE/SYS/legacy/src/utils/src/parserApi.c
index 3ebda69..04eb6cf 100644
--- a/CORE/SYS/legacy/src/utils/src/parserApi.c
+++ b/CORE/SYS/legacy/src/utils/src/parserApi.c
@@ -289,6 +289,19 @@
pDot11f->present = 1;
}
+#ifdef WLAN_FEATURE_11AC
+void
+PopulateDot11fWiderBWChanSwitchAnn(tpAniSirGlobal pMac,
+ tDot11fIEWiderBWChanSwitchAnn *pDot11f,
+ tpPESession psessionEntry)
+{
+ pDot11f->present = 1;
+ pDot11f->newChanWidth = psessionEntry->gLimWiderBWChannelSwitch.newChanWidth;
+ pDot11f->newCenterChanFreq0 = psessionEntry->gLimWiderBWChannelSwitch.newCenterChanFreq0;
+ pDot11f->newCenterChanFreq1 = psessionEntry->gLimWiderBWChannelSwitch.newCenterChanFreq1;
+}
+#endif
+
tSirRetStatus
PopulateDot11fCountry(tpAniSirGlobal pMac,
tDot11fIECountry *pDot11f,
@@ -3158,7 +3171,11 @@
{
palCopyMemory( pMac, &pBeaconStruct->OperatingMode, &pBeacon->OperatingMode, sizeof( tDot11fIEOperatingMode) );
}
-
+ if(pBeacon->WiderBWChanSwitchAnn.present)
+ {
+ pBeaconStruct->WiderBWChanSwitchAnnPresent = 1;
+ palCopyMemory( pMac, &pBeaconStruct->WiderBWChanSwitchAnn, &pBeacon->WiderBWChanSwitchAnn, sizeof( tDot11fIEWiderBWChanSwitchAnn));
+ }
#endif
palFreeMemory(pMac->hHdd, pBeacon);