From: "Luis R. Rodriguez" <lrodriguez@atheros.com>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: Luis Rodriguez <Luis.Rodriguez@Atheros.com>,
Felix Fietkau <nbd@openwrt.org>,
linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] ath9k: fix another source of corrupt frames
Date: Tue, 4 May 2010 12:45:44 -0700 [thread overview]
Message-ID: <20100504194544.GE2624@tux> (raw)
In-Reply-To: <20100504183613.GC21043@tuxdriver.com>
On Tue, May 04, 2010 at 11:36:13AM -0700, John W. Linville wrote:
> On Tue, May 04, 2010 at 11:09:32AM -0700, Luis R. Rodriguez wrote:
> > On Tue, May 4, 2010 at 12:58 AM, Felix Fietkau <nbd@openwrt.org> wrote:
> > > Atheros hardware supports receiving frames that span multiple
> > > descriptors and buffers. In this case, the rx status of every
> > > descriptor except for the last one is invalid and may contain random
> > > data. Because the driver does not support this, it needs to drop such
> > > frames.
> > >
> > > Signed-off-by: Felix Fietkau <nbd@openwrt.org>
> > > ---
> > > --- a/drivers/net/wireless/ath/ath9k/common.c
> > > +++ b/drivers/net/wireless/ath/ath9k/common.c
> > > @@ -57,13 +57,19 @@ static bool ath9k_rx_accept(struct ath_c
> > > * rs_more indicates chained descriptors which can be used
> > > * to link buffers together for a sort of scatter-gather
> > > * operation.
> > > - *
> > > + * reject the frame, we don't support scatter-gather yet and
> > > + * the frame is probably corrupt anyway
> > > + */
> > > + if (rx_stats->rs_more)
> > > + return false;
> >
> > Actually this is required by ath9k_htc, it does process these, but
> > ath9k doesn't so this could be done within ath9k itself.
>
> I'm sorry, that is a bit unclear to me. Are you NAKing the patch?
Yes, I am NAK'ing it, I should have been clearer about that, sorry.
The reason is that ath9k_htc *depends* on rs_more stuff because the
USB frames it receives *are* split up and to RX them we decouple
them. With this patch you'd break ath9k_htc considerably.
> Or saying that the patch is fine but another patch is needed on top?
My suggestion is that this change can be made but only on the
ath9k RX path, instead of the comon path so a separate patch would
be needed.
Luis
next prev parent reply other threads:[~2010-05-04 19:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-04 7:58 [PATCH] ath9k: fix another source of corrupt frames Felix Fietkau
2010-05-04 18:09 ` Luis R. Rodriguez
2010-05-04 18:36 ` John W. Linville
2010-05-04 19:45 ` Luis R. Rodriguez [this message]
2010-05-04 19:36 ` Felix Fietkau
2010-05-04 19:55 ` Luis R. Rodriguez
2010-05-05 5:25 ` Luis R. Rodriguez
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=20100504194544.GE2624@tux \
--to=lrodriguez@atheros.com \
--cc=Luis.Rodriguez@Atheros.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=nbd@openwrt.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).