mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 05:17:10 +09:00
net: wireless: bcmdhd: Use correct time from boot for TSF
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
@@ -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 timeval tv;
|
||||
struct timespec ts;
|
||||
|
||||
do_gettimeofday(&tv);
|
||||
mgmt->u.probe_resp.timestamp = ((u64)tv.tv_sec * 1000000)
|
||||
+ tv.tv_usec;
|
||||
get_monotonic_boottime(&ts);
|
||||
mgmt->u.probe_resp.timestamp = ((u64)ts.tv_sec * 1000000)
|
||||
+ ts.tv_nsec / 1000;
|
||||
}
|
||||
|
||||
cbss = cfg80211_inform_bss_frame(wiphy, channel, mgmt,
|
||||
|
||||
Reference in New Issue
Block a user