Subject: kern/31827: ieee802.11: station won't associate with access-point
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <karl@utopiafoundation.org>
List: netbsd-bugs
Date: 10/16/2005 09:54:00
>Number:         31827
>Category:       kern
>Synopsis:       ieee802.11: station won't associate with access-point
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 16 09:54:00 +0000 2005
>Originator:     Karl Janmar
>Release:        2005-10-16 current
>Organization:
>Environment:
>Description:
There is a problem in the net80211 code, it refuse to associate without WEP IF the access-point advertise WEP capabilities. If an access-point advertise it's capable of WEP it doesn't necessarily disallow non-WEP stations from associate.

NOTE:
This was observed with FreeBSD-6 current when associating to a Cisco aironet 1230B AP. As they use the same code for ieee802.11 networking I am pretty sure this apply to netbsd as well.
(I haven't filed a PR to freebsd).


>How-To-Repeat:
Try to associate to an access-point without WEP if the access-point advertise WEP capabilites.
>Fix:
Index: ieee80211_node.c
===================================================================
RCS file: /cvsroot/src/sys/net80211/ieee80211_node.c,v
retrieving revision 1.44
Apply this patch.
(this is filed with the web sendpr form, maybe the patch isn't properly
 formateted)

diff -u -r1.44 ieee80211_node.c
--- ieee80211_node.c	25 Sep 2005 00:03:06 -0000	1.44
+++ ieee80211_node.c	16 Oct 2005 09:01:56 -0000
@@ -503,10 +503,6 @@
 	if (ic->ic_flags & IEEE80211_F_PRIVACY) {
 		if ((ni->ni_capinfo & IEEE80211_CAPINFO_PRIVACY) == 0)
 			fail |= 0x04;
-	} else {
-		/* XXX does this mean privacy is supported or required? */
-		if (ni->ni_capinfo & IEEE80211_CAPINFO_PRIVACY)
-			fail |= 0x04;
 	}
 	rate = ieee80211_fix_rate(ic, ni,
 			IEEE80211_F_DONEGO | IEEE80211_F_DOFRATE);