[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: incompatible wi-fi access point?



Hi Everyone,

Thanks so much for all the help with this problem. I have attached a more 
complete version of the previously suggested patch.  This patch also fixes 
the include file that defines the vendor code. Instructions on how to apply 
the patch are in the patch itself, but simply apply the patch and rebuild the 
kernel as described on http://www.openbsd.org/stable.html

Thanks again for everyone's help the fix works perfectly!

Joshua

-- 
Joshua Rubin
Joshua.Rubin@Colorado.EDU
(303) 909-6199

http://www.cybertron.cc

Cassini Mission to Saturn
Ultraviolet Imaging Spectrograph (UVIS)
Assistant Team Lead

My PGP Public Key:
http://pgp.mit.edu:11371/pks/lookup?search=0xBECC02AE&op=index
Apply by doing:
        cd /usr/src
        patch -p0 < kernel.wifi.hostap.patch

Rebuild your kernel.

Index: sys/dev/ic/if_wi_hostap.c
===================================================================
--- sys/dev/ic/if_wi_hostap.c.orig	Mon Mar 15 16:36:14 2004
+++ sys/dev/ic/if_wi_hostap.c	Sat Jan  1 11:04:30 2005
@@ -576,6 +576,10 @@
 		printf("wihap_auth_req: station %s algo=0x%x seq=0x%x\n",
 		    ether_sprintf(rxfrm->wi_addr2), algo, seq);
 
+	/* Ignore vendor private tlv (if any). */
+	(void)take_tlv(&pkt, &len, IEEE80211_ELEMID_VENDOR, challenge,
+	    sizeof(challenge));
+
 	challenge_len = 0;
 	if (len > 0 && (challenge_len = take_tlv(&pkt, &len,
 	    IEEE80211_ELEMID_CHALLENGE, challenge, sizeof(challenge))) < 0) {

Index: sys/net/if_ieee80211.h
===================================================================
--- sys/net/if_ieee80211.h.orig	Sat Jan  1 10:59:37 2005
+++ sys/net/if_ieee80211.h	Sat Jan  1 11:01:51 2005
@@ -239,6 +239,7 @@
 #define	IEEE80211_ELEMID_TIM			5
 #define	IEEE80211_ELEMID_IBSSPARMS		6
 #define	IEEE80211_ELEMID_CHALLENGE		16
+#define	IEEE80211_ELEMID_VENDOR			221
 
 /*
  * AUTH management packets

PGP signature