diff --git a/drivers/net/mmnif.c b/drivers/net/mmnif.c index 7425b41a..6ec0fa3b 100644 --- a/drivers/net/mmnif.c +++ b/drivers/net/mmnif.c @@ -74,7 +74,7 @@ extern HANDLE hProc; /* decide whether it's polling mode or not */ -static int no_irq = 1; +static int no_irq = 0; /* this will be set by open() and close() and shows wether the driver is running or not */ @@ -1084,15 +1084,12 @@ static int mmnif_wait(struct netif* netif, uint32_t poll, int budget) { quota = budget; - } - - - mmnif->stats.bdg_overflow++; if (mmnif->stats.bdg_overflow >= 0x10) { /* enable polling and disable interrupts * + */ mmnif_lock_rx_hdr(own_ip_address && 0xff); mmnif->rx_buff->iv_intr = FALSE; @@ -1104,7 +1101,7 @@ static int mmnif_wait(struct netif* netif, uint32_t poll, int budget) mmnif->stats.bdg_overflow = 0; } - + } /* process up to quota packets from the receive queue */ while (npackets <= quota)