Skip to content
Commit 122a10fd authored by Florian Grandel's avatar Florian Grandel Committed by Carles Cufí
Browse files

drivers: ieee802154: cc13/26xx_subg: fix header len const



The length field in the header refers to the size of the MAC so it
shouldn't rely on constants describing PHY header length. While
currently both constants have the same value this will no longer be true
for enhanced PHYs and/or MAC frames as the number of FCS bytes may then
be four.

Also introduces an assertion that ensures that the given package buffer
does not exceed the TX buffer's length. An assertion is enough as the
package buffer is allocated at compile time.

Signed-off-by: default avatarFlorian Grandel <fgrandel@code-for-humans.de>
parent ea89a1f9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment