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
This commit is contained in:
Wu Gao
2019-05-31 14:23:48 +08:00
committed by nshrivas
szülő 8dbf4b5654
commit 7f70e38aec

Fájl megtekintése

@@ -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;