diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-07-11 09:50:03 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-07-11 09:50:03 +0000 |
commit | 148df75c107eebb082988fbe0bc4c1b432b473ec (patch) | |
tree | b54161e01badd8ca135e67e144a68aef2afc74aa /sys/dev/mii | |
parent | c6e76dc3f64f076a96821005cfdc663abec908dd (diff) |
Initialize oui and model fields in the softc.
ok deraadt@, mpi@
Diffstat (limited to 'sys/dev/mii')
-rw-r--r-- | sys/dev/mii/ukphy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/mii/ukphy.c b/sys/dev/mii/ukphy.c index 8bd328f45b7..f7bcc95ea17 100644 --- a/sys/dev/mii/ukphy.c +++ b/sys/dev/mii/ukphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ukphy.c,v 1.23 2015/03/14 03:38:48 jsg Exp $ */ +/* $OpenBSD: ukphy.c,v 1.24 2016/07/11 09:50:02 kettenis Exp $ */ /* $NetBSD: ukphy.c,v 1.9 2000/02/02 23:34:57 thorpej Exp $ */ /*- @@ -114,6 +114,8 @@ ukphyattach(struct device *parent, struct device *self, void *aux) sc->mii_inst = mii->mii_instance; sc->mii_phy = ma->mii_phyno; sc->mii_funcs = &ukphy_funcs; + sc->mii_oui = MII_OUI(ma->mii_id1, ma->mii_id2); + sc->mii_model = MII_MODEL(ma->mii_id2); sc->mii_pdata = mii; sc->mii_flags = ma->mii_flags; |