Adding device IDs to if_wi?
Kirk Strauser
kirk at strauser.com
Wed Aug 13 09:11:38 PDT 2003
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
===================================================================
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
===================================================================
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?
--
Kirk Strauser
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20030813/bf8c15d1/attachment.bin
More information about the freebsd-hackers
mailing list