From 7f9408bacceeda68fa5b150bec5c76a729210d26 Mon Sep 17 00:00:00 2001 From: Sathish Kumar Date: Fri, 11 Aug 2017 15:00:04 +0530 Subject: [PATCH] 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 --- umac/scan/dispatcher/inc/wlan_scan_public_structs.h | 2 ++ umac/scan/dispatcher/src/wlan_scan_ucfg_api.c | 1 + wmi/src/wmi_unified_tlv.c | 1 + 3 files changed, 4 insertions(+) diff --git a/umac/scan/dispatcher/inc/wlan_scan_public_structs.h b/umac/scan/dispatcher/inc/wlan_scan_public_structs.h index 70e7522ae51c..4759db8de9e6 100644 --- a/umac/scan/dispatcher/inc/wlan_scan_public_structs.h +++ b/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; }; /** diff --git a/umac/scan/dispatcher/src/wlan_scan_ucfg_api.c b/umac/scan/dispatcher/src/wlan_scan_ucfg_api.c index 2df259a7f9cb..da27314aeba4 100644 --- a/umac/scan/dispatcher/src/wlan_scan_ucfg_api.c +++ b/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; diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index 4a48ddfbb6c4..7c82d130d4a2 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/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; }