On Thu, 2011-02-10 at 16:29 +0100, Felix Fietkau wrote: > @@ -1166,14 +1166,23 @@ ieee80211_rx_h_sta_process(struct ieee80211_rx_data *rx) > if (rx->sdata->vif.type == NL80211_IFTYPE_ADHOC) { > u8 *bssid = ieee80211_get_bssid(hdr, rx->skb->len, > NL80211_IFTYPE_ADHOC); > - if (compare_ether_addr(bssid, rx->sdata->u.ibss.bssid) == 0) > + if (compare_ether_addr(bssid, rx->sdata->u.ibss.bssid) == 0) { > sta->last_rx = jiffies; > + if (ieee80211_is_data(hdr->frame_control)) { > + sta->last_rx_rate_idx = status->rate_idx; > + sta->last_rx_rate_flag = status->flag; > + } ... and in fact you do that here. Please document this expectation in nl80211 :-) 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