From dce846293982409b4027cd93e03b686750ab6195 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Thu, 31 Mar 2016 22:30:29 +0200 Subject: [PATCH] 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. --- atusb/fw/mac.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/atusb/fw/mac.c b/atusb/fw/mac.c index 01df184..016e9c5 100644 --- a/atusb/fw/mac.c +++ b/atusb/fw/mac.c @@ -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)) {