You are not logged in.
In the function warpmac_prepEmacForXmit, in warpmac.c, why is the length of the payload taken as (packet->header.length)-4, why not as (packet->header.length).
Thanks
Offline
I believe that accounts for the Ethernet checksum. The reference design transmits a full Ethernet frame over-the-air, including its 32-bit checksum (this is sort of pointless, I admit). On the receiving side, the code ignores the received Ethernet checksum when copying the packet into the EMAC. The EMAC will append a new checksum as it transmits the packet over the wire.
Offline