From c5b6983d20fbf42bdb6f9134381d57c9d6857d65 Mon Sep 17 00:00:00 2001 From: kettenis Date: Sat, 9 Jul 2016 15:59:22 +0000 Subject: [PATCH] Initialize the mii_oui field such that fec(4) can look at it. ok jsg@ --- sys/dev/mii/atphy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/mii/atphy.c b/sys/dev/mii/atphy.c index 7d166bae291..45504902669 100644 --- a/sys/dev/mii/atphy.c +++ b/sys/dev/mii/atphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atphy.c,v 1.10 2016/07/08 08:30:06 kettenis Exp $ */ +/* $OpenBSD: atphy.c,v 1.11 2016/07/09 15:59:22 kettenis Exp $ */ /*- * Copyright (c) 2008, Pyun YongHyeon @@ -126,6 +126,7 @@ atphy_attach(struct device *parent, struct device *self, void *aux) sc->mii_inst = mii->mii_instance; sc->mii_phy = ma->mii_phyno; sc->mii_funcs = &atphy_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; -- 2.20.1