From: Dmitry Shmidt Date: Wed, 21 Mar 2012 00:04:02 +0000 (-0700) Subject: net: wireless: bcmdhd: Set probe_resp.timestamp value to scan results X-Git-Tag: firefly_0821_release~7613^2~158 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5a6caf91b09da382d0664c0d9f2b8456e5c94666;p=firefly-linux-kernel-4.4.55.git net: wireless: bcmdhd: Set probe_resp.timestamp value to scan results Signed-off-by: Dmitry Shmidt --- diff --git a/drivers/net/wireless/bcmdhd/wl_cfg80211.c b/drivers/net/wireless/bcmdhd/wl_cfg80211.c index dab24e255db8..24ac40ce30d9 100644 --- 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)) {