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:
51feefe
)
net: wireless: bcmdhd: Set probe_resp.timestamp value to scan results
author
Dmitry Shmidt
<dimitrysh@google.com>
Wed, 21 Mar 2012 00:04:02 +0000
(17:04 -0700)
committer
Dmitry Shmidt
<dimitrysh@google.com>
Wed, 21 Mar 2012 00:30:54 +0000
(17:30 -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 dab24e255db8514c236b87de1f0524bdce8e592e..24ac40ce30d9b97b1cecd8eb3db1221a898229f8 100644
(file)
--- a/
drivers/net/wireless/bcmdhd/wl_cfg80211.c
+++ b/
drivers/net/wireless/bcmdhd/wl_cfg80211.c
@@
-4546,6
+4546,14
@@
static s32 wl_inform_single_bss(struct wl_priv *wl, struct wl_bss_info *bi)
}
}
+ if (!mgmt->u.probe_resp.timestamp) {
+ struct timeval tv;
+
+ do_gettimeofday(&tv);
+ mgmt->u.probe_resp.timestamp = ((u64)tv.tv_sec * 1000000)
+ + tv.tv_usec;
+ }
+
cbss = cfg80211_inform_bss_frame(wiphy, channel, mgmt,
le16_to_cpu(notif_bss_info->frame_len), signal, GFP_KERNEL);
if (unlikely(!cbss)) {