mac802154: separate omit tx/rx flags
This patch splits the IEEE802154_HW_OMIT_CKSUM hardware flag into IEEE802154_HW_TX_OMIT_CKSUM and IEEE802154_HW_RX_OMIT_CKSUM. This is useful to deliver the received crc from the driver layer to the monitor interface. At the moment we can't do that without change the xmit handling. The received checksum should be visible in monitor mode only. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:

committed by
Marcel Holtmann

parent
92f45f5466
commit
90386a7e3b
@@ -255,7 +255,7 @@ void ieee802154_rx(struct ieee802154_hw *hw, struct sk_buff *skb)
|
||||
|
||||
WARN_ON_ONCE(softirq_count() == 0);
|
||||
|
||||
if (!(local->hw.flags & IEEE802154_HW_OMIT_CKSUM)) {
|
||||
if (!(local->hw.flags & IEEE802154_HW_RX_OMIT_CKSUM)) {
|
||||
u16 crc;
|
||||
|
||||
if (skb->len < 2) {
|
||||
|
Reference in New Issue
Block a user