From 009caaf84160ff8e9e88d0fd43014d072cd44b96 Mon Sep 17 00:00:00 2001 From: Naveen Rawat Date: Wed, 8 Feb 2017 15:55:49 -0800 Subject: 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 5a602054f10c..99b35ce8e2a4 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -17301,7 +17301,7 @@ QDF_STATUS sme_get_rcpi(tHalHandle hal, struct sme_rcpi_req *rcpi) 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; -- cgit v1.2.3