Skip to content
Permalink
Browse files
virt_wifi: Return micros for BSS TSF values
cfg80211_inform_bss expects to receive a TSF value, but is given the
time since boot in nanoseconds. TSF values are expected to be at
microsecond scale rather than nanosecond scale.

Signed-off-by: A. Cody Schuffelen <schuffelen@google.com>
  • Loading branch information
Databean authored and intel-lab-lkp committed Mar 18, 2021
1 parent 13ce240 commit 6c3f5b51c512d7947ccef9ef5e6a1ee352b77b63
Showing 1 changed file with 1 addition and 1 deletion.
@@ -172,7 +172,7 @@ static void virt_wifi_scan_result(struct work_struct *work)
informed_bss = cfg80211_inform_bss(wiphy, &channel_5ghz,
CFG80211_BSS_FTYPE_PRESP,
fake_router_bssid,
ktime_get_boottime_ns(),
ktime_get_boottime_ns() / 1000,
WLAN_CAPABILITY_ESS, 0,
(void *)&ssid, sizeof(ssid),
DBM_TO_MBM(-50), GFP_KERNEL);

0 comments on commit 6c3f5b5

Please sign in to comment.