From: Bob Copeland <me@bobcopeland.com>
To: Andrew Blaich <ablaich@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: Ath5k and Retransmissions (Retries)
Date: Fri, 26 Feb 2010 19:48:10 -0500 [thread overview]
Message-ID: <20100227004810.GB13107@hash.localnet> (raw)
In-Reply-To: <6b5e31691002250959o576e203ena04858c8c9a76486@mail.gmail.com>
On Thu, Feb 25, 2010 at 12:59:50PM -0500, Andrew Blaich wrote:
(top posting undone)
> The main file I focused on was net/mac80211/rc80211minstrel.c, but I
> have tried forcing retry values through the other portions of the
> code.
>
> I have tried setting the counts in the MRR array (ar[i].count) in the
> minstrel_get_rate function, but that hasn't appeared to work,
> additionally I tried limiting the max retry count. I have had luck in
> altering the rate used by changing the index value fed into ar[i].idx.
> Maybe my issue is with the MRR array.
Well, this should work. The ath5k side of this is ath5k_txbuf_setup:
ret = ah->ah_setup_tx_desc(ah, ds, pktlen,
ieee80211_get_hdrlen_from_skb(skb),
get_hw_packet_type(skb),
(sc->power_level * 2),
hw_rate,
info->control.rates[0].count, keyidx, ah->ah_tx_ant, flags,
cts_rate, duration);
info->control.rates[0] is the TX rate (which may be different
for e.g. rts/cts frames than the one from the rate controller),
and the mrr rates are set up just after that:
ah->ah_setup_mrr_tx_desc(ah, ds,
mrr_rate[0], mrr_tries[0],
mrr_rate[1], mrr_tries[1],
mrr_rate[2], mrr_tries[2]);
The .count field in the mac80211 rate struct is the number of
tries, not retries, to be precise.
> next entry in the MRR array ar[1].idx=-1 so as to not try any rate,
> and then the count to 0 does this disable the rest of the MRR array,
> or is it possible the hardware is populating the array with other
> values?
That should be the case due to memset and get_alt_retry_rate semantics,
but if you suspect a problem you can printk in the above spots.
If the hardware doesn't respect those, there is some bug somewhere.
(Also see hw->max_rate_tries in ath5k_pci_probe()).
--
Bob Copeland %% www.bobcopeland.com
next prev parent reply other threads:[~2010-02-27 0:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-25 14:40 Ath5k and Retransmissions (Retries) Andrew Blaich
2010-02-25 17:51 ` Bob Copeland
2010-02-25 17:59 ` Andrew Blaich
2010-02-27 0:48 ` Bob Copeland [this message]
2010-02-27 17:39 ` Andrew Blaich
2010-02-27 21:48 ` Bob Copeland
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=20100227004810.GB13107@hash.localnet \
--to=me@bobcopeland.com \
--cc=ablaich@gmail.com \
--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).