diff options
Diffstat (limited to 'sys/pci/if_wb.c')
-rw-r--r-- | sys/pci/if_wb.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/pci/if_wb.c b/sys/pci/if_wb.c index 2f8b60a..397ca20 100644 --- a/sys/pci/if_wb.c +++ b/sys/pci/if_wb.c @@ -967,12 +967,9 @@ static int wb_attach(dev) } /* - * Call MI attach routines. + * Call MI attach routine. */ - if_attach(ifp); - ether_ifattach(ifp); - - bpfattach(ifp, DLT_EN10MB, sizeof(struct ether_header)); + ether_ifattach(ifp, ETHER_BPF_SUPPORTED); fail: if (error) @@ -995,7 +992,7 @@ static int wb_detach(dev) ifp = &sc->arpcom.ac_if; wb_stop(sc); - if_detach(ifp); + ether_ifdetach(ifp, ETHER_BPF_SUPPORTED); /* Delete any miibus and phy devices attached to this interface */ bus_generic_detach(dev); |