From 4e6451fe9d99ea7f9b47023b2bd22bf3275bdc3b Mon Sep 17 00:00:00 2001 From: Nirav Shah Date: Mon, 13 May 2019 19:27:16 +0530 Subject: [PATCH] qcacld-3.0: Do not send reassoc failure in case of no hw_mode change In roaming scenario when there is no hw_mode change is required, roam failure is sent to CSR which is causing move VDEV from INIT state to EV_DOWN. In this case, wma_target_req buffer expected instead of scheduler_msg. As the wrong buffer is passed, it is causing a system instability. Fix is not to send reassoc failure for LFR2 when there is no change in hw_mode required and go ahead with connect. Change-Id: I7cc7b0ee1407e04c47177838fc069db5b90353d7 CRs-Fixed: 2451178 --- 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 ca07c59fbdec..ff24e4078c25 100644 --- a/core/sme/src/csr/csr_api_roam.c +++ b/core/sme/src/csr/csr_api_roam.c @@ -9617,7 +9617,7 @@ void csr_handle_disassoc_ho(struct mac_context *mac, uint32_t session_id) qdf_mem_free(scan_filter); qdf_mem_free(roam_info); return; - } else if (status != QDF_STATUS_E_NOSUPPORT) + } else if (status == QDF_STATUS_E_FAILURE) goto POST_ROAM_FAILURE; status = csr_roam_lfr2_issue_connect(mac, session_id,