From f98266db17178735e936368514b439bd8c3f918c Mon Sep 17 00:00:00 2001 From: imp Date: Mon, 31 Dec 2007 03:27:21 +0000 Subject: 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. --- sys/dev/ed/if_ed_rtl80x9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.1