mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-25 18:57:11 +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:
parent
c6e776e714
commit
dce8462939
@ -126,15 +126,7 @@ static void receive_frame(void)
|
|||||||
uint8_t *buf;
|
uint8_t *buf;
|
||||||
|
|
||||||
spi_begin();
|
spi_begin();
|
||||||
#ifdef AT86RF231
|
|
||||||
if (!(spi_io(AT86RF230_BUF_READ) & RX_CRC_VALID)) {
|
|
||||||
spi_end();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifdef AT86RF230
|
|
||||||
spi_io(AT86RF230_BUF_READ);
|
spi_io(AT86RF230_BUF_READ);
|
||||||
#endif
|
|
||||||
|
|
||||||
size = spi_recv();
|
size = spi_recv();
|
||||||
if (!size || (size & 0x80)) {
|
if (!size || (size & 0x80)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user