From 62de00823d8b3382dc354bdae9578d5e11be2fcd Mon Sep 17 00:00:00 2001 From: Jianmin Zhu Date: Mon, 6 Jan 2020 15:44:09 +0800 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index bb548d2bb330..b7fbcf8d3a37 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -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)