[mc1322x] Extra two bytes on xmit
Jon Smirl
jonsmirl at gmail.com
Thu Nov 19 14:44:51 EST 2009
On Thu, Nov 19, 2009 at 2:29 PM, Mariano Alvira <mar at devl.org> wrote:
> 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;
It is more complex on receive. I'm still trying to figure out what is wrong.
>
> the extra two bytes read 0 on receive.
>
> -Mar.
>
--
Jon Smirl
jonsmirl at gmail.com
More information about the mc1322x
mailing list