2011/5/11 Johannes Berg <johannes@xxxxxxxxxxxxxxxx>: > On Fri, 2011-04-22 at 18:34 +0200, Matteo Croce wrote: > >> --- a/net/mac80211/status.c  2011-04-22 11:34:08.833135198 +0200 >> +++ b/net/mac80211/status.c  2011-04-22 11:34:54.037135187 +0200 >> @@ -405,6 +405,19 @@ >>      !(info->status.rates[0].flags & IEEE80211_TX_RC_MCS)) >>        rthdr->rate = sband->bitrates[ >>                info->status.rates[0].idx].bitrate / 5; >> +   /* HT rates */ >> +   if (info->status.rates[0].flags & IEEE80211_TX_RC_MCS) { >> +       rthdr->hdr.it_present |= cpu_to_le32(1 << IEEE80211_RADIOTAP_MCS); >> +       rthdr->rate = 0; >> +       rthdr->ht_known =    IEEE80211_RADIOTAP_MCS_HAVE_BW | >> +                   IEEE80211_RADIOTAP_MCS_HAVE_MCS | >> +                   IEEE80211_RADIOTAP_MCS_HAVE_GI; >> +       rthdr->ht_mcs = info->status.rates[0].idx; >> +       if (info->status.rates[0].flags & IEEE80211_TX_RC_40_MHZ_WIDTH) >> +           rthdr->ht_flag |= IEEE80211_RADIOTAP_MCS_BW_40; >> +       if (info->status.rates[0].flags & IEEE80211_TX_RC_SHORT_GI) >> +           rthdr->ht_flag |= IEEE80211_RADIOTAP_MCS_SGI; >> +   } > > I think you should also split the patch -- this part isn't really only > injection. > > johannes > > After injecting a frame I have a TX feedback, why shouldn't it have correct MCS informations? -- Matteo Croce OpenWrt Developer Â_______           ________    Â__ |    |.-----.-----.-----.| Â| Â| Â|.----.| Â|_ |  -  || Â_ Â| Â-__|   || Â| Â| Â||  _||  _| |_______||  __|_____|__|__||________||__| Â|____|     Â|__| W I R E L E S S  F R E E D O M ATTITUDE ADJUSTMENT (bleeding edge) -------------- Â* 1/4 oz Vodka   ÂPour all ingredents into mixing Â* 1/4 oz Gin    Âtin with ice, strain into glass. Â* 1/4 oz Amaretto Â* 1/4 oz Triple sec Â* 1/4 oz Peach schnapps Â* 1/4 oz Sour mix Â* 1 splash Cranberry juice ----------------------------------------------------- -- 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