From a4e1224bb5878e06e3e059d9a2673e3966e61453 Mon Sep 17 00:00:00 2001 From: Krishna Kumaar Natarajan Date: Fri, 1 Apr 2016 18:44:39 -0700 Subject: [PATCH] qcacld-3.0: Pass original beacon TSF to user space Pass original beacon TSF to user space application. This TSF is used by the user space application for its internal processing. Change-Id: I6c1638801dba2b53cbcb5b1ebc925d6f4e035582 CRs-Fixed: 998544 --- core/hdd/src/wlan_hdd_cfg80211.c | 2 ++ core/hdd/src/wlan_hdd_cfg80211.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 79cc8b41943a..dad64ab50a5c 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -7835,6 +7835,8 @@ wlan_hdd_cfg80211_inform_bss_frame(hdd_adapter_t *pAdapter, qie_age->age = qdf_mc_timer_get_system_ticks() - bss_desc->nReceivedTime; qie_age->tsf_delta = bss_desc->tsf_delta; + memcpy(&qie_age->beacon_tsf, bss_desc->timeStamp, + sizeof(qie_age->beacon_tsf)); #endif memcpy(mgmt->u.probe_resp.variable, ie, ie_length); diff --git a/core/hdd/src/wlan_hdd_cfg80211.h b/core/hdd/src/wlan_hdd_cfg80211.h index 1a185b0e30fd..b2e6aa2cf9d0 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.h +++ b/core/hdd/src/wlan_hdd_cfg80211.h @@ -121,6 +121,7 @@ * @type: Type * @age: Age * @tsf_delta: tsf delta from FW + * @beacon_tsf: original beacon TSF */ typedef struct { u8 element_id; @@ -131,6 +132,7 @@ typedef struct { u32 type; u32 age; u32 tsf_delta; + u64 beacon_tsf; } __attribute__ ((packed)) qcom_ie_age; #endif