And more network clean-ups and fixes.

This commit is contained in:
OBattler
2022-02-20 13:58:38 +01:00
parent 83f29f88cd
commit 01e0609ab6
4 changed files with 19 additions and 53 deletions

View File

@@ -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);