On 03/14/2014 22:52, Sean Bruno wrote:
> 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
> ===================================================================
> --- if_iwn.c  (revision 263173)
> +++ if_iwn.c  (working copy)
> @@ -564,6 +564,8 @@
>               | IEEE80211_C_PMGT              /* Station-side power mgmt */
>               ;
>  
> +        ic->ic_cryptocaps = IEEE80211_CRYPTO_WEP;
> +
>       /* Read MAC address, channels, etc from EEPROM. */
>       if ((error = iwn_read_eeprom(sc, macaddr)) != 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.

Attached is my (horrible) patch that no one should use. But it is
available for those of us at the conference who just need something that
will work for the rest of the weekend.


Index: contrib/wpa/wpa_supplicant/wpa_supplicant.c
===================================================================
--- contrib/wpa/wpa_supplicant/wpa_supplicant.c	(revision 261605)
+++ contrib/wpa/wpa_supplicant/wpa_supplicant.c	(working copy)
@@ -3654,6 +3654,11 @@
 		size_t len = ssid->wep_key_len[i];
 		if (len == 0)
 			continue;
+		if (len == 5 && !(drv_enc & WPA_DRIVER_CAPA_ENC_WEP40)) {
+			wpa_dbg(wpa_s, MSG_DEBUG, "DEBUG: Your Wireless driver claims not to support WEP, "
+				"Ignoring that and doing it anyway");
+			return 0;
+		}
 		if (len == 5 && (drv_enc & WPA_DRIVER_CAPA_ENC_WEP40))
 			continue;
 		if (len == 13 && (drv_enc & WPA_DRIVER_CAPA_ENC_WEP104))
_______________________________________________
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"

Reply via email to