diff options
| author | Deepthi Gowri <deepthi@codeaurora.org> | 2016-10-07 18:11:56 +0530 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-10-12 14:46:22 +0530 |
| commit | 61c7cea7a9d452592c439d99b9369a7f7b60ebda (patch) | |
| tree | d3429c3c4e2797c971617596d137747e8c9e560d | |
| parent | 0fc5212e55ef745aa9611e181ce624f82c4f5bfe (diff) | |
qcacld-2.0: Update qie_age->age to match the BSS age in the driver
Lowi expects the timestamp of bss in units of 1/10 ms. In driver all bss
related timestamp is in units of ms. Due to this when scan results are sent
to lowi the scan age is high.
To address this, send age in units of 1/10 ms.
CRs-Fixed: 1075045
Change-Id: Id0a5794357a232105352c1b38d1ce404eabcc4fd
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_cfg80211.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c index f03dd4f1c16a..e9847797d3c4 100644 --- a/CORE/HDD/src/wlan_hdd_cfg80211.c +++ b/CORE/HDD/src/wlan_hdd_cfg80211.c @@ -16977,7 +16977,14 @@ wlan_hdd_cfg80211_inform_bss_frame( hdd_adapter_t *pAdapter, qie_age->oui_2 = QCOM_OUI2; qie_age->oui_3 = QCOM_OUI3; qie_age->type = QCOM_VENDOR_IE_AGE_TYPE; - qie_age->age = vos_timer_get_system_time() - bss_desc->nReceivedTime; + /* + * Lowi expects the timestamp of bss in units of 1/10 ms. In driver all + * bss related timestamp is in units of ms. Due to this when scan results + * are sent to lowi the scan age is high.To address this, send age in units + * of 1/10 ms. + */ + qie_age->age = (vos_timer_get_system_time() - + bss_desc->nReceivedTime)/10; qie_age->tsf_delta = bss_desc->tsf_delta; #endif |
