wifiAP: basic support for probereq/auth/assoc/deauth/deassoc

This commit is contained in:
StapleButter
2017-12-18 22:44:29 +01:00
parent 9632aa4021
commit 0ff67d28d3
2 changed files with 195 additions and 8 deletions

View File

@ -611,11 +611,17 @@ bool ProcessTX(TXSlot* slot, int num)
// set TX addr
IOPORT(W_RXTXAddr) = slot->Addr >> 1;
// send
int txlen = Platform::MP_SendPacket(&RAM[slot->Addr], 12 + slot->Length);
WIFI_LOG("wifi: sent %d/%d bytes of slot%d packet, addr=%04X, framectl=%04X, %04X %04X\n",
txlen, slot->Length+12, num, slot->Addr, *(u16*)&RAM[slot->Addr + 0xC],
*(u16*)&RAM[slot->Addr + 0x24], *(u16*)&RAM[slot->Addr + 0x26]);
// if the packet is being sent via LOC1..3, send it to the AP
// any packet sent via CMD/REPLY/BEACON isn't going to have much use outside of local MP
if (num == 0 || num == 2 || num == 3)
WifiAP::SendPacket(&RAM[slot->Addr], 12 + slot->Length);
if (num == 4)
{
*(u64*)&RAM[slot->Addr + 0xC + 24] = oldts;