qcacld-3.0: Initialize local variable before use

Un-initialized use of boolean variable 'is_host_pdev_id'
of struct pdev_params is causing wrong remapping of pdev_id
before passing it down to fw with WMI_PDEV_SET_PARAM_CMDID
resulting in unexpected behavior in fw.
Fixing this by initializing pdev_param, instance of struct
pdev_params to zero.

Change-Id: I2e6333c966d602cd4dcc72749dca23a48097028a
CRs-Fixed: 2747575
This commit is contained in:
nakul kachhwaha 2020-08-10 15:49:57 +05:30 committed by snandini
parent 57f9f1d78c
commit 580726ef14

View File

@ -843,7 +843,7 @@ static void wma_process_cli_set_cmd(tp_wma_handle wma,
struct wma_txrx_node *intr = wma->interfaces;
struct mac_context *mac = cds_get_context(QDF_MODULE_ID_PE);
struct qpower_params *qparams = &intr[vid].config.qpower_params;
struct pdev_params pdev_param;
struct pdev_params pdev_param = {0};
void *soc = cds_get_context(QDF_MODULE_ID_SOC);
struct target_psoc_info *tgt_hdl;