From: Herton Ronaldo Krzesinski <herton@mandriva.com.br>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [RFC PATCH] rtl8187: do not report ACKs if USB Tx status is non-zero
Date: Wed, 8 Oct 2008 19:48:46 -0300 [thread overview]
Message-ID: <200810081948.46977.herton@mandriva.com.br> (raw)
In-Reply-To: <20081008184205.GB32472@tuxdriver.com>
On Wednesday 08 October 2008 15:42:05 John W. Linville wrote:
> On Tue, Oct 07, 2008 at 03:18:18PM -0400, John W. Linville wrote:
> > The vendor-supplied driver treats a USB Tx failure as an un-ACKed frame.
> > I don't see why we shouldn't do the same thing -- hopefully this makes
> > rate-scaling algorithms behave sanely with the rtl8187 driver.
> >
> > Thanks to Felix Fietkau <nbd@openwrt.org> for suggesting this as an
> > option.
> >
> > Signed-off-by: John W. Linville <linville@tuxdriver.com>
> > ---
> > This is currently untested -- anyone with rtl8187 bored enough to try
> > it? :-)
>
> AFAICT, this doesn't actually trigger -- at least, the device can
> go into its typical failure mode (no frames ACKed until you force a
> lower rate) without ever hitting the "assume ACK not received" clause.
I tested here and it didn't trigger indeed, here at least urb->status == 0
always no matter what I tried, which seems normal, only would trigger at some
not typical usb failure? But there is one thing that I like about the patch,
seems correct that we shouldn't set IEEE80211_TX_STAT_ACK if
IEEE80211_TX_CTL_NO_ACK, that is, looks like a bug always setting ack in the
flags when no_ack is present, not sure if it has some effect in practice
though (have to look more at the code that cares about info->flags). I would
say that the patch 'as is' is correct and will not hurt.
>
> I'll keep looking at it -- there are a couple of 'secrets' still
> buried in the vendor driver (if I can stomach to keep looking at it)...
yeah, not very straightforward to grasp the vendor driver unfortunately...
good would be to have some times docs/explanation about some of the values
used, when you're luck there is some comments and references at some places.
>
> John
--
[]'s
Herton
prev parent reply other threads:[~2008-10-08 22:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-07 19:18 [RFC PATCH] rtl8187: do not report ACKs if USB Tx status is non-zero John W. Linville
2008-10-08 18:42 ` John W. Linville
2008-10-08 19:38 ` Stefanik Gábor
2008-10-08 20:02 ` John W. Linville
2008-10-08 22:48 ` Herton Ronaldo Krzesinski [this message]
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=200810081948.46977.herton@mandriva.com.br \
--to=herton@mandriva.com.br \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.