Author: cgutman
Date: Sun Oct 3 15:18:57 2010
New Revision: 48968
URL:
http://svn.reactos.org/svn/reactos?rev=48968&view=rev
Log:
[NDIS]
- Disable timer queuing code (hackfix for various network driver failures)
- Also needs to be merged into 0.3.12
Modified:
trunk/reactos/drivers/network/ndis/ndis/time.c
Modified: trunk/reactos/drivers/network/ndis/ndis/time.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/time.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/time.c [iso-8859-1] Sun Oct 3 15:18:57 2010
@@ -145,7 +145,7 @@
* - call at IRQL <= DISPATCH_LEVEL
*/
{
- KIRQL OldIrql;
+ //KIRQL OldIrql;
ASSERT_IRQL(DISPATCH_LEVEL);
ASSERT(TimerCancelled);
@@ -153,6 +153,7 @@
*TimerCancelled = KeCancelTimer (&Timer->Timer);
+#if 0
if (*TimerCancelled)
{
KeAcquireSpinLock(&Timer->Miniport->Lock, &OldIrql);
@@ -160,6 +161,7 @@
if (!DequeueMiniportTimer(Timer)) ASSERT(FALSE);
KeReleaseSpinLock(&Timer->Miniport->Lock, OldIrql);
}
+#endif
}
VOID NTAPI
@@ -170,6 +172,7 @@
{
PNDIS_MINIPORT_TIMER Timer = DeferredContext;
+#if 0
/* Only dequeue if the timer has a period of 0 */
if (!Timer->Timer.Period)
{
@@ -178,6 +181,7 @@
if (!DequeueMiniportTimer(Timer)) ASSERT(FALSE);
KeReleaseSpinLockFromDpcLevel(&Timer->Miniport->Lock);
}
+#endif
Timer->MiniportTimerFunction(Dpc,
Timer->MiniportTimerContext,
@@ -240,14 +244,15 @@
*/
{
LARGE_INTEGER Timeout;
- KIRQL OldIrql;
+ //KIRQL OldIrql;
ASSERT_IRQL(DISPATCH_LEVEL);
ASSERT(Timer);
/* relative delays are negative, absolute are positive; resolution is 100ns */
Timeout.QuadPart = Int32x32To64(MillisecondsPeriod, -10000);
-
+
+#if 0
/* Lock the miniport block */
KeAcquireSpinLock(&Timer->Miniport->Lock, &OldIrql);
@@ -260,6 +265,7 @@
/* Unlock the miniport block */
KeReleaseSpinLock(&Timer->Miniport->Lock, OldIrql);
+#endif
KeSetTimerEx(&Timer->Timer, Timeout, MillisecondsPeriod, &Timer->Dpc);
}
@@ -285,7 +291,7 @@
*/
{
LARGE_INTEGER Timeout;
- KIRQL OldIrql;
+ //KIRQL OldIrql;
ASSERT_IRQL(DISPATCH_LEVEL);
ASSERT(Timer);
@@ -293,6 +299,7 @@
/* relative delays are negative, absolute are positive; resolution is 100ns */
Timeout.QuadPart = Int32x32To64(MillisecondsToDelay, -10000);
+#if 0
/* Lock the miniport block */
KeAcquireSpinLock(&Timer->Miniport->Lock, &OldIrql);
@@ -305,6 +312,7 @@
/* Unlock the miniport block */
KeReleaseSpinLock(&Timer->Miniport->Lock, OldIrql);
+#endif
KeSetTimer(&Timer->Timer, Timeout, &Timer->Dpc);
}