Subject: Re: wi(4) and WEP on NetBSD 4.0
To: None <tech-net@NetBSD.org>
From: Quentin Garnier <cube@cubidou.net>
List: tech-net
Date: 11/26/2007 17:44:31
--raC6veAxrt5nqIoY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Nov 26, 2007 at 10:24:27AM -0600, David Young wrote:
> On Mon, Nov 26, 2007 at 05:16:57PM +0100, Quentin Garnier wrote:
> > On Mon, Nov 26, 2007 at 10:13:05AM -0600, David Young wrote:
> > > Crypto works differently on wi in hostap mode than otherwise: as you
> > > mention below, Tx WEP is broken, Rx WEP works, and net80211 is not
> > > especially accommodating of that asymmetry.
> >=20
> > Yes but my point here is that it seems to me that the RX bug should
> > happen in modes other than hostap.  I don't see anything specific to
> > hostap in that code path.
>=20
> I am guessing that in other modes, the NIC decapsulates WEP frames after
> decrypting, and it also strips the WEP flag.

But then _F_DROPUNENC would fire just the same way, wouldn't it?

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"See the look on my face from staying too long in one place
[...] every time the morning breaks I know I'm closer to falling"
KT Tunstall, Saving My Face, Drastic Fantastic, 2007.

--raC6veAxrt5nqIoY
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (NetBSD)

iQEVAwUBR0r379goQloHrPnoAQLWxQf+KsX40Y3MFLpCQeNP9V8WyS63g4Gea+wU
SIlV5a/sv/zIWewEm3g6si6P6O+JdF/hcA1YsmVK9B8Rm9Bumr3o3QTlgEHHN4CG
Fy46MdzpcyGzHkgqpUngTiqeUVA9LEht5ZgRAB+XEjoLyy6naOUMaEjGimjsumuD
inh5aIdhNIznks/uXyWRlzGERmMtPDCys+D3BY335idZmNUF4svHO+ALBEeNo15S
4fhIRkZHfg4PBGVVgC+uXfP+5lP7VDY+efGfX0o+Rz1HhqD9K1AarQWIRMUffHso
Yj3LZwkosbelLihpIlhvS/cVS2U5c6b85/i5HepMlJJfirpkQbKdHw==
=wld6
-----END PGP SIGNATURE-----

--raC6veAxrt5nqIoY--