From: kettenis Date: Mon, 11 Jul 2016 09:50:02 +0000 (+0000) Subject: Initialize oui and model fields in the softc. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2ff229f7f2122927949b647fc7bc370398f1c917;p=openbsd Initialize oui and model fields in the softc. ok deraadt@, mpi@ --- 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;