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)
commitf483ad25c397bc2b33542fe245ea99c22c8a750c
tree135e297b21667ec5d240380fb78e17e2037db940
parent88c868c43ba38ac3bab07bab4c45b4bc44c94357
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