From 409ca57191a4467a5d6b3a3635ba6daa533c0f4d Mon Sep 17 00:00:00 2001 From: Abhishek Singh Date: Mon, 10 Aug 2020 09:41:52 +0530 Subject: [PATCH] qcacld-3.0: Fix peer leak for peer Connected to SAP during CAC wait During SAP stop in CAC wait time, if peer are connected to SAP, the peers are not deleted leading to peer leak. Fix is to continue with disconnect in lim_process_mlm_disassoc_req_ntf and lim_process_mlm_deauth_req_ntf as lim_send_deauth_mgmt_frame and lim_send_disassoc_mgmt_frame already have code for not sending deauth OTA during CAC time. Change-Id: I33580f35cbe5bf9c0558fbd6138235a2a1edc645 CRs-Fixed: 2750966 --- .../src/pe/lim/lim_process_mlm_req_messages.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/core/mac/src/pe/lim/lim_process_mlm_req_messages.c b/core/mac/src/pe/lim/lim_process_mlm_req_messages.c index b77b27932434..af628ea2f284 100644 --- a/core/mac/src/pe/lim/lim_process_mlm_req_messages.c +++ b/core/mac/src/pe/lim/lim_process_mlm_req_messages.c @@ -993,15 +993,6 @@ lim_process_mlm_disassoc_req_ntf(struct mac_context *mac_ctx, } break; - case eLIM_AP_ROLE: - case eLIM_P2P_DEVICE_GO: - if (true == - mac_ctx->sap.SapDfsInfo.is_dfs_cac_timer_running) { - pe_err("CAC timer is running, drop disassoc from going out"); - mlm_disassoccnf.resultCode = eSIR_SME_SUCCESS; - goto end; - } - break; default: break; } /* end switch (GET_LIM_SYSTEM_ROLE(session)) */ @@ -1362,16 +1353,6 @@ lim_process_mlm_deauth_req_ntf(struct mac_context *mac_ctx, goto end; } break; - case eLIM_AP_ROLE: - case eLIM_P2P_DEVICE_GO: - if (true == - mac_ctx->sap.SapDfsInfo.is_dfs_cac_timer_running) { - pe_err("CAC timer is running, drop disassoc from going out"); - mlm_deauth_cnf.resultCode = eSIR_SME_SUCCESS; - goto end; - } - break; - default: break; } /* end switch (GET_LIM_SYSTEM_ROLE(session)) */