From: Benoit PAPILLAULT <benoit.papillault@free.fr>
To: Jouni Malinen <j@w1.fi>
Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org,
ath5k-devel@venema.h4ckr.net
Subject: Re: [PATCH] ath5k: Updated padding stuff for the RX and TX side. TX side has been 100%
Date: Mon, 15 Dec 2008 22:06:33 +0100 [thread overview]
Message-ID: <4946C6D9.1060101@free.fr> (raw)
In-Reply-To: <20081215170613.GA22627@jm.kir.nu>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jouni Malinen a =E9crit :
> On Mon, Dec 15, 2008 at 03:34:58PM +0100, Benoit Papillault wrote:
>> This patch is close to the original code except that
>> ieee80211_get_hdrlen_from_skb() has been replaced by
>> ath5k_hw_get_hdrlen_from_skb() which is specific to Atheros hardware=
=2E The same
>> probably applies to ath9k as well.
>=20
> Most of this is changes on how unspecified frames are handled (e.g.,
> frames that are not used in IEEE 802.11). What is the use case that
> justifies this type of extra complexity to be added into the driver?
> Please note that there are no guarantees that all hardware revisions
> behave the same as far as undocumented functionality is concerned. Th=
e
> only clear case when padding is required is data frames with non-empt=
y
> frame body.
>=20
Agreed. In fact, I wanted to know how the hardware behaves in the
general case to better understand it in the particular case of 802.11
frames. To me, the bug we have seen when receiving a ACK frame in
monitor mode was not because "ACK is a small control frame", it was
because the header length we computed was smaller than what the hardwar=
e
considered.
Another point is that we have to deal with anything on the RX side, be
it later classified as invalid or not.
As far as the hardware is concerned, I'm not working for Atheros, but I
bet that hardware guys did the same thing for all their chipsets. I
could test it on AR5416 and AR9160 if needed.
To reply to Bob as well, we need to compute the number of padded bytes =
+
the position at which the padding occurs, so proper "header" length is
required.
Just my 2 cents.
Benoit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJRsbZOR6EySwP7oIRArWVAJ0fjqY01Xi3qTH7DIJBE9D+c099pQCgp/u5
pHHZiKOzsU83CEecamnuZpY=3D
=3Dw10J
-----END PGP SIGNATURE-----
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2008-12-15 22:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-15 14:34 [PATCH] ath5k: Updated padding stuff for the RX and TX side. TX side has been 100% Benoit Papillault
2008-12-15 17:06 ` Jouni Malinen
2008-12-15 21:06 ` Benoit PAPILLAULT [this message]
2008-12-16 15:22 ` Bob Copeland
2008-12-16 15:42 ` Bob Copeland
2008-12-17 15:55 ` John W. Linville
2008-12-17 17:40 ` Bob Copeland
2008-12-17 18:35 ` John W. Linville
2008-12-19 15:53 ` Bob Copeland
2008-12-15 17:07 ` 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=4946C6D9.1060101@free.fr \
--to=benoit.papillault@free.fr \
--cc=ath5k-devel@venema.h4ckr.net \
--cc=j@w1.fi \
--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;
as well as URLs for NNTP newsgroup(s).