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
This commit is contained in:
Lin Bai 2019-04-30 12:29:36 +08:00 • committed by nshrivas
commit 7bae103faa
2 changed files with 2 additions and 2 deletions

View file

@ -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();
}

View file

@ -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;