Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Mar 2014 11:52:02 +0900
From:      Sean Bruno <sbruno@ignoranthack.me>
To:        freebsd-wireless@freebsd.org
Subject:   iwn(4) and WEP
Message-ID:  <1394851922.4791.7.camel@powernoodle.corp.yahoo.com>

next in thread | raw e-mail | index | archive | help

--=-iIN/kLmVWWmZyinJ3JQy
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

It looks like the wpa_supplicant 2.0 import now checks the
cryptocapability mask when trying to validate WEP usage.

iwn(4) does not populate the mask with any values so wpa_supplicant sees
a value of 0.

I added the capabilites and can associate, but dhclient cannot get an IP
from the AP.  I assume then, that once again, I don't know what I'm
doing.

More or less, this is what I tried:

Index: if_iwn.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- if_iwn.c	(revision 263173)
+++ if_iwn.c	(working copy)
@@ -564,6 +564,8 @@
 		| IEEE80211_C_PMGT		/* Station-side power mgmt */
 		;
=20
+        ic->ic_cryptocaps =3D IEEE80211_CRYPTO_WEP;
+
 	/* Read MAC address, channels, etc from EEPROM. */
 	if ((error =3D iwn_read_eeprom(sc, macaddr)) !=3D 0) {
 		device_printf(dev, "could not read EEPROM, error %d\n",


sean

p.s. Allan Jude came up with a hack for wpa_supplicant that seems to
work, so I've bcc'd him here to get a patch out of him.

--=-iIN/kLmVWWmZyinJ3JQy
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAABAgAGBQJTI8BOAAoJEBkJRdwI6BaHzd0H/1YOd9h9upfKvfKlF/fma4KN
I1CkMI/RrPLQu2VfhXVucR+A1uCJdoTv8AGxR4686vswcMh3yOhaZTmg4/cuB0v7
18KJb06ejnRDj0OtmqUgWf2VHqxpK2dB9uyuRANAy18OtaADc3ZZVGI8JbgFirHx
Q6me0B1F8F/tQC/O8weLrBGm0KBIbdfipR4Xu/iJJXnvcDhNsF4FbBWZaiUV3k7m
otWgcky6kikZXa+qYP+SKL8OqM2F9zaScIH+d2m/TFhIXxEdb7gjLE8COlVdPIT/
AYaKOQ/nbbNTsSdElG4yJivoscLqM4gz08xtDZ2Zi7xgxzGrTlZPEjoELWomgR4=
=pOYs
-----END PGP SIGNATURE-----

--=-iIN/kLmVWWmZyinJ3JQy--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1394851922.4791.7.camel>