Bläddra i källkod

qcacld-3.0: Fix the size of array ch_list in sme_set_plm_request

Currently the size of array ch_list in sme_set_plm_request is
defined as WNI_CFG_VALID_CHANNEL_LIST and this is incorrect.
This is just an index to the corresponding CFG item. Fix the
size to WNI_CFG_VALID_CHANNEL_LIST_LEN which is the maximum
size that can be passed from the source buffer.

Change-Id: I90086f2c73ee09cfc9d63a327b464f4017f5b37f
CRs-Fixed: 2120725
Varun Reddy Yeturu 7 år sedan
förälder
incheckning
87c8ad8925
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      core/sme/src/common/sme_api.c

+ 1 - 1
core/sme/src/common/sme_api.c

@@ -1614,7 +1614,7 @@ QDF_STATUS sme_set_plm_request(tHalHandle hHal, tpSirPlmReq pPlmReq)
 	QDF_STATUS status;
 	bool ret = false;
 	tpAniSirGlobal pMac = PMAC_STRUCT(hHal);
-	uint8_t ch_list[WNI_CFG_VALID_CHANNEL_LIST] = { 0 };
+	uint8_t ch_list[WNI_CFG_VALID_CHANNEL_LIST_LEN] = { 0 };
 	uint8_t count, valid_count = 0;
 	struct scheduler_msg msg = {0};
 	struct csr_roam_session *pSession = CSR_GET_SESSION(pMac,