OSDN Git Service

mac802154: rx: simplify crc receive handling
authorAlexander Aring <alex.aring@gmail.com>
Wed, 29 Oct 2014 20:34:36 +0000 (21:34 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 29 Oct 2014 22:07:45 +0000 (23:07 +0100)
commitb7889497d306df0be52300b3060ebc12b4194f9a
treeee2f0a995b2e5579f63960a47f2f519dbffa326e
parent08c511a7331cf6edb28895d7f46c3039180b30cb
mac802154: rx: simplify crc receive handling

This patch change the actual crc handling while receive. Currently the
IEEE802154_HW_RX_OMIT_CKSUM flag is used to filter a frame with a bad crc.
This patch changes the behaviour of IEEE802154_HW_RX_OMIT_CKSUM to add a
crc while receiving for the monitor interface. After monitor receiving
we remove the crc for frame parsing. This affect the driver layer
because all drivers sets IEEE802154_HW_RX_OMIT_CKSUM and deliver without
checksum.

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