From owner-freebsd-current@FreeBSD.ORG Wed Mar 10 13:19:17 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5AFA16A4CE; Wed, 10 Mar 2004 13:19:17 -0800 (PST) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5B1C43D31; Wed, 10 Mar 2004 13:19:10 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (sccrmhc13) with ESMTP id <2004031021152101600hkdsde>; Wed, 10 Mar 2004 21:15:22 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id NAA79886; Wed, 10 Mar 2004 13:16:24 -0800 (PST) Date: Wed, 10 Mar 2004 13:16:23 -0800 (PST) From: Julian Elischer To: Bob Bishop In-Reply-To: <6.0.3.0.2.20040310112318.03638078@gid.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Bill Paul cc: current@FreeBSD.ORG Subject: Re: Small patch for if_ndis_pccard.c X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2004 21:19:18 -0000 On Wed, 10 Mar 2004, Bob Bishop wrote: > Hi, > > Had a go with this 3Com 3CRSHPW196. Had to apply the following patch to > work around a difference of opinion between the .inf file and the card CIS > about the use of underscores: > > --- if_ndis_pccard.c.orig Wed Mar 10 10:27:37 2004 > +++ if_ndis_pccard.c Wed Mar 10 11:10:54 2004 > @@ -134,7 +134,9 @@ > int i; > > for (i = 0; i < len; i++) { > - if (toupper(s1[i]) != toupper(s2[i])) > + if (toupper(s1[i]) != toupper(s2[i]) > + && !(s1[i] == ' ' && s2[i] == '_') > + && !(s1[i] == '_' && s2[i] == ' ')) > return(0); > } > > I suppose you might prefer to fix this sort of thing in ndiscvt. > > Anyway, with the patch the card attaches etc but we get a panic (as kind of > expected) when trying to bring the interface up with ifconfig. > > FWIW, log: > > ndis0: <3Com 3CRSHPW_96 Wireless LAN PC Card> at port 0x100-0x11f irq 11 > function 0 config 1 on pccard0 > can't re-use a leaf (Rate)! > can't re-use a leaf (RTS_Threshold)! > can't re-use a leaf (Frag_Threshold)! > can't re-use a leaf (PreambleType)! > can't re-use a leaf (Channel)! > can't re-use a leaf (Operating_Mode)! > can't re-use a leaf (ESSID)! > can't re-use a leaf (WEP_KEY_INDEX)! > can't re-use a leaf (EncryptionLevel)! > can't re-use a leaf (WEP_KEY_1)! > can't re-use a leaf (WEP_KEY_2)! > can't re-use a leaf (WEP_KEY_3)! > can't re-use a leaf (WEP_KEY_4)! > can't re-use a leaf (WEP_Mode)! > can't re-use a leaf (AuthenticationType)! > can't re-use a leaf (PowerMgmtMode)! > can't re-use a leaf (BasicRates)! > can't re-use a leaf (BeaconPeriod)! > ndis0: NDIS API version: 5.1 > ndis0: 802.11 address: 00:04:75:9a:46:20 > ndis0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps > > (Not so easy to catch the panic, this ThinkPad doesn't have a serial port.) does it have firewire? > > And systcl -a |grep ndis: > > hw.ndis_filepath: /compat/ndis > hw.ndis0.Rate: 4 > hw.ndis0.RTS_Threshold: 2347 > hw.ndis0.Frag_Threshold: 2346 > hw.ndis0.PreambleType: 2 > hw.ndis0.Channel: 3 > hw.ndis0.Operating_Mode: 1 > hw.ndis0.ESSID: > hw.ndis0.WEP_KEY_INDEX: 0 > hw.ndis0.EncryptionLevel: 0 > hw.ndis0.WEP_KEY_1: 00000000000000000000000000 > hw.ndis0.WEP_KEY_2: 00000000000000000000000000 > hw.ndis0.WEP_KEY_3: 00000000000000000000000000 > hw.ndis0.WEP_KEY_4: 00000000000000000000000000 > hw.ndis0.WEP_Mode: 0 > hw.ndis0.AuthenticationType: 2 > hw.ndis0.PowerMgmtMode: 0 > hw.ndis0.BasicRates: 0 > hw.ndis0.BeaconPeriod: 100 > hw.ndis0.Environment: 1 > hw.ndis0.NdisVersion: 0x00050001 > hw.ndis0.BusType: 8 > hw.ndis0.IOBaseAddress: 0x100 > hw.ndis0.InterruptNumber: 11 > hw.ndis0.DriverDesc: UNSET > hw.ndis0.FwFileInt: UNSET > hw.ndis0.RegulatoryDomain: UNSET > hw.ndis0.InternationalRoaming: UNSET > > -- > Bob Bishop +44 (0)118 977 4017 > rb@gid.co.uk fax +44 (0)118 989 4254 > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >