at86rf230: deliver with checksum
authorAlexander Aring <alex.aring@gmail.com>
Wed, 29 Oct 2014 20:34:43 +0000 (21:34 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 29 Oct 2014 22:07:46 +0000 (23:07 +0100)
This patch indicates that the at86rf230 driver deliver with checksum
instead drop the crc before delivering.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/at86rf230.c

index 98c94374aa3553df65bcf9f457aea996b67b28e2..9ad2d432ef4301e170104f0cefabd8e97781e637 100644 (file)
@@ -819,7 +819,7 @@ at86rf230_rx_read_frame_complete(void *context)
                len = IEEE802154_MTU;
        }
 
-       at86rf230_rx(lp, buf + 2, len - 2, buf[2 + len]);
+       at86rf230_rx(lp, buf + 2, len, buf[2 + len]);
 }
 
 static void
@@ -1414,7 +1414,7 @@ at86rf230_detect_device(struct at86rf230_local *lp)
        }
 
        lp->hw->extra_tx_headroom = 0;
-       lp->hw->flags = IEEE802154_HW_OMIT_CKSUM | IEEE802154_HW_AACK |
+       lp->hw->flags = IEEE802154_HW_TX_OMIT_CKSUM | IEEE802154_HW_AACK |
                        IEEE802154_HW_TXPOWER | IEEE802154_HW_ARET |
                        IEEE802154_HW_AFILT | IEEE802154_HW_PROMISCUOUS;