Jelajahi Sumber

qcacmn: Set RRM scan type indication in scan control flags

Send RRM scan type indication in scan control flags to FW to scan
the channel for given duration after the FILS is detected.

Change-Id: I2057ef9794e3b05b7296679bb0220425ff64e6ae
CRs-Fixed: 2743155
Kiran Kumar Lokere 5 tahun lalu
induk
melakukan
639e3bc96b

+ 3 - 0
umac/scan/core/src/wlan_scan_main.h

@@ -155,6 +155,9 @@ struct probe_time_dwell_time {
 /* Indicate client hint req is high priority than FW rnr or FILS discovery */
 #define SCAN_FLAG_EXT_6GHZ_CLIENT_HIGH_PRIORITY 0x80
 
+/* RRM scan type indication */
+#define SCAN_FLAG_EXT_RRM_SCAN_IND 0x400
+
 /* Passive dwell time if bt_a2dp is enabled. Time in msecs*/
 #define PASSIVE_DWELL_TIME_BT_A2DP_ENABLED 28
 

+ 2 - 0
umac/scan/core/src/wlan_scan_manager.c

@@ -1296,6 +1296,8 @@ scm_scan_req_update_params(struct wlan_objmgr_vdev *vdev,
 	      req->scan_req.scan_type != SCAN_TYPE_RRM)
 		scm_req_update_concurrency_params(vdev, req, scan_obj);
 
+	if (req->scan_req.scan_type == SCAN_TYPE_RRM)
+		req->scan_req.scan_ctrl_flags_ext |= SCAN_FLAG_EXT_RRM_SCAN_IND;
 	/*
 	 * Set wide band flag if enabled. This will cause
 	 * phymode TLV being sent to FW.