On Fri, 2012-03-02 at 13:04 -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. > > Signed-off-by: Javier Cardona <javier@xxxxxxxxxxx> > --- > v2: Added timestamp to probe responses, as suggested by Johannes > Also implement tx_last_beacon, useful for testing (new patch 1/3) > v3: Drop poorly implemented tx_last_beacon patch > TSF in microsecs, not TUs! (Johannes) > Use high-resolution timer, not jiffies (Johannes) > +static __le64 __mac80211_hwsim_get_tsf(struct mac80211_hwsim_data *data) > +{ > + return cpu_to_le64(jiffies_to_msecs(jiffies)*1000/1024 + > + data->tsf_offset); > +} Did you forget to quilt refresh or so? :-) 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