projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1bc297
)
net: wireless: bcmdhd: Use correct time from boot for TSF
author
Dmitry Shmidt
<dimitrysh@google.com>
Mon, 13 Aug 2012 18:37:43 +0000
(11:37 -0700)
committer
Dmitry Shmidt
<dimitrysh@google.com>
Mon, 13 Aug 2012 19:45:38 +0000
(12:45 -0700)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/net/wireless/bcmdhd/wl_cfg80211.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/bcmdhd/wl_cfg80211.c
b/drivers/net/wireless/bcmdhd/wl_cfg80211.c
index b10a5efff0ac0e09c8d9177229fb41e56dc44800..87d971a5e5dd20d705d9ad2f430c776aa6fed5f9 100644
(file)
--- a/
drivers/net/wireless/bcmdhd/wl_cfg80211.c
+++ b/
drivers/net/wireless/bcmdhd/wl_cfg80211.c
@@
-4753,11
+4753,11
@@
static s32 wl_inform_single_bss(struct wl_priv *wl, struct wl_bss_info *bi)
signal = notif_bss_info->rssi * 100;
if (!mgmt->u.probe_resp.timestamp) {
- struct time
val tv
;
+ struct time
spec ts
;
-
do_gettimeofday(&tv
);
- mgmt->u.probe_resp.timestamp = ((u64)t
v
.tv_sec * 1000000)
- + t
v.tv_usec
;
+
get_monotonic_boottime(&ts
);
+ mgmt->u.probe_resp.timestamp = ((u64)t
s
.tv_sec * 1000000)
+ + t
s.tv_nsec / 1000
;
}
cbss = cfg80211_inform_bss_frame(wiphy, channel, mgmt,