mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 04:13:32 +00:00
- Send NetEventBindsComplete when binding has completed (required for the WDK example ndis protocol driver to work)
svn path=/trunk/; revision=42977
This commit is contained in:
@@ -1034,6 +1034,7 @@ NdisRegisterProtocol(
|
||||
PPROTOCOL_BINDING Protocol;
|
||||
NTSTATUS NtStatus;
|
||||
UINT MinSize;
|
||||
PNET_PNP_EVENT PnPEvent;
|
||||
|
||||
NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
|
||||
|
||||
@@ -1101,6 +1102,23 @@ NdisRegisterProtocol(
|
||||
|
||||
ndisBindMiniportsToProtocol(Status, &Protocol->Chars);
|
||||
|
||||
/* Should we only send this if ndisBindMiniportsToProtocol succeeds? */
|
||||
PnPEvent = ProSetupPnPEvent(NetEventBindsComplete, NULL, 0);
|
||||
if (PnPEvent)
|
||||
{
|
||||
if (Protocol->Chars.PnPEventHandler)
|
||||
{
|
||||
/* We call this with a NULL binding context because it affects all bindings */
|
||||
NtStatus = (*Protocol->Chars.PnPEventHandler)(NULL,
|
||||
PnPEvent);
|
||||
|
||||
/* FIXME: We don't support this yet */
|
||||
ASSERT(NtStatus != NDIS_STATUS_PENDING);
|
||||
}
|
||||
|
||||
ExFreePool(PnPEvent);
|
||||
}
|
||||
|
||||
if (*Status == NDIS_STATUS_SUCCESS) {
|
||||
ExInterlockedInsertTailList(&ProtocolListHead, &Protocol->ListEntry, &ProtocolListLock);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user