]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit10c9f973a2b6f97a00d95bc02a1264772ff572c5
tree493e034209fe4e152942f1613f67e8f57b5f4127
parenta9cd77f865d0624a4ebe550625fdb31bfe3f8326
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