From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 09:11:37 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8362837B401 for ; Wed, 13 Aug 2003 09:11:37 -0700 (PDT) Received: from kanga.honeypot.net (kanga.honeypot.net [208.162.254.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3352843FBD for ; Wed, 13 Aug 2003 09:11:36 -0700 (PDT) (envelope-from kirk@strauser.com) Received: from pooh.honeypot.net.strauser.com (kirk@pooh.honeypot.net [10.0.5.128]) by kanga.honeypot.net (8.12.9/8.12.9) with ESMTP id h7DGBXFl009700 for ; Wed, 13 Aug 2003 11:11:34 -0500 (CDT) (envelope-from kirk@strauser.com) To: freebsd-hackers@freebsd.org From: Kirk Strauser Date: Wed, 13 Aug 2003 11:11:14 -0500 Message-ID: <87isp15yhp.fsf@pooh.honeypot.net> Lines: 59 X-Mailer: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Subject: Adding device IDs to if_wi? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2003 16:11:38 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable I bought a Microsoft MN-520 WLAN card (Prism 2 chipset). It works well under Linux, but I want to use it with FreeBSD. The card does not currently exist in the pccarddevs database, so the if_wi drive doesn't recognize it. I've added it with this patch: Index: sys/dev/pccard/pccarddevs =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /usr/cvs/src/sys/dev/pccard/pccarddevs,v retrieving revision 1.3.2.1 diff -u -u -r1.3.2.1 pccarddevs --- sys/dev/pccard/pccarddevs 23 May 2000 03:57:00 -0000 1.3.2.1 +++ sys/dev/pccard/pccarddevs 5 Aug 2003 01:49:55 -0000 @@ -68,6 +68,7 @@ vendor IODATA 0x01bf I-O DATA vendor BAY 0x01eb Bay Networks vendor NOKIA 0x023d Nokia Communications +vendor MICROSOFT 0x02d2 Microsoft Corporation vendor LASAT 0x3401 Lasat Communications A/S vendor LEXARMEDIA 0x4e01 Lexar Media vendor COMPEX 0x8a01 Compex Corporation @@ -151,6 +152,9 @@ /* Melco Products */ product MELCO LPC3_TX 0xc1ab Melco LPC3-TX + +/* Microsoft Products */ +product MICROSOFT MN_520 0x0001 Microsoft MN-520 WLAN Card /* Nokia Products */ product NOKIA C020_WLAN 0x20c0 Nokia C020 WLAN Card Then, I regenerated the .h files with "make -f Makefile.pccarddevs". Finally, I added the card's data to the if_wi driver: Index: sys/dev/wi/if_wi_pccard.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /usr/cvs/src/sys/dev/wi/if_wi_pccard.c,v retrieving revision 1.8.2.2 diff -u -u -r1.8.2.2 if_wi_pccard.c --- sys/dev/wi/if_wi_pccard.c 2 Aug 2002 07:11:34 -0000 1.8.2.2 +++ sys/dev/wi/if_wi_pccard.c 5 Aug 2003 01:36:10 -0000 @@ -148,6 +148,7 @@ PCMCIA_CARD2(LUCENT, WAVELAN_IEEE, SMC_2632W, 0), /* Must be after other LUCENT ones because it is less specific = */ PCMCIA_CARD(LUCENT, WAVELAN_IEEE, 0), + PCMCIA_CARD(MICROSOFT, MN_520, 0), PCMCIA_CARD(NETGEAR2, MA401RA, 0), PCMCIA_CARD(NOKIA, C110_WLAN, 0), PCMCIA_CARD(PROXIM, RANGELANDS_8430, 0), and then recompiled the kernel. Unfortunately, the driver still doesn't seem to attach to the card (when I "kldload if_wi.ko" from sysinstall's holographic shell, with a floppy with the "corrected" driver). What else can I do? Is there anything else I should edit? =2D-=20 Kirk Strauser --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQA/OmM05sRg+Y0CpvERAnTmAJ0U/2xLf6DPi9MGeSquyuhoo6AqnQCeIO5H Jove1FDs6YeQ7hBIj/P/8aI= =s8yZ -----END PGP SIGNATURE----- --=-=-=--