On Thu, 2012-03-01 at 15:40 -0800, Javier Cardona wrote: > Generate a tsf from jiffies. Prepare the path for having different tsf > offsets on the each phy. This will be useful for testing mesh > synchronization algorithms. The fact that you used jiffies should have made me wonder earlier :) > +static __le64 __mac80211_hwsim_get_tsf(struct mac80211_hwsim_data *data) > +{ > + return cpu_to_le64(jiffies_to_msecs(jiffies)*1000/1024 + > + data->tsf_offset); > +} This is not right? TSF is in microseconds, here you're like converting msec to TU (I think). Also, jiffies doesn't even increase fast enough for the timestamp, I'm pretty sure you need hrtimers. johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html