EPPING module only need to be deinited when current mode is EPPING. Change-Id: Ia295af3f5ea2cffd394de7174be933d7fde6798d CRs-Fixed: 2437683
@@ -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();
@@ -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;