mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
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.
This commit is contained in:
parent
af0084c92e
commit
ac13f66337
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=175006
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user