Subject: kern/12357: an driver fails with AIR-PCM342 submodel of Cisco cards
To: None <gnats-bugs@gnats.netbsd.org>
From: Feico Dillema <feico@pasta.cs.uit.no>
List: netbsd-bugs
Date: 03/08/2001 13:12:33
>Number:         12357
>Category:       kern
>Synopsis:       an driver fails with AIR-PCM342 submodel of Cisco cards
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 08 04:13:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Feico Dillema
>Release:        NetBSD-1.5 and after
>Organization:
University of Tromsoe
>Environment:
System: NetBSD drifter.dillema.net 1.5R NetBSD 1.5R (DRIFTER-CB) #4: Tue Feb 13 18:03:59 CET 2001 dillema@drifter.dillema.net:/usr/cvs/netbsd-current/sys/arch/i386/compile/DRIFTER-CB i386
Architecture: i386
Machine: i386
>Description:
		this submodel of the cards returns status records that are
two bytes longer than the currently supported model of the card (which
itself already returns two bytes more than it should, according
comments in sys/dev/ic/anreg.h
>How-To-Repeat:
	Just try to use a card of this type, it will complain and fail
at `ifconfig up' time.
>Fix:
	Fix is really trivial, just add two more spare bytes to the
relevant datastructure in sys/dev/ic/anreg.h (valid for 1.5.x and -current). 
Diff for NetBSD-1.5.x branch:

--- anreg.h	Thu Mar  8 13:07:32 2001
+++ anreg.h.new	Wed Mar  7 14:37:53 2001
@@ -527,7 +527,7 @@
 	u_int16_t		an_max_noise_prev_sec;	/* 0x7A */
 	u_int16_t		an_avg_noise_prev_min;	/* 0x7C */
 	u_int16_t		an_max_noise_prev_min;	/* 0x7E */
-	u_int16_t		an_spare[2];
+	u_int16_t		an_spare[4];
 };
 
 #define AN_STATUS_OPMODE_CONFIGURED		0x0001



>Release-Note:
>Audit-Trail:
>Unformatted: