diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-10-29 21:34:37 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-10-29 23:07:45 +0100 |
commit | ec718f3db9b7968ca5dfb10c85c56ff27149df94 (patch) | |
tree | 55b01d80793110ba50facc1a6054130760aad150 /include/net/mac802154.h | |
parent | mac802154: rx: simplify crc receive handling (diff) | |
download | linux-ec718f3db9b7968ca5dfb10c85c56ff27149df94.tar.xz linux-ec718f3db9b7968ca5dfb10c85c56ff27149df94.zip |
mac802154: rx: add software checksum filtering check
This patch adds a new hardware flag which indicate that the transceiver
doesn't support check for bad checksum via hardware. Also add a handling of
this while receive.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/mac802154.h')
-rw-r--r-- | include/net/mac802154.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/mac802154.h b/include/net/mac802154.h index bc1d40c826e3..8f1de6844cb0 100644 --- a/include/net/mac802154.h +++ b/include/net/mac802154.h @@ -96,6 +96,8 @@ struct ieee802154_hw { #define IEEE802154_HW_PROMISCUOUS 0x00000200 /* Indicates that receiver omits FCS. */ #define IEEE802154_HW_RX_OMIT_CKSUM 0x00000400 +/* Indicates that receiver will not filter frames with bad checksum. */ +#define IEEE802154_HW_RX_DROP_BAD_CKSUM 0x00000800 /* Indicates that receiver omits FCS and xmitter will add FCS on it's own. */ #define IEEE802154_HW_OMIT_CKSUM (IEEE802154_HW_TX_OMIT_CKSUM | \ |