瀏覽代碼

qcacld-3.0: Reset bg_scan_client_bitmap after disconnection

Reset bg_scan_client_bitmap after disconnection so that the
roaming module does not keep getting the scan notifications
for other scans after disconnection

Change-Id: Ief8333f9802868d63c22977640bea49a2c69f4a8
CRs-Fixed: 2093219
Varun Reddy Yeturu 7 年之前
父節點
當前提交
69d44b28f6
共有 1 個文件被更改,包括 9 次插入2 次删除
  1. 9 2
      core/wma/src/wma_scan_roam.c

+ 9 - 2
core/wma/src/wma_scan_roam.c

@@ -798,9 +798,10 @@ QDF_STATUS wma_roam_scan_offload_mode(tp_wma_handle wma_handle,
 						roam_req->assoc_ie.length);
 	}
 
-	WMA_LOGD(FL("qos_caps: %d, qos_enabled: %d"),
+	WMA_LOGD(FL("qos_caps: %d, qos_enabled: %d, roam_scan_mode: %d"),
 		params->roam_offload_params.qos_caps,
-		params->roam_offload_params.qos_enabled);
+		params->roam_offload_params.qos_enabled,
+		params->mode);
 
 	status = wmi_unified_roam_scan_offload_mode_cmd(wma_handle->wmi_handle,
 				scan_cmd_fp, params);
@@ -1891,6 +1892,12 @@ QDF_STATUS wma_process_roaming_config(tp_wma_handle wma_handle,
 						&scan_params, NULL, mode,
 						roam_req->sessionId);
 		}
+		/*
+		 * After sending the roam scan mode because of a disconnect,
+		 * clear the scan bitmap client as well by sending
+		 * the following command
+		 */
+		wma_roam_scan_offload_rssi_thresh(wma_handle, roam_req);
 		/*
 		 * If the STOP command is due to a disconnect, then
 		 * send the filter command to clear all the filter