From fffde56f759acefa007255c1dee4a775c886b196 Mon Sep 17 00:00:00 2001 From: Pragaspathi Thilagaraj Date: Fri, 5 Oct 2018 20:16:23 +0530 Subject: [PATCH] qcacld-3.0: Send the del sta session command with low priority When the userspace disconnect is issued, as a part of wlan exit, HDD sent below commands to sme: 1) Disconnect Req (DelBSS /Del Sta) 2) Close Session ( DelSelfSta ) in the following path: hdd_stop_adapter() -> hdd_stop_adapter_ext() -> hdd_vdev_destroy -> sme_close_session() -> csr_roam_close_session. e_sme_command_del_sta_session is sent from csr_roam_close_session with high priority. This causes vdev delete to be sent before peer delete . As HDD has already freed all the commands in csr_roam_close_session, now sme should process the cmd only in the pending queue order. Hence we should not send DEL_SELF_STA as high priority cmd. Send the e_sme_command_del_sta_session with normal priority. Change-Id: Ic874ca792f84235c70b8257a232c02f0bd050618 CRs-Fixed: 2328462 --- core/sme/src/csr/csr_api_roam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sme/src/csr/csr_api_roam.c b/core/sme/src/csr/csr_api_roam.c index 0fc1f45918a8..298be559b249 100644 --- a/core/sme/src/csr/csr_api_roam.c +++ b/core/sme/src/csr/csr_api_roam.c @@ -17371,7 +17371,7 @@ csr_issue_del_sta_for_session_req(tpAniSirGlobal mac_ctx, uint32_t session_id, sme_command->u.delStaSessionCmd.context = context; qdf_mem_copy(sme_command->u.delStaSessionCmd.selfMacAddr, session_mac_addr, sizeof(tSirMacAddr)); - status = csr_queue_sme_command(mac_ctx, sme_command, true); + status = csr_queue_sme_command(mac_ctx, sme_command, false); if (!QDF_IS_STATUS_SUCCESS(status)) sme_err("fail to send message status = %d", status); }