linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: linux-wireless <linux-wireless@vger.kernel.org>
Cc: Bob Copeland <me@bobcopeland.com>,
	"Luis R. Rodriguez" <mcgrof@gmail.com>,
	Daniel Drake <dsd@gentoo.org>, Tomas Winkler <tomasw@gmail.com>,
	Javier Cardona <javier@cozybit.com>, Chr <chunkeey@web.de>
Subject: drivers returning wrong results from their _tx op
Date: Mon, 05 Jan 2009 23:07:44 +0100	[thread overview]
Message-ID: <1231193264.3697.41.camel@johannes> (raw)

[-- Attachment #1: Type: text/plain, Size: 848 bytes --]

spatch:

@ r1 @
identifier _tx, _ops;
@@
 struct ieee80211_ops _ops = {
...
 .tx = _tx,
...
 };

@ r2 depends on r1 @
identifier r1._tx;
@@
static int _tx(...)
{
...
-return ...;
}


shows a lot...

First off: all those should return NETDEV_TX_OK/BUSY.

ath5k: returns 0/-1
ath9k: returns 0/-1
iwl-agn: returns 0 (== NETDEV_TX_OK, but still should be changed)
iwl3945: same
libertas_tf: same
rtl8180: same
p54: same (some paths)
rtl8187: that's why I started looking
zd1211: returns -E* codes


These need to be fixed, the bad ones are zd1211 and rtl8187, the -1 from
ath5k/9k is not much of a worry but should be fixed anyway.

Preferably, drivers should just drop frames when they can't handle them,
but keep in mind fragmentation and keep enough space for up to 9 or 10
(I think) fragments.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

             reply	other threads:[~2009-01-05 22:07 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-05 22:07 Johannes Berg [this message]
2009-01-05 22:24 ` drivers returning wrong results from their _tx op Bob Copeland
2009-01-06 13:00   ` Johannes Berg
2009-01-09  2:23     ` Bob Copeland
2009-01-09  8:13       ` Kalle Valo
2009-01-09 10:06         ` Johannes Berg
2009-01-09 15:44         ` Bob Copeland
2009-01-09 16:17           ` Kalle Valo
2009-01-09 18:27             ` Bob Copeland
2009-01-09 18:47               ` Kalle Valo
2009-01-11  3:12                 ` Bob Copeland
2009-01-11  6:21                   ` Kalle Valo

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=1231193264.3697.41.camel@johannes \
    --to=johannes@sipsolutions.net \
    --cc=chunkeey@web.de \
    --cc=dsd@gentoo.org \
    --cc=javier@cozybit.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mcgrof@gmail.com \
    --cc=me@bobcopeland.com \
    --cc=tomasw@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;
as well as URLs for NNTP newsgroup(s).