summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrishna Kumaar Natarajan <kknatara@codeaurora.org>2016-04-01 18:44:39 -0700
committerAkash Patel <akashp@codeaurora.org>2016-05-13 16:20:43 -0700
commita4e1224bb5878e06e3e059d9a2673e3966e61453 (patch)
tree6fce87ed9a12de105a4a8bbd62954d67eeff6dc8
parentc332b35416aebedd1623c8b22f3564397665e326 (diff)
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
-rw-r--r--core/hdd/src/wlan_hdd_cfg80211.c2
-rw-r--r--core/hdd/src/wlan_hdd_cfg80211.h2
2 files changed, 4 insertions, 0 deletions
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