Author: hpoussin
Date: Fri Aug 22 19:13:31 2014
New Revision: 63916
URL:
http://svn.reactos.org/svn/reactos?rev=63916&view=rev
Log:
[NDISUIO]
Add required PnPEventHandler
CORE-8292
Modified:
trunk/reactos/drivers/network/ndisuio/main.c
trunk/reactos/drivers/network/ndisuio/ndisuio.h
trunk/reactos/drivers/network/ndisuio/protocol.c
Modified: trunk/reactos/drivers/network/ndisuio/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndisuio/ma…
==============================================================================
--- trunk/reactos/drivers/network/ndisuio/main.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndisuio/main.c [iso-8859-1] Fri Aug 22 19:13:31 2014
@@ -74,6 +74,7 @@
Chars.MinorNdisVersion = NDIS_MINOR_VERSION;
Chars.OpenAdapterCompleteHandler = NduOpenAdapterComplete;
Chars.CloseAdapterCompleteHandler = NduCloseAdapterComplete;
+ Chars.PnPEventHandler = NduNetPnPEvent;
Chars.SendCompleteHandler = NduSendComplete;
Chars.TransferDataCompleteHandler = NduTransferDataComplete;
Chars.ResetCompleteHandler = NduResetComplete;
Modified: trunk/reactos/drivers/network/ndisuio/ndisuio.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndisuio/nd…
==============================================================================
--- trunk/reactos/drivers/network/ndisuio/ndisuio.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndisuio/ndisuio.h [iso-8859-1] Fri Aug 22 19:13:31 2014
@@ -134,6 +134,11 @@
NduCloseAdapterComplete(NDIS_HANDLE ProtocolBindingContext,
NDIS_STATUS Status);
+NDIS_STATUS
+NTAPI
+NduNetPnPEvent(NDIS_HANDLE ProtocolBindingContext,
+ PNET_PNP_EVENT NetPnPEvent);
+
VOID
NTAPI
NduSendComplete(NDIS_HANDLE ProtocolBindingContext,
Modified: trunk/reactos/drivers/network/ndisuio/protocol.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndisuio/pr…
==============================================================================
--- trunk/reactos/drivers/network/ndisuio/protocol.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndisuio/protocol.c [iso-8859-1] Fri Aug 22 19:13:31
2014
@@ -38,6 +38,25 @@
/* Store the final status and signal the event */
AdapterContext->AsyncStatus = Status;
KeSetEvent(&AdapterContext->AsyncEvent, IO_NO_INCREMENT, FALSE);
+}
+
+NDIS_STATUS
+NTAPI
+NduNetPnPEvent(NDIS_HANDLE ProtocolBindingContext,
+ PNET_PNP_EVENT NetPnPEvent)
+{
+ DPRINT("NetPnPEvent\n");
+
+ switch (NetPnPEvent->NetEvent)
+ {
+ case NetEventQueryRemoveDevice:
+ /* Nothing to do */
+ return NDIS_STATUS_SUCCESS;
+
+ default:
+ DPRINT1("NetPnPEvent unimplemented for net event 0x%x\n",
NetPnPEvent->NetEvent);
+ return NDIS_STATUS_FAILURE;
+ }
}
VOID