tiny mistake again.

This commit is contained in:
luigi__ 2010-04-21 10:27:25 +00:00
parent fe2e22962a
commit d3b329ec7f
1 changed files with 3 additions and 1 deletions

View File

@ -2048,7 +2048,9 @@ static void SoftAP_Deauthenticate()
{ {
u32 packetLen = sizeof(SoftAP_DeauthFrame); u32 packetLen = sizeof(SoftAP_DeauthFrame);
memcpy(&SoftAP.curPacket[12], SoftAP_DeauthFrame, packetLen); // Copy the beacon template memcpy(&SoftAP.curPacket[12], SoftAP_DeauthFrame, packetLen);
memcpy(&SoftAP.curPacket[12 + 4], FW_Mac, 6); // Receiver MAC
*(u16*)&SoftAP.curPacket[12 + 22] = SoftAP.seqNum << 4; // Sequence number *(u16*)&SoftAP.curPacket[12 + 22] = SoftAP.seqNum << 4; // Sequence number
SoftAP.seqNum++; SoftAP.seqNum++;