- Implement ProtocolResetComplete
authorCameron Gutman <aicommander@gmail.com>
Mon, 13 Oct 2008 00:55:33 +0000 (00:55 +0000)
committerCameron Gutman <aicommander@gmail.com>
Mon, 13 Oct 2008 00:55:33 +0000 (00:55 +0000)
 - Store the status that gets passed to the completion routine

svn path=/branches/aicom-network-fixes/; revision=36740

drivers/network/tcpip/datalink/lan.c

index f7bdfff..35a5797 100644 (file)
@@ -201,6 +201,8 @@ VOID STDCALL ProtocolOpenAdapterComplete(
 
     TI_DbgPrint(DEBUG_DATALINK, ("Called.\n"));
 
 
     TI_DbgPrint(DEBUG_DATALINK, ("Called.\n"));
 
+    Adapter->NdisStatus = Status;
+
     KeSetEvent(&Adapter->Event, 0, FALSE);
 }
 
     KeSetEvent(&Adapter->Event, 0, FALSE);
 }
 
@@ -235,7 +237,13 @@ VOID STDCALL ProtocolResetComplete(
  *     Status         = Status of the operation
  */
 {
  *     Status         = Status of the operation
  */
 {
-    TI_DbgPrint(MID_TRACE, ("Called.\n"));
+    PLAN_ADAPTER Adapter = (PLAN_ADAPTER)BindingContext;
+
+    TI_DbgPrint(DEBUG_DATALINK, ("Called.\n"));
+
+    Adapter->NdisStatus = Status;
+
+    KeSetEvent(&Adapter->Event, 0, FALSE);
 }
 
 
 }