1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-22 07:45:56 +02:00

atusb: fw: leave the FCS check to the kernel stack

This check is more harm than good. For example in promiscuous mode we might want
to get frames with invalid CRC. The kernel subsystem is in a way better
situation to understand what the user want thus we deliver all packets and leave
the decision to him.
This commit is contained in:
Stefan Schmidt 2016-03-31 22:30:29 +02:00
parent c6e776e714
commit dce8462939

View File

@ -126,15 +126,7 @@ static void receive_frame(void)
uint8_t *buf;
spi_begin();
#ifdef AT86RF231
if (!(spi_io(AT86RF230_BUF_READ) & RX_CRC_VALID)) {
spi_end();
return;
}
#endif
#ifdef AT86RF230
spi_io(AT86RF230_BUF_READ);
#endif
size = spi_recv();
if (!size || (size & 0x80)) {