aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2007-12-31 03:27:21 +0000
committerWarner Losh <imp@FreeBSD.org>2007-12-31 03:27:21 +0000
commitac13f66337a6ee1bd5ba7350e2592bc98bf3afa0 (patch)
treebe08f73005630b34270271ccb0bf87a3e19e6a17 /sys/dev
parentaf0084c92ec09637036f4f0301c9a6fb1a96cb59 (diff)
Notes
Diffstat (limited to 'sys/dev')
-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 c6a7d76d7a87..695630756206 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;