aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2017-06-20 12:20:37 +0200
committerStapleButter <thetotalworm@gmail.com>2017-06-20 12:20:37 +0200
commit456fe238503d0416b2d52ee335a4f82a1c3a6fd9 (patch)
treef23b71007f9f5db3f1b09dc10909ddfc9d425add
parentc5dbb01aa36eeddc2a9a0759c99fdaf6fb2f0b76 (diff)
wifi: tiny fix (bad TXSTAT after MP host transfer)
-rw-r--r--src/Wifi.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wifi.cpp b/src/Wifi.cpp
index 583bfbc..614a57f 100644
--- a/src/Wifi.cpp
+++ b/src/Wifi.cpp
@@ -614,7 +614,7 @@ bool ProcessTX(TXSlot* slot, int num)
{
if (IOPORT(W_TXStatCnt) & 0x4000)
{
- IOPORT(W_TXStat) = 0x0801;
+ IOPORT(W_TXStat) = 0x0800;
SetIRQ(1);
}
SetStatus(5);
@@ -952,6 +952,7 @@ void USTimer(u32 param)
{
// transfer finished, see if there's another slot to do
// checkme: priority order of beacon/reply
+ // TODO: for CMD, check CMDCOUNT
u16 txbusy = IOPORT(W_TXBusy);
if (txbusy & 0x0080) TXCurSlot = 5;
else if (txbusy & 0x0010) TXCurSlot = 4;
@@ -969,7 +970,6 @@ void USTimer(u32 param)
}
if (ComStatus & 0x1)
{
- // TODO: make sure it isn't possible to send and receive at the same time
RXTime--;
if (!(RXTime & RXHalfwordTimeMask))
{