diff options
Diffstat (limited to 'drivers/net/wireless/virt_wifi.c')
-rw-r--r-- | drivers/net/wireless/virt_wifi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/virt_wifi.c b/drivers/net/wireless/virt_wifi.c index 075e25d65634..9542372a239d 100644 --- a/drivers/net/wireless/virt_wifi.c +++ b/drivers/net/wireless/virt_wifi.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <net/cfg80211.h> | 12 | #include <net/cfg80211.h> |
13 | #include <net/rtnetlink.h> | 13 | #include <net/rtnetlink.h> |
14 | #include <linux/etherdevice.h> | 14 | #include <linux/etherdevice.h> |
15 | #include <linux/math64.h> | ||
15 | #include <linux/module.h> | 16 | #include <linux/module.h> |
16 | 17 | ||
17 | #include <net/cfg80211.h> | 18 | #include <net/cfg80211.h> |
@@ -178,11 +179,11 @@ static void virt_wifi_scan_result(struct work_struct *work) | |||
178 | scan_result.work); | 179 | scan_result.work); |
179 | struct wiphy *wiphy = priv_to_wiphy(priv); | 180 | struct wiphy *wiphy = priv_to_wiphy(priv); |
180 | struct cfg80211_scan_info scan_info = { .aborted = false }; | 181 | struct cfg80211_scan_info scan_info = { .aborted = false }; |
182 | u64 tsf = div_u64(ktime_get_boot_ns(), 1000); | ||
181 | 183 | ||
182 | informed_bss = cfg80211_inform_bss(wiphy, &channel_5ghz, | 184 | informed_bss = cfg80211_inform_bss(wiphy, &channel_5ghz, |
183 | CFG80211_BSS_FTYPE_PRESP, | 185 | CFG80211_BSS_FTYPE_PRESP, |
184 | fake_router_bssid, | 186 | fake_router_bssid, tsf, |
185 | ktime_get_boot_ns(), | ||
186 | WLAN_CAPABILITY_ESS, 0, | 187 | WLAN_CAPABILITY_ESS, 0, |
187 | (void *)&ssid, sizeof(ssid), | 188 | (void *)&ssid, sizeof(ssid), |
188 | DBM_TO_MBM(-50), GFP_KERNEL); | 189 | DBM_TO_MBM(-50), GFP_KERNEL); |