Subject: kern/30001: Support for SMC2531W-B Wireless Card in NetBSD 3.0
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Matthias Petermann <matthias@bsd-crew.de>
List: netbsd-bugs
Date: 04/18/2005 01:57:01
>Number:         30001
>Category:       kern
>Synopsis:       NetBSD 3.0_BETA doesn't support my SMC2531W-B Wireless Card
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 18 01:57:01 +0000 2005
>Originator:     Matthias Petermann
>Release:        NetBSD 3.0_BETA (cvs sources from 2005-03-31)
>Organization:
BSD-Crew Dresden
>Environment:
System: NetBSD oxygene.localnet 3.0_BETA NetBSD 3.0_BETA (GENERIC_LAPTOP) #0: Thu Mar 31 16:22:55 CEST 2005 root@:/usr/src/sys/arch/i386/compile/GENERIC_LAPTOP i386
Architecture: i386
Machine: i386
>Description:
The SMC2531W-B wireless adapter is a PCMCIA card which uses a Prism 2/3
chipset. After inserting the card it will be detected correctly by its
name, but it *will not* assigned to the driver (wi).
>How-To-Repeat:
Just insert the card ;)
>Fix:
I just had to add the PCMCIA product ID to pcmciadevs and the wi driver.
There is one confusing thing: I purchased the card as an SMC product
but its vendor ID is 0x0010 (which is already assigned to ELSA). 

Here is a little patch for making the card work in NetBSD 3.0_BETA. I've
chosen to pretend the card as an ELSA product - maybe there is another,
much cleaner way to handle doubled vendor IDs?


--- /usr/src/share/man/man4/wi.4.orig   2005-04-18 02:47:34.000000000 +0200
+++ /usr/src/share/man/man4/wi.4        2005-04-18 02:49:12.000000000 +0200
@@ -175,6 +175,8 @@
 TDK LAK-CD011WL
 .It
 SMC EZ Connect 11M Wireless CF Card SMC2642W
+.It
+SMC EliteConnect Wireless Adapter PC Card SMC2531W-B
 .El
 .Pp
 The original PRISM-I chipset is supported by the


--- /usr/src/sys/dev/pcmcia/pcmciadevs.orig     2005-03-31 15:37:21.000000000 +0200
+++ /usr/src/sys/dev/pcmcia/pcmciadevs  2005-03-31 15:43:02.000000000 +0200
@@ -208,6 +208,7 @@
 product ELSA XI300_IEEE                0x0002 XI300 Wireless LAN
 product ELSA XI800_IEEE                0x0004 XI800 CF Wireless LAN
 product ELSA XI325_IEEE                0x0005 XI325 Wireless LAN
+product ELSA SMC2531WB         0x0010 SMC2531W-B EliteConnect Wireless Adapter

 /* EMTAC */
 product EMTAC WLAN             0x0002  EMTAC A2424i 11Mbps WLAN Card


--- /usr/src/sys/dev/pcmcia/if_wi_pcmcia.c.orig 2005-03-31 15:43:24.000000000 +0200
+++ /usr/src/sys/dev/pcmcia/if_wi_pcmcia.c      2005-03-31 15:45:23.000000000 +0200
@@ -160,6 +160,9 @@
        { PCMCIA_VENDOR_ELSA, PCMCIA_PRODUCT_ELSA_XI800_IEEE,
	  PCMCIA_CIS_ELSA_XI800_IEEE },
 
+       { PCMCIA_VENDOR_ELSA, PCMCIA_PRODUCT_ELSA_SMC2531WB,
+         PCMCIA_CIS_ELSA_SMC2531WB },
+
        { PCMCIA_VENDOR_COMPAQ, PCMCIA_PRODUCT_COMPAQ_NC5004,
	  PCMCIA_CIS_COMPAQ_NC5004 },