From 7bae103faac192b93e2eebd3556cea0f73bb874a Mon Sep 17 00:00:00 2001 From: Lin Bai Date: Tue, 30 Apr 2019 12:29:36 +0800 Subject: [PATCH] qcacld-3.0: Fix mismatch EPPING deinit EPPING module only need to be deinited when current mode is EPPING. Change-Id: Ia295af3f5ea2cffd394de7174be933d7fde6798d CRs-Fixed: 2437683 --- core/hdd/src/wlan_hdd_main.c | 2 +- core/mac/src/pe/rrm/rrm_api.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 90f030caecda..93a0d66adeb5 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -11338,7 +11338,7 @@ int hdd_wlan_stop_modules(struct hdd_context *hdd_ctx, bool ftm_mode) hdd_ctx->target_hw_name = NULL; } - if (hdd_get_conparam() != QDF_GLOBAL_EPPING_MODE) { + if (hdd_get_conparam() == QDF_GLOBAL_EPPING_MODE) { epping_disable(); epping_close(); } diff --git a/core/mac/src/pe/rrm/rrm_api.c b/core/mac/src/pe/rrm/rrm_api.c index 12127a958222..7bc0dad1da9a 100644 --- a/core/mac/src/pe/rrm/rrm_api.c +++ b/core/mac/src/pe/rrm/rrm_api.c @@ -580,7 +580,7 @@ rrm_process_beacon_report_req(struct mac_context *mac, if (!pSmeBcnReportReq) return eRRM_FAILURE; - /* Allocated memory for pSmeBcnReportReq....will be freed by other modulea */ + /* Alloc memory for pSmeBcnReportReq, will be freed by other modules */ qdf_mem_copy(pSmeBcnReportReq->bssId, pe_session->bssId, sizeof(tSirMacAddr)); pSmeBcnReportReq->messageType = eWNI_SME_BEACON_REPORT_REQ_IND;