summaryrefslogtreecommitdiffstats
path: root/sys/dev/ed/if_ed_rtl80x9.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ed/if_ed_rtl80x9.c')
-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