From owner-freebsd-bugs Thu Nov 15 20:40:14 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 109E937B628 for ; Thu, 15 Nov 2001 20:40:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id fAG4e2952780; Thu, 15 Nov 2001 20:40:02 -0800 (PST) (envelope-from gnats) Date: Thu, 15 Nov 2001 20:40:02 -0800 (PST) Message-Id: <200111160440.fAG4e2952780@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Matthew Emmerton" Subject: Re: kern/31839: ex0 panic if NIC not cabled Reply-To: "Matthew Emmerton" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR kern/31839; it has been noted by GNATS. From: "Matthew Emmerton" To: , Cc: Subject: Re: kern/31839: ex0 panic if NIC not cabled Date: Thu, 15 Nov 2001 23:39:28 -0500 Looks like the code that detects the media type doesn't allow for IFM_NONE. The below patch should fix the problem. --- sys/dev/ex/if_ex.c.orig Thu Nov 15 23:13:41 2001 +++ sys/dev/ex/if_ex.c Thu Nov 15 23:26:28 2001 @@ -252,6 +252,8 @@ ifmedia_add(&sc->ifmedia, IFM_ETHER|IFM_10_2, 0, NULL); if (temp & EE_W5_PORT_AUI) ifmedia_add(&sc->ifmedia, IFM_ETHER|IFM_10_5, 0, NULL); + if (!(temp & (EE_W5_PORT_TPE | EE_W5_PORT_BNC | EE_W5_PORT_AUI))) + ifmedia_add(&sc->ifmedia, IFM_ETHER|IFM_NONE, 0, NULL); ifmedia_set(&sc->ifmedia, ex_get_media(sc->iobase)); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message