Linux wireless drivers development
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Sneha Aggarwal <snehaatpec@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: Frame aggregation size configuration in 802.11n
Date: Mon, 12 Apr 2010 14:35:16 +0200	[thread overview]
Message-ID: <1271075716.23799.2.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <loom.20100412T140919-620@post.gmane.org>

On Mon, 2010-04-12 at 12:11 +0000, Sneha Aggarwal wrote:

> I am studying the effect of frame aggregation size on throughput for my project.
> Is there any direct command to change the aggregation size like iwconfig/iwpriv
> or something?

No.

> I have gone through the kernel code of aggregation from the file agg-tx.c from
> the linux-2.6.32.7 
> and the exact path is linux-2.6.32.7/net/mac80211/agg-tx.c
> The function which I have recognized to change the aggregation size is:
> ieee80211_send_addba_request(struct ieee80211_sub_if_data *sdata, const u8 *da,
> u16 tid, u8 dialog_token, u16 start_seq_num, u16 agg_size, u16 timeout)
> 
> I am wondering if this is the right place to change the parameter or not. 

No, it is not. This will just tell the peer what the max is that we
might send, I think.

> Or is
> there any other way to change this parameter without changing the kernel file
> directly? 

No.

> and where all I have to change this parameter to get the desired output?

That depends on your driver. In iwlwifi, you have to tell the microcode
what to do -- I'm not sure off hand how to (I know there is a parameter
that controls the number of frames in an aggregate, I'm not sure about
the max size but I would think it exists)

In ath9k you should be able to change it in the driver but I have no
idea how to.

> And I am planning to write of a piece of code to make this parameter available
> to the user to configure.

That will be interesting due to what I said above ...

johannes


  reply	other threads:[~2010-04-12 12:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-12 12:11 Frame aggregation size configuration in 802.11n Sneha Aggarwal
2010-04-12 12:35 ` Johannes Berg [this message]
2010-04-12 14:36   ` Sujith

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=1271075716.23799.2.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=snehaatpec@gmail.com \
    /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