Subject: kern/20903: Corega CGWLPCIA11 can be used by dev/pci/if_wi_pci.c
To: None <gnats-bugs@gnats.netbsd.org>
From: None <h-masuda@ootani.nagata.kobe.jp>
List: netbsd-bugs
Date: 03/27/2003 17:44:37
>Number:         20903
>Category:       kern
>Synopsis:       Corega CGWLPCIA11 can be used by dev/pci/if_wi_pci.c
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 27 00:45:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6.1_RC2
>Organization:
MASUDA-NET
>Environment:
System: NetBSD eden01 1.6.1_RC2 NetBSD 1.6.1_RC2 (IME-$Revision: 1.1 $-$NetBSD: 1.491.4.4 $) #3: Thu Mar 27 16:55:26 JST 2003 h-masuda@moe.ootani.nagata.kobe.jp:/raid1/work/release-1-6/src/sys/arch/i386/compile/IME i386
Architecture: i386
Machine: i386
>Description:
 I'll use Corega CGWLPCIA11, PCI-based Wireless board using Intersil PRISM II.

% pcictl /dev/pci0 list | grep Corega
000:20:0: Corega CGWLPCIA11 (miscellaneous network, revision 0x02)

 But in release-1-6(may be -current also), this is not configured:

% dmesg | grep Corega
Corega CGWLPCIA11 (miscellaneous network, revision 0x02) at pci0 dev 20 function 0 not configured 

 I'll a little hack as following(in FIX: part), this is configured:

% dmesg | grep wi0
wi0 at pci0 dev 20 function 0: Corega CGWLPCIA11 (rev. 0x02)
wi0: interrupting at irq 10
wi0: 802.11 address 00:90:99:2d:2b:5f
wi0: using RF:PRISM2 MAC:HFA3841 CARD:HWB3163 rev.B
wi0: Intersil Firmware: Primary (0.3.0), Station (0.7.6)

 Please import the following hack.

>How-To-Repeat:
 Plug this card on PC, and play :)

>Fix:

 Apply this patch. This may be useful both release-1-6 and current.

--- if_wi_pci.c.orig	Wed Mar 19 15:30:12 2003
+++ if_wi_pci.c	Thu Mar 27 17:38:45 2003
@@ -119,6 +119,8 @@
 	  NULL, 1 },
 	{ PCI_VENDOR_INTERSIL,		PCI_PRODUCT_INTERSIL_MINI_PCI_WLAN,
 	  "Intersil Prism2.5", 0 },
+	{ PCI_VENDOR_COREGA,		PCI_PRODUCT_COREGA_CGWLPCIA11,
+	  NULL, 1 },
 	{ 0,				0,
 	  NULL, 0},
 };
>Release-Note:
>Audit-Trail:
>Unformatted: