NetBSD Problem Report #29324
From gson@araneus.fi Thu Feb 10 13:06:50 2005
Return-Path: <gson@araneus.fi>
Received: from gusto.araneus.fi (gusto.araneus.fi [204.152.189.154])
by narn.netbsd.org (Postfix) with ESMTP id 27E1663B400
for <gnats-bugs@gnats.NetBSD.org>; Thu, 10 Feb 2005 13:06:50 +0000 (UTC)
Message-Id: <200502101306.j1AD6lmP005483@guava.araneus.fi>
Date: Thu, 10 Feb 2005 15:06:47 +0200 (EET)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@netbsd.org
Subject: WEP doesn't work with atu(4)
X-Send-Pr-Version: 3.95
>Number: 29324
>Category: kern
>Synopsis: WEP doesn't work with atu(4)
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: joff
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Feb 10 13:07:00 +0000 2005
>Closed-Date: Mon Feb 28 14:47:03 +0000 2005
>Last-Modified: Mon Feb 28 14:47:03 +0000 2005
>Originator: Andreas Gustafsson
>Release: NetBSD-current as of Feb 7, 2005
>Organization:
>Environment:
System: NetBSD guitar.araneus.fi 2.99.15 NetBSD 2.99.15 (GUITAR_KGDB_NOOPT) #0: Thu Feb 10 13:31:47 EET 2005 gson@guava.araneus.fi:/usr/src/sys/arch/i386/compile/GUITAR_KGDB_NOOPT i386
Architecture: i386
Machine: i386
>Description:
The atu(4) driver is unable to communicate with an 802.11b base
station configured to use WEP encryption.
>How-To-Repeat:
Connect a USB 802.11b adapter supported by the atu(4) driver.
I used a TRENDnet TEW-229UB. Confirm that it works without WEP.
Configure the base station with a WEP key, say,
0xaaaaaaaaaaaaaaaaaaaaaaaaaa, and configure the
same key on the atu device:
ifconfig atu0 nwkey 0xaaaaaaaaaaaaaaaaaaaaaaaaaa
Notice that the connection no longer works.
>Fix:
Unknown. It looks like the code to support WEP in if_atu.c is
incomplete; for example, there is a function atu_set_wepkey() but
it is never called.
>Release-Note:
>Audit-Trail:
From: Jesse Off <joff@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/29324 CVS commit: src/sys/dev/usb
Date: Sun, 27 Feb 2005 23:49:05 +0000 (UTC)
Module Name: src
Committed By: joff
Date: Sun Feb 27 23:49:05 UTC 2005
Modified Files:
src/sys/dev/usb: if_atu.c
Log Message:
Misc changes from code review from someone who doesn't understand USB or
802.11 but wants this driver to work nonetheless...
o Support WEP encryption, hopefully fix PR kern/29324 from Andreas Gustafsson
o Correct ENETRESET reconfig while iface is already running
o Correct bpfilter usage
o Avoid leaking mbufs on failed TX
o Reset ieee80211 state to INIT and stop atu_task() on atu_stop()
o Don't stop interface on USB tx errs, just drop packet
o use IFQ_IS_EMPTY rather than check if_snd for NULL head
To generate a diff of this commit:
cvs rdiff -r1.5 -r1.6 src/sys/dev/usb/if_atu.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Responsible-Changed-From-To: kern-bug-people->joff
Responsible-Changed-By: joff@netbsd.org
Responsible-Changed-When: Sun, 27 Feb 2005 23:53:20 +0000
Responsible-Changed-Why:
mine
State-Changed-From-To: open->feedback
State-Changed-By: joff@netbsd.org
State-Changed-When: Sun, 27 Feb 2005 23:53:20 +0000
State-Changed-Why:
Please try rev 1.6 of sys/dev/usb/if_atu.c
State-Changed-From-To: feedback->closed
State-Changed-By: joff@netbsd.org
State-Changed-When: Mon, 28 Feb 2005 14:47:03 +0000
State-Changed-Why:
Originator reports fixed
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.