mac80211_hwsim: fix tsf adjustment
authorThomas Pedersen <thomas@cozybit.com>
Wed, 2 Jan 2013 22:55:16 +0000 (14:55 -0800)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 4 Jan 2013 12:52:50 +0000 (13:52 +0100)
commit45034bfb8c9ecc62db40b438bea7fe728ac8facf
tree493e034209fe4e152942f1613f67e8f57b5f4127
parent75ea719cb4773b05cc48e741feb4e267522b9656
mac80211_hwsim: fix tsf adjustment

Make hwsim TSF offset adjustments cumulative and relative
to the fake PHY TSF. Now adding 1000us, then adding -1000us
doesn't result in a tsf_offset of -1000. Also the beacon
timestamp can now correctly be expressed as (tsf +
data->tsf_offset), which will be done in a later patch.

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c