Skip to content
Snippets Groups Projects
Unverified Commit 194d340a authored by Marian Buschsieweke's avatar Marian Buschsieweke
Browse files

net/sixlowpan: Fixed calculation of fragment size

Fragment size calculation previously failed for devices that are able to
transmit bigger layer 2 PDUs that 802.15.4 devices. This commit fixes the issue.
parent 8eb02b6c
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,7 @@ static uint16_t _tag; ...@@ -44,7 +44,7 @@ static uint16_t _tag;
static inline uint16_t _floor8(uint16_t length) static inline uint16_t _floor8(uint16_t length)
{ {
return length & 0xf8U; return length & 0xfff8U;
} }
static inline size_t _min(size_t a, size_t b) static inline size_t _min(size_t a, size_t b)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment