Browse Source

qcacmn: Add timestamp param and enable foreign channel exit in scan event

Add timestamp parameter in scan event received from FW to aid
in calculating dwell time and overall channel switch time in
off-channel operations.

Enable foreign channel exit event inorder to be notified
by FW through the scan event.

Change-Id: I4ba028756ee7db35f6528c0554b09c73087184a7
CRs-Fixed: 2056330
Sathish Kumar 7 years ago
parent
commit
7f9408bacc

+ 2 - 0
umac/scan/dispatcher/inc/wlan_scan_public_structs.h

@@ -803,6 +803,7 @@ enum scan_completion_reason {
  * @chan_freq: channel centre frequency
  * @requester: requester id
  * @scan_id: scan id
+ * @timestamp: timestamp in microsec recorded by target for the scan event
  */
 struct scan_event {
 	uint32_t vdev_id;
@@ -811,6 +812,7 @@ struct scan_event {
 	uint32_t chan_freq;
 	uint32_t requester;
 	uint32_t scan_id;
+	uint32_t timestamp;
 };
 
 /**

+ 1 - 0
umac/scan/dispatcher/src/wlan_scan_ucfg_api.c

@@ -757,6 +757,7 @@ wlan_scan_global_init(struct wlan_scan_obj *scan_obj)
 	scan_obj->scan_def.scan_ev_completed = true;
 	scan_obj->scan_def.scan_ev_bss_chan = true;
 	scan_obj->scan_def.scan_ev_foreign_chan = true;
+	scan_obj->scan_def.scan_ev_foreign_chn_exit = true;
 	scan_obj->scan_def.scan_ev_dequeued = true;
 	scan_obj->scan_def.scan_ev_preempted = true;
 	scan_obj->scan_def.scan_ev_start_failed = true;

+ 1 - 0
wmi/src/wmi_unified_tlv.c

@@ -16399,6 +16399,7 @@ static QDF_STATUS extract_vdev_scan_ev_param_tlv(wmi_unified_t wmi_handle,
 	param->requester = evt->requestor;
 	param->scan_id = evt->scan_id;
 	param->vdev_id = evt->vdev_id;
+	param->timestamp = evt->tsf_timestamp;
 
 	return QDF_STATUS_SUCCESS;
 }