OSDN Git Service

net: wireless: bcmdhd: Set probe_resp.timestamp value to scan results
authorDmitry Shmidt <dimitrysh@google.com>
Wed, 21 Mar 2012 00:04:02 +0000 (17:04 -0700)
committerDmitry 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

index dab24e2..24ac40c 100644 (file)
@@ -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)) {