From: Johannes Berg <johannes@sipsolutions.net>
To: Herton Ronaldo Krzesinski <herton@mandriva.com.br>
Cc: Larry Finger <Larry.Finger@lwfinger.net>,
John W Linville <linville@tuxdriver.com>,
Hin-Tak Leung <hintak.leung@gmail.com>,
linux-wireless@vger.kernel.org
Subject: Re: [PATCH] rtl8187: Fix transmission count sent to mac80211
Date: Mon, 17 Nov 2008 20:47:07 +0100 [thread overview]
Message-ID: <1226951228.3902.55.camel@johannes.berg> (raw)
In-Reply-To: <200811171742.48292.herton@mandriva.com.br>
[-- Attachment #1: Type: text/plain, Size: 1156 bytes --]
On Mon, 2008-11-17 at 17:42 -0200, Herton Ronaldo Krzesinski wrote:
> On Monday 17 November 2008 13:08:21 Larry Finger wrote:
> > In the commit entitled "mac80211/drivers: rewrite the rate control API"
> > (commit 9ea2c74de0ec971e8ec9fc5aaea9cd5b4fec95b6), the meaning of the
> > packet transmit count was changed from the number of retries to the total
> > number. In driver rtl8187, this change was missed.
>
> With this change as before, when using pid, rate never go above 1M in testing
> here (minstrel doesn't have the same issue). May be because this in
> rate_control_pid_tx_status (inside rc80211_pid_algo.c)?
>
> if (!(info->flags & IEEE80211_TX_STAT_ACK)) {
> spinfo->tx_num_failed += 2;
> spinfo->tx_num_xmit++;
> } else if (info->status.rates[0].count) {
> spinfo->tx_num_failed++;
> spinfo->tx_num_xmit++;
> }
>
> as pkt_rc + 1, looks like we always will increment tx_num_failed, and may be
> it's causing this. Well this is only judging by a quick look, I may be wrong.
Larry recently fixed the above code too.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2008-11-17 19:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-17 15:08 [PATCH] rtl8187: Fix transmission count sent to mac80211 Larry Finger
2008-11-17 19:42 ` Herton Ronaldo Krzesinski
2008-11-17 19:47 ` Johannes Berg [this message]
2008-11-17 20:29 ` Herton Ronaldo Krzesinski
2008-11-17 21:19 ` Hin-Tak Leung
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=1226951228.3902.55.camel@johannes.berg \
--to=johannes@sipsolutions.net \
--cc=Larry.Finger@lwfinger.net \
--cc=herton@mandriva.com.br \
--cc=hintak.leung@gmail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.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