diff options
-rw-r--r-- | net/ieee802154/6lowpan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index 6d42c17af96b..f651da60f161 100644 --- a/net/ieee802154/6lowpan.c +++ b/net/ieee802154/6lowpan.c | |||
@@ -1047,7 +1047,8 @@ static netdev_tx_t lowpan_xmit(struct sk_buff *skb, struct net_device *dev) | |||
1047 | goto error; | 1047 | goto error; |
1048 | } | 1048 | } |
1049 | 1049 | ||
1050 | if (skb->len <= IEEE802154_MTU) { | 1050 | /* Send directly if less than the MTU minus the 2 checksum bytes. */ |
1051 | if (skb->len <= IEEE802154_MTU - IEEE802154_MFR_SIZE) { | ||
1051 | err = dev_queue_xmit(skb); | 1052 | err = dev_queue_xmit(skb); |
1052 | goto out; | 1053 | goto out; |
1053 | } | 1054 | } |