From 2223d9f22dab516521ec7913ca8ddcdb1a73290f Mon Sep 17 00:00:00 2001 From: Steve Brown Date: Wed, 11 Oct 2017 13:06:24 -0600 Subject: [PATCH] mesh: Correct segmentation logic The decision whether to segment or not didn't consider the size of the MIC --- mesh/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh/net.c b/mesh/net.c index 2d75c4f7d..96e82fe1c 100644 --- a/mesh/net.c +++ b/mesh/net.c @@ -2098,7 +2098,7 @@ bool net_access_layer_send(uint8_t ttl, uint16_t src, uint32_t dst, if (!result) return false; - segN = SEG_MAX(len); + segN = SEG_MAX(len + sizeof(uint32_t)); /* Only one ACK required SAR message per destination at a time */ if (segN && IS_UNICAST(dst)) { -- 2.47.3