From 40d08f88c47cfcbd1bd969661dd3c1ee646ceadc Mon Sep 17 00:00:00 2001 From: gaurank kathpalia Date: Wed, 22 Apr 2020 17:22:51 +0530 Subject: [PATCH] qcacld-3.0: Do not send BLM list to FW if recovering Do not send the reject AP list to FW if the driver is in recovering state (SSR) as the FW is already down. Change-Id: I31d815e215ca703574348a287f294da46937670f CRs-Fixed: 2667934 --- core/hdd/src/wlan_hdd_main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 6923d0d5554c..17d36d4e30cf 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -14517,11 +14517,12 @@ static int wlan_hdd_state_ctrl_param_open(struct inode *inode, static void hdd_inform_wifi_off(void) { struct hdd_context *hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD); + int ret; - if (!hdd_ctx) { - hdd_err("Invalid hdd/pdev context"); + ret = wlan_hdd_validate_context(hdd_ctx); + if (ret != 0) return; - } + ucfg_blm_wifi_off(hdd_ctx->pdev); }