diff --git a/drivers/staging/prima/CORE/MAC/inc/sirMacProtDef.h b/drivers/staging/prima/CORE/MAC/inc/sirMacProtDef.h index c4d1477f8a9..1e37bc97a86 100644 --- a/drivers/staging/prima/CORE/MAC/inc/sirMacProtDef.h +++ b/drivers/staging/prima/CORE/MAC/inc/sirMacProtDef.h @@ -1093,11 +1093,11 @@ typedef __ani_attr_pre_packed struct sSirMacRateSet tANI_U8 rate[SIR_MAC_RATESET_EID_MAX]; } __ani_attr_packed tSirMacRateSet; - +//Reserve 1 byte for NULL character in the SSID name field to print in %s typedef __ani_attr_pre_packed struct sSirMacSSid { tANI_U8 length; - tANI_U8 ssId[32]; + tANI_U8 ssId[SIR_MAC_MAX_SSID_LENGTH + 1]; } __ani_attr_packed tSirMacSSid; typedef __ani_attr_pre_packed struct sSirMacWpaInfo diff --git a/drivers/staging/prima/CORE/MAC/src/pe/sch/schBeaconProcess.c b/drivers/staging/prima/CORE/MAC/src/pe/sch/schBeaconProcess.c index 89c509272ce..2c545947830 100644 --- a/drivers/staging/prima/CORE/MAC/src/pe/sch/schBeaconProcess.c +++ b/drivers/staging/prima/CORE/MAC/src/pe/sch/schBeaconProcess.c @@ -749,10 +749,6 @@ void schBeaconProcess(tpAniSirGlobal pMac, tANI_U8* pRxPacketInfo, tpPESession p return; } - if (beaconStruct.ssidPresent) - { - beaconStruct.ssId.ssId[beaconStruct.ssId.length] = 0; - } /* * First process the beacon in the context of any existing AP or BTAP session.