소스 검색

qcacld-3.0: Fix kw issue about neighbor_scan_channel_list

CFG_VALID_CHANNEL_LIST_STRING_LEN as array size passed to
qdf_uint8_array_parse, which is more big than array size. So pass the
actual size - CFG_VALID_CHANNEL_LIST_LEN to that function.

Change-Id: I7596c0887147523570450dbac4dba2d03e7fe8b6
CRs-Fixed: 2462613
Wu Gao 5 년 전
부모
커밋
7f70e38aec
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      components/mlme/core/src/wlan_mlme_main.c

+ 1 - 1
components/mlme/core/src/wlan_mlme_main.c

@@ -1666,7 +1666,7 @@ static void mlme_init_lfr_cfg(struct wlan_objmgr_psoc *psoc,
 		cfg_get(psoc, CFG_LFR_DELAY_BEFORE_VDEV_STOP);
 	qdf_uint8_array_parse(cfg_get(psoc, CFG_LFR_NEIGHBOR_SCAN_CHANNEL_LIST),
 			      lfr->neighbor_scan_channel_list,
-			      CFG_VALID_CHANNEL_LIST_STRING_LEN,
+			      CFG_VALID_CHANNEL_LIST_LEN,
 			      &neighbor_scan_chan_list_num);
 	lfr->neighbor_scan_channel_list_num =
 				(uint8_t)neighbor_scan_chan_list_num;