wifi: put WIFI_RXQueuePacket under EXPERIMENTAL_WIFI_COMM

This commit is contained in:
riccardom 2012-03-17 19:48:47 +00:00
parent 35bde51221
commit 4134d2556b
1 changed files with 2 additions and 0 deletions

View File

@ -792,6 +792,7 @@ static void WIFI_RXPutWord(u16 val)
wifiMac.RXTXAddr = wifiMac.RXWriteCursor; wifiMac.RXTXAddr = wifiMac.RXWriteCursor;
} }
#ifdef EXPERIMENTAL_WIFI_COMM
static void WIFI_RXQueuePacket(u8* packet, u32 len) static void WIFI_RXQueuePacket(u8* packet, u32 len)
{ {
if (!(wifiMac.RXCnt & 0x8000)) return; if (!(wifiMac.RXCnt & 0x8000)) return;
@ -803,6 +804,7 @@ static void WIFI_RXQueuePacket(u8* packet, u32 len)
pkt.NotStarted = true; pkt.NotStarted = true;
wifiMac.RXPacketQueue.push(pkt); wifiMac.RXPacketQueue.push(pkt);
} }
#endif
template<int stat> static void WIFI_IncrementRXStat() template<int stat> static void WIFI_IncrementRXStat()
{ {