Search Linux Wireless

Re: [PATCH v2] 802.11n frame injection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux