Date: Mon, 1 Nov 2010 19:05:38 +0000 (UTC) From: Bernhard Schmidt <bschmidt@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/iwi if_iwi.c Message-ID: <201011011905.oA1J5wxu098934@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
bschmidt 2010-11-01 19:05:38 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_8)
sys/dev/iwi if_iwi.c
Log:
SVN rev 214633 on 2010-11-01 19:05:38Z by bschmidt
MFC r214160,214162,214236
r214236 & r214160:
The firmware does pad notifications to an even number of bytes (at least
the association notification), the included information though always
contains an elem block with an odd number of bytes. We handle the last
byte as if it might contain a whole elem block, this of course is not
true as one byte is not enough to hold a block, we therefore discard the
complete frame. The solution here is to subtract one from the actual
notification length, this is also what the Linux driver does. With this
change the frame ends exactly where the last elem block ends.
r214262:
The firmware always sets bit 14 and 15, to get the real associd we need
to clear those bits.
Revision Changes Path
1.72.2.3 +2 -2 src/sys/dev/iwi/if_iwi.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011011905.oA1J5wxu098934>
