From owner-freebsd-mobile@FreeBSD.ORG Wed Mar 23 00:16:56 2005 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AEE1816A4CE; Wed, 23 Mar 2005 00:16:56 +0000 (GMT) Received: from alcoholic.geiin.org (usen-59x87x89x234.ap-US02.usen.ad.jp [59.87.89.234]) by mx1.FreeBSD.org (Postfix) with ESMTP id 273A843D53; Wed, 23 Mar 2005 00:16:56 +0000 (GMT) (envelope-from yoichi@FreeBSD.org) Received: from localhost.geiin.org (localhost [127.0.0.1]) by alcoholic.geiin.org (Postfix) with ESMTP id BCDE21B4429; Wed, 23 Mar 2005 09:17:02 +0900 (JST) Date: Wed, 23 Mar 2005 09:17:01 +0900 Message-ID: <87d5tri5c2.wl%yoichi@FreeBSD.org> From: Yoichi Nakayama To: freebsd-mobile@freebsd.org In-Reply-To: <874qf5qnvn.wl%yoichi@FreeBSD.org> References: <87zmwyclyb.wl%yoichi@FreeBSD.org> <20050320.102234.105099355.imp@bsdimp.com> <87y8cici5l.wl%yoichi@FreeBSD.org> <20050320.140430.82508419.imp@bsdimp.com> <87oedddc35.wl%yoichi@FreeBSD.org> <874qf5qnvn.wl%yoichi@FreeBSD.org> User-Agent: Wanderlust/2.15.1 (Almost Unreal) EMIKO/1.14.1 (Choanoflagellata) IMITATION/1.14.6 (=?ISO-2022-JP?B?GyRCMGxIVjpxJGobKEI=?=) APEL/10.6 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (=?ISO-2022-JP?B?GyRCOC1MWhsoQg==?=) Organization: Geiin.org X-Face: wLZki+KbGjgKe0,<&3g*rA|R**vj[a8L%[v]ecJh1L(Uqm|LBx; v7Nq7n%?0d.aS]F#[~C\!{m?m,C&#U5}$_pZvBR>5VmX1Ol0`P\M-U8`sUF<5Quj'z&zzW8r|Zl9#W7Wut3duYzpKrP{n+AbarKtJ!i"Al7]P;-?[=iBZa*]r=>C':0~JECx]IH+RXq=/hUX}MB9e]oQKBxsDd/ X-SKK: Daredevil SKK/12.2.1 (Sone) MIME-Version: 1.0 (generated by EMIKO 1.14.1 - "Choanoflagellata") Content-Type: text/plain; charset=US-ASCII cc: wpaul@freebsd.org Subject: Re: WLI2-CB-G54L doesn't work X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2005 00:16:56 -0000 At Mon, 21 Mar 2005 19:44:44 +0900, Yoichi Nakayama wrote: > I invoked pciconf -l -v and it describes the card as > none6@pci1:0:0: class=0x020000 card=0x03341154 chip=0x222017fe rev=0x00 hdr=0x00 > vendor = 'InProComm Inc' > class = network > subclass = ethernet > > http://pciids.sourceforge.net/pci.ids saids > 17fe Linksys, A Division of Cisco Systems > 2220 [AirConn] INPROCOMM IPN 2220 Wireless LAN Adapter (rev 01) > > I noticed I have misthought that it has ath chip, and I looked at > http://buffalo.melcoinc.co.jp/download/driver/lan/wdrv.html (in Japanese) > again. Then I found that I've wrongly looked at WLI-CB-AG54L spec instead > of WLI2-CB-G54L which I have. Then I tried ndis driver, but I got following panic on "ifconfig ndis0 up": panic: _mtx_lock_sleep: recursed on non-recursive mutex ndis softc lock @ /usr/src/sys/modules/ndis/../../compat/ndis/kern_ndis.c:1463 It is caused by recursive lock introduced in if_ndis.c rev 1.82. Is the following change correct? My card works with this change. --- if_ndis.c.orig 2005-03-23 09:15:49.055453632 +0900 +++ if_ndis.c 2005-03-23 09:15:45.088056768 +0900 @@ -1469,9 +1469,11 @@ NDIS_LOCK(sc); sc->ndis_block->nmb_getstat = 0; + NDIS_UNLOCK(sc); if (ndis_init_nic(sc)) return; + NDIS_LOCK(sc); /* * 802.11 NDIS drivers are supposed to generate a link * down event right when you initialize them. You wait -- Yoichi NAKAYAMA