From 6dabf4ea388a8165d5f32a8ab18c0e3706b887e8 Mon Sep 17 00:00:00 2001 From: Naveen Rawat Date: Wed, 8 Feb 2017 15:55:49 -0800 Subject: [PATCH] qcacld-3.0: Fix the ie_len while creating beacon frame In function sme_prepare_beacon_from_bss_descp, ie_len was storing uint32_t into uint8_t which was causing beacon frame buffer to be filled partially. Change the ie_len argument to uint32_t Change-Id: Ia94dbd6e280579fe1621863b0e8f6ba4e13d10ed CRs-Fixed: 2004265 --- core/sme/src/common/sme_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 7355104a9c09..f3ab8c2635fc 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -16084,7 +16084,7 @@ QDF_STATUS sme_set_wow_pulse(struct wow_pulse_mode *wow_pulse_set_info) static void sme_prepare_beacon_from_bss_descp(uint8_t *frame_buf, tSirBssDescription *bss_descp, const tSirMacAddr bssid, - uint8_t ie_len) + uint32_t ie_len) { tDot11fBeacon1 *bcn_fixed; tpSirMacMgmtHdr mac_hdr = (tpSirMacMgmtHdr)frame_buf;