[mc1322x] Extra two bytes on xmit

Mariano Alvira mar at devl.org
Thu Nov 19 14:29:50 EST 2009


On Thu, Nov 19, 2009 at 08:43:12AM -0500, Jon Smirl wrote:
> On Thu, Nov 19, 2009 at 6:51 AM, Mariano Alvira <mar at devl.org> wrote:
> > On Wed, Nov 18, 2009 at 06:41:58PM -0500, Jon Smirl wrote:
> 
> Two bytes is the FSC.  What would the other two bytes be?
> 
> I am receiving the response packets but the TCP stack is discarding
> them. I'll try and figure out why this morning.

I just did some quick tests with rftest-tx and rftest-rx. It looks
like PAYLOAD_LEN + 2 is what we want not + 4.

so on tx:

   maca_txlen = (uint32_t)(PAYLOAD_LEN+2); \

and on rx:

  rx_size = reg32(MACA_GETRXLVL) - 2;

the extra two bytes read 0 on receive.

-Mar.



More information about the mc1322x mailing list