From 85df61f0dcede909a52cfb72b7de09c37286a453 Mon Sep 17 00:00:00 2001 From: Pragaspathi Thilagaraj Date: Fri, 16 Aug 2019 08:27:33 +0530 Subject: [PATCH] qcacld-3.0: Fix roam scan mode send during RSO update config As part of RSO update config, roam scan mode is set to 4 before the WMI_ROAM_SCAN_RSSI_THRESHOLD command is sent to the firmware. And after WMI_ROAM_SCAN_RSSI_THRESHOLD is sent, the roam scan mode value is again set back to 7(value 7 enables RSSI scan and periodic scan). There is a very small window between these two commands where BMISS event is received and firmware forwards it to the host which causes a disconnection. Fix is to disable sending roam scan mode to 4 before sending the WMI_ROAM_SCAN_RSSI_THRESHOLD command. Change-Id: I2c22308d711e71e67d132a0bd121aed66497998b CRs-Fixed: 2508762 --- core/wma/src/wma_scan_roam.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/core/wma/src/wma_scan_roam.c b/core/wma/src/wma_scan_roam.c index 88bf69086a..67816cccec 100644 --- a/core/wma/src/wma_scan_roam.c +++ b/core/wma/src/wma_scan_roam.c @@ -1985,18 +1985,6 @@ QDF_STATUS wma_process_roaming_config(tp_wma_handle wma_handle, case ROAM_SCAN_OFFLOAD_UPDATE_CFG: wma_handle->suitable_ap_hb_failure = false; - if (roam_req->RoamScanOffloadEnabled) { - wma_roam_scan_fill_scan_params(wma_handle, mac, - roam_req, &scan_params); - qdf_status = - wma_roam_scan_offload_mode( - wma_handle, &scan_params, roam_req, - WMI_ROAM_SCAN_MODE_NONE, - roam_req->sessionId); - if (qdf_status != QDF_STATUS_SUCCESS) - break; - } - qdf_status = wma_roam_scan_bmiss_cnt(wma_handle, roam_req->RoamBmissFirstBcnt, roam_req->RoamBmissFinalBcnt,