From d5fd96c500c9c93e9e6b121310d1b136bb9c45bd Mon Sep 17 00:00:00 2001
From: StapleButter <thetotalworm@gmail.com>
Date: Sun, 18 Jun 2017 03:41:36 +0200
Subject: wifi: another little fix

---
 src/Wifi.cpp | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'src')

diff --git a/src/Wifi.cpp b/src/Wifi.cpp
index 2db6202..d479cd8 100644
--- a/src/Wifi.cpp
+++ b/src/Wifi.cpp
@@ -682,6 +682,9 @@ bool ProcessTX(TXSlot* slot, int num)
             IOPORT(W_TXBusy) &= ~(1<<1);
             IOPORT(W_TXSlotCmd) &= 0x7FFF; // confirmed
 
+            // seems this is set to indicate which clients failed to reply
+            *(u16*)&RAM[slot->Addr + 0x2] = 0;
+
             SetIRQ(12);
             IOPORT(W_TXSeqNo) = (IOPORT(W_TXSeqNo) + 1) & 0x0FFF;
 
-- 
cgit v1.2.3