summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2007-12-31 03:27:21 +0000
committerimp <imp@FreeBSD.org>2007-12-31 03:27:21 +0000
commitf98266db17178735e936368514b439bd8c3f918c (patch)
treebe08f73005630b34270271ccb0bf87a3e19e6a17
parent93319cc10273607712748c7127ef8b6b9c423f9d (diff)
downloadFreeBSD-src-f98266db17178735e936368514b439bd8c3f918c.zip
FreeBSD-src-f98266db17178735e936368514b439bd8c3f918c.tar.gz
Add missing 'sc->chip_type ==' to an ugly switch statement expression
so that for RealTek 8019 cards, we consider AUI as well as BNC bits.
-rw-r--r--sys/dev/ed/if_ed_rtl80x9.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ed/if_ed_rtl80x9.c b/sys/dev/ed/if_ed_rtl80x9.c
index c6a7d76..6956307 100644
--- a/sys/dev/ed/if_ed_rtl80x9.c
+++ b/sys/dev/ed/if_ed_rtl80x9.c
@@ -193,7 +193,7 @@ ed_rtl_get_media(struct ifnet *ifp, struct ifmediareq *imr)
(ed_nic_inb(sc, ED_P0_CR) & (ED_CR_STA | ED_CR_STP)));
switch (ed_nic_inb(sc, ED_RTL80X9_CONFIG0)
- & (ED_CHIP_TYPE_RTL8029 ? ED_RTL80X9_CF0_BNC
+ & (sc->chip_type == ED_CHIP_TYPE_RTL8029 ? ED_RTL80X9_CF0_BNC
: (ED_RTL80X9_CF0_AUI | ED_RTL80X9_CF0_BNC))) {
case ED_RTL80X9_CF0_BNC:
imr->ifm_active |= IFM_10_2;
OpenPOWER on IntegriCloud