net: wireless: bcmdhd: Set probe_resp.timestamp value to scan results
Dmitry Shmidt [Wed, 21 Mar 2012 00:04:02 +0000 (17:04 -0700)]
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

drivers/net/wireless/bcmdhd/wl_cfg80211.c

index 53bf68c..de5fd67 100644 (file)
@@ -4549,6 +4549,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)) {