NetBSD Problem Report #23694

Received: (qmail 24804 invoked by uid 605); 8 Dec 2003 20:22:06 -0000
Message-Id: <20031208202205.24795.qmail@mail.netbsd.org>
Date: 8 Dec 2003 20:22:05 -0000
From: dyoung@netbsd.org
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: dyoung@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: monitor mode is broken with wi(4)
X-Send-Pr-Version: 3.95

>Number:         23694
>Category:       kern
>Synopsis:       monitor mode is broken with wi(4)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    dyoung
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 08 20:23:00 +0000 2003
>Closed-Date:    
>Last-Modified:  Wed Jan 25 17:05:01 +0000 2006
>Originator:     David Young
>Release:        NetBSD 1.6ZG
>Organization:
OJC Technologies
>Environment:
System: NetBSD malcolm.ojctech.com 1.6ZE NetBSD 1.6ZE (GENERIC.ath) #2: Sun Nov  9 12:32:52 CST 2003  dyoung@malcolm.ojctech.com:/u1/dyoung/nbsd/O/sys/arch/i386/compile/GENERIC.ath i386
Architecture: i386
Machine: i386
     $NetBSD: wi.c,v 1.143 2003/11/02 01:55:40 dyoung Exp $
     $NetBSD: ieee80211.c,v 1.7 2003/10/16 22:25:00 matt Exp $
     $NetBSD: ieee80211_compat.c,v 1.3 2003/09/23 15:57:25 dyoung Exp $
     $NetBSD: ieee80211_crypto.c,v 1.4 2003/09/23 16:03:46 dyoung Exp $
     $NetBSD: ieee80211_input.c,v 1.14 2003/10/27 17:11:19 mycroft Exp $
     $NetBSD: ieee80211_ioctl.c,v 1.5 2003/10/13 20:05:09 dyoung Exp $
     $NetBSD: ieee80211_node.c,v 1.8 2003/11/02 01:29:05 dyoung Exp $
     $NetBSD: ieee80211_output.c,v 1.9 2003/11/02 00:17:27 dyoung Exp $
     $NetBSD: ieee80211_proto.c,v 1.5 2003/10/13 04:23:56 dyoung Exp $
>Description:
When you put a Lucent wi(4) into monitor mode, no packets (or else very few)
are available to the Berkeley Packet Filter tap. The problem seems to be that
packets received in monitor mode meet at zero or more "drop" criteria for wi,
and also at least one drop criterion for the 802.11 layer.
>How-To-Repeat:
ifconfig wi0 mediaopt monitor
ifconfig wi0 chan <a channel where there is 802.11b activity>
tcpdump -ne -y ieee802_11 -i wi0
>Fix:
The problem needs more analysis, but make the drop criteria less stringent
for monitor mode.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: kern-bug-people->dyoung 
Responsible-Changed-By: dyoung 
Responsible-Changed-When: Mon Dec 8 20:25:22 UTC 2003 
Responsible-Changed-Why:  
i don't think dyoung is pulling his own weight. what, you think 
this is a volunteer project or something? =) 
From: wrzymski <wrzymski@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: RE: kern/23694
Date: Wed, 25 Jan 2006 18:04:33 +0100

 >>Number:         23694
 >>Category:       kern
 >>Synopsis:       monitor mode is broken with wi(4)
 >>Confidential:   no
 >>Severity:       serious
 >>Priority:       medium
 >>Responsible:    dyoung
 >>State:          open
 >>Class:          sw-bug
 >>Description:
 >When you put a Lucent wi(4) into monitor mode, no packets (or else very fe=
 w)
 >are available to the Berkeley Packet Filter tap. The problem seems to be t=
 hat
 >packets received in monitor mode meet at zero or more "drop" criteria for =
 wi,
 >and also at least one drop criterion for the 802.11 layer.

 This probably isn't wi driver problem. For me sound similar to know
 Linux orinoco driver issue. Monitor doesn't work stable with
 firmware>8.x - previous linux drivers  had some workarounds for it.
 With 0.15 driver you can not turn card into monitor mode anymore. I
 have hermes chipset card and after downgrading from 8.72 to 6.06
 firmware monitor mode works with my Jornada 690 (netbsd hpcsh-port).

 From linux driver changelog:

 0.15rc2 - 28 Jul 2004
 * Monitor mode disabled on Agere 8.xx firmware - it's broken.

 Part of linux driver:

         /* Determine capabilities from the firmware version */
         switch (priv->firmware_type) {
         case FIRMWARE_TYPE_AGERE:
                 /* Lucent Wavelan IEEE, Lucent Orinoco, Cabletron RoamAbout=
 ,
                    ELSA, Melco, HP, IBM, Dell 1150, Compaq 110/210 */
                 snprintf(priv->fw_name, sizeof(priv->fw_name) - 1,
                          "Lucent/Agere %d.%02d", sta_id.major, sta_id.minor=
 );

                 firmver =3D ((unsigned long)sta_id.major << 16) | sta_id.mi=
 nor;

                 priv->has_ibss =3D (firmver >=3D 0x60006);
                 priv->has_wep =3D (firmver >=3D 0x40020);
                 priv->has_big_wep =3D 1; /* FIXME: this is wrong - how do w=
 e tell
                                           Gold cards from the others? */
                 priv->has_mwo =3D (firmver >=3D 0x60000);
                 priv->has_pm =3D (firmver >=3D 0x40020); /* Don't work in 7=
 .52 ? */
                 priv->ibss_port =3D 1;
                 priv->has_hostscan =3D (firmver >=3D 0x8000a);
                 priv->broken_monitor =3D (firmver >=3D 0x80000);

                 /* Tested with Agere firmware :
                  *      1.16 ; 4.08 ; 4.52 ; 6.04 ; 6.16 ; 7.28 =3D> Jean I=
 I
                  * Tested CableTron firmware : 4.32 =3D> Anton */
                 break;

 #wrz#

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.