qcacld-3.0: Fix assert in sme_store_nss_chains_cfg

Need check whether vdev is NULL when pass to
sme_store_nss_chains_cfg.

Change-Id: I1bfa62c8a898ad28e7771e27583e5775d515924a
CRs-Fixed: 2597475
This commit is contained in:
Jianmin Zhu 2020-01-06 15:44:09 +08:00 • committed by nshrivas
commit 62de00823d

View file

@ -4591,7 +4591,11 @@ hdd_store_nss_chains_cfg_in_vdev(struct hdd_adapter *adapter)
hdd_ctx->num_rf_chains);
/* Store the nss chain config into the vdev */
sme_store_nss_chains_cfg_in_vdev(adapter->vdev, &vdev_ini_cfg);
if (adapter->vdev)
sme_store_nss_chains_cfg_in_vdev(adapter->vdev, &vdev_ini_cfg);
else
hdd_err("Vdev is NULL");
}
bool hdd_is_vdev_in_conn_state(struct hdd_adapter *adapter)