On Monday, February 18, 2013 05:08:28 PM Marco Porsch wrote: > --- > +/** > + * ieee80211_mps_sta_tbtt_update - update peer beacon wakeup schedule > + * > + * @sta: mesh STA > + * @mgmt: beacon frame > + * @tim: TIM IE of beacon frame > + * @tsf_local: current HW TSF > + */ > +void ieee80211_mps_sta_tbtt_update(struct sta_info *sta, > + struct ieee80211_mgmt *mgmt, > + const struct ieee80211_tim_ie *tim, > + u64 tsf_local) > +{ > + struct ieee80211_sub_if_data *sdata = sta->sdata; > + > + if (!sdata->local->mps_enabled || > + sta->plink_state != NL80211_PLINK_ESTAB) > + return; > + > + sta->beacon_interval = le16_to_cpu(mgmt->u.beacon.beacon_int) * 1024; If you want, you could use ieee80211_tu_to_usec instead of "* 1024": sta->beacon_interval = ieee80211_tu_to_usec(le16_to_cpu(mgmt->u.beacon.beacon_int)); Regards, Chr -- 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