]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211_hwsim: Fill timestamp beacon at the time it is transmitted
authorJavier Cardona <javier@cozybit.com>
Sat, 31 Mar 2012 18:31:30 +0000 (11:31 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 Apr 2012 19:20:29 +0000 (15:20 -0400)
commit112f629519d6bc707da8999ce331ae276d497d1e
tree135e297b21667ec5d240380fb78e17e2037db940
parente7af87deaba86f2245a7bf027a59296d8fe400a2
mac80211_hwsim: Fill timestamp beacon at the time it is transmitted

Generate more acurate tsf values in hwsim by setting the tsf value on
trasmitted beacons immediately before they are moved to the rx path.
Also, adjust the beacon timestamp to be the time at which the first byte
of the timestamp is transmitted.

With these changes the observed tsf offset between two hwsim/mesh peers
is 0 (unless the offset is modified via debugfs)

Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mac80211_hwsim.c