linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Luis R. Rodriguez" <mcgrof@gmail.com>
To: "Björn Smedman" <bjorn.smedman@venatech.se>
Cc: Daniel Haid <d.haid@gogi.tv>, linux-wireless@vger.kernel.org
Subject: Re: Setting MCS rate on injected packets does not work properly (with patches)
Date: Tue, 10 Aug 2010 09:58:32 -0700	[thread overview]
Message-ID: <AANLkTi=DJ8heGhCKC+eLzzMHcuzV8dzRFkED_UnLHwZG@mail.gmail.com> (raw)
In-Reply-To: <AANLkTinXjYAwJqui41MFzPebUMkvQdO3UsfQcD7se158@mail.gmail.com>

2010/8/9 Björn Smedman <bjorn.smedman@venatech.se>:
> On Sun, Aug 8, 2010 at 9:24 PM, Daniel Haid <d.haid@gogi.tv> wrote:
>> Hello,
>
>> When I use hostapd on one station and enable HT I get
>> rates of about 60MBit/s.
>>
>> But when I inject packets manually and I set the MCS index
>> the MCS index gets reported properly at the other station.
>> However no matter what index I choose, I never get rates
>> higher than 10MBit/s  (I wrote a program that reads monitor
>> mode packets with libpcap and sends them to a tun device
>> and everything that comes from the tun device is injected
>> with libpcap - then I measured the rate for UDP packets sent
>> trough this connection).
>
> One reason for this is aggregation: injected packets are not
> aggregated. Depending on your setup that could be the whole
> explanation.

You don't need to use aggregation for all frames, aggregation is just
one technique that you can use for 802.11n, ath9k is an example driver
that chooses to always use aggregation though.

> Also, a single fixed MCS index in the first slot of the tx control
> rates array will not perform as well as e.g. minstrel_ht, especially
> not if your radio environment is noisy.

You might want to look at how the passed rate gets mapped to a
hardware rate on the driver you are using.

  Luis

  reply	other threads:[~2010-08-10 16:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-08 19:24 Setting MCS rate on injected packets does not work properly (with patches) Daniel Haid
2010-08-09 16:09 ` Björn Smedman
2010-08-10 16:58   ` Luis R. Rodriguez [this message]
     [not found] ` <201008092149.14462.d.haid@gogi.tv>
     [not found]   ` <AANLkTik_78KB4QV210TbTxFRveL-e7yPwsxL-DEizRcX@mail.gmail.com>
2010-08-10 14:48     ` Setting MCS rate on injected packets (includes patch) Daniel Haid

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTi=DJ8heGhCKC+eLzzMHcuzV8dzRFkED_UnLHwZG@mail.gmail.com' \
    --to=mcgrof@gmail.com \
    --cc=bjorn.smedman@venatech.se \
    --cc=d.haid@gogi.tv \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).