Jelajahi Sumber

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
Naveen Rawat 8 tahun lalu
induk
melakukan
6dabf4ea38
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      core/sme/src/common/sme_api.c

+ 1 - 1
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;