qcacmn: Initialize the chan_params structure

chan_params structure is uninitialized, due to which variables
inside the chan_params structure have garbage values.
To avoid this, initialize the chan_params structure.

Change-Id: Ic09c0a2d24c2a1eac8f076c7bbd4d25d147370fd
CRs-Fixed: 3205502
此提交包含在:
Divya R
2022-05-30 15:50:36 +05:30
提交者 Madan Koyyalamudi
父節點 5fd598fac0
當前提交 33e3e1d6a8
共有 2 個檔案被更改,包括 4 行新增4 行删除

查看文件

@@ -4289,7 +4289,7 @@ static bool
target_if_spectral_is_valid_80p80_freq(struct wlan_objmgr_pdev *pdev,
uint32_t cfreq1, uint32_t cfreq2)
{
struct ch_params ch_params;
struct ch_params ch_params = {0};
enum channel_state chan_state1;
enum channel_state chan_state2;
struct wlan_objmgr_psoc *psoc;