Hi,
you're right, the S_SAMPLE_CCA is used to prevent transmission if the
channel is busy. The problem you describe arise when you receive a
packet during the backoff interval, just before a transmission. In
this case I discard the packet since I was attempting a transmission,
but probably the correct behavior is to handle the reception (should
check on CC2420 datasheet). By the way I was expecting this event to
be very rare (and it was during simulations) thus I didn't get deeper
into this issue. What is the percentage of dropped packets related to
this event? It shouldn't be that much...
Regards,
Ugo