On Wed, 2013-01-02 at 14:55 -0800, Thomas Pedersen wrote: > - struct ieee80211_hw *hw = (struct ieee80211_hw *) arg; > - struct mac80211_hwsim_data *data = hw->priv; > + struct tasklet_hrtimer *ttimer = container_of(timer, > + struct tasklet_hrtimer, > + timer); > + struct mac80211_hwsim_data *data = container_of(ttimer, > + struct mac80211_hwsim_data, > + beacon_timer); I simplified this to just use "beacon_timer.timer" in the second container_of() 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