From 29e501ddea84e43a43d49ad82487f01531371b4d Mon Sep 17 00:00:00 2001 From: Alok Kumar Date: Tue, 17 Sep 2019 21:26:37 +0530 Subject: [PATCH] qcacld-3.0: Fix restart adapter for QDF_MONITOR_MODE in SSR During hdd_start_all_adapters for QDF_MONITOR_MODE, wlan_hdd_set_mon_chan fails to change hw mode as recovery is always in progress at this point. Since recovery is in progress, the check for wlan_hdd_validate_context inside wlan_hdd_change_hw_mode_for_given_chnl always returns -EINVAL. Remove wlan_hdd_validate_context check from wlan_hdd_change_hw_mode_for_given_chnl as caller to this function has to validate the HDD context. Change-Id: I818e0cfb6f9752d205c13b7a81889a3c1f023fc9 CRs-Fixed: 2529485 --- core/hdd/src/wlan_hdd_cfg80211.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 76d6a7f9b2bd..ca015009de30 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -22488,8 +22488,6 @@ int wlan_hdd_change_hw_mode_for_given_chnl(struct hdd_adapter *adapter, struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter); hdd_enter(); - if (0 != wlan_hdd_validate_context(hdd_ctx)) - return -EINVAL; status = policy_mgr_reset_connection_update(hdd_ctx->psoc); if (!QDF_IS_STATUS_SUCCESS(status))