Browse Source

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
Krishna Kumaar Natarajan 9 years ago
parent
commit
a4e1224bb5
2 changed files with 4 additions and 0 deletions
  1. 2 0
      core/hdd/src/wlan_hdd_cfg80211.c
  2. 2 0
      core/hdd/src/wlan_hdd_cfg80211.h

+ 2 - 0
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);

+ 2 - 0
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