virt_wifi: Return micros for BSS TSF values
authorA. Cody Schuffelen <schuffelen@google.com>
Thu, 18 Mar 2021 20:04:19 +0000 (13:04 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Apr 2021 10:56:15 +0000 (12:56 +0200)
commit7a2ac9ed8cf6d078a73387716b0a19b6e03fd7dc
tree07a5ade1396468e41ec798dbad743a41da7c3fe4
parentbd7e90c82850f49c23004d54de14e46d373748a6
virt_wifi: Return micros for BSS TSF values

[ Upstream commit b57aa17f07c9270e576ef7df09f142978b5a75f0 ]

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>
Link: https://lore.kernel.org/r/20210318200419.1421034-1-schuffelen@google.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/virt_wifi.c