The compatibility layer was calling if_init() too early, I've now moved it to the compat_open()
function. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23014 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
8fce87ae34
commit
6b09666034
|
@ -133,6 +133,8 @@ compat_open(const char *name, uint32 flags, void **cookie)
|
||||||
|
|
||||||
ifp->if_flags |= IFF_UP;
|
ifp->if_flags |= IFF_UP;
|
||||||
ifp->if_ioctl(ifp, SIOCSIFFLAGS, NULL);
|
ifp->if_ioctl(ifp, SIOCSIFFLAGS, NULL);
|
||||||
|
|
||||||
|
ifp->if_init(ifp->if_softc);
|
||||||
}
|
}
|
||||||
|
|
||||||
*cookie = device;
|
*cookie = device;
|
||||||
|
|
|
@ -306,8 +306,6 @@ ether_ifattach(struct ifnet *ifp, const uint8_t *macAddress)
|
||||||
// once all drivers are cleaned up.
|
// once all drivers are cleaned up.
|
||||||
if (macAddress != IFP2ENADDR(ifp))
|
if (macAddress != IFP2ENADDR(ifp))
|
||||||
memcpy(IFP2ENADDR(ifp), macAddress, ETHER_ADDR_LEN);
|
memcpy(IFP2ENADDR(ifp), macAddress, ETHER_ADDR_LEN);
|
||||||
|
|
||||||
ifp->if_init(ifp->if_softc);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue