And more network clean-ups and fixes.
This commit is contained in:
@@ -180,11 +180,6 @@ poll_thread(void *arg)
|
||||
/* Request ownership of the device. */
|
||||
network_wait(1);
|
||||
|
||||
#if 0
|
||||
/* Wait for a poll request. */
|
||||
network_poll();
|
||||
#endif
|
||||
|
||||
if (pcap == NULL) {
|
||||
network_wait(0);
|
||||
break;
|
||||
@@ -211,12 +206,9 @@ poll_thread(void *arg)
|
||||
}
|
||||
}
|
||||
|
||||
/* Wait for the next packet to arrive. */
|
||||
/* Wait for the next packet to arrive - network_do_tx() is called from there. */
|
||||
tx = network_tx_queue_check();
|
||||
|
||||
if (tx)
|
||||
network_do_tx();
|
||||
|
||||
/* Release ownership of the device. */
|
||||
network_wait(0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user