[mac-frame] enhance comments regarding PAN ID compression behavior (#10914)

This commit adds an additional note next to the table from the
specification text regarding valid combinations of flags within an
encoded MAC header and the interpretation of the "PAN ID Compression"
flag.
This commit is contained in:
Abtin Keshavarzian
2024-11-13 08:06:52 -08:00
committed by GitHub
parent 79572ec965
commit 50785a0fc9
+6
View File
@@ -116,6 +116,12 @@ void TxFrame::Info::PrepareHeadersIn(TxFrame &aTxFrame) const
// | 13 | Extended | Short | Present | Not Present | 1 |
// | 14 | Short | Short | Present | Not Present | 1 |
// +----+--------------+--------------+--------------+--------------+--------------+
//
// This table shows the combination of flags allowed in an encoded MAC
// header. Regarding rows 9-14, when both Source and Destination
// Address fields are present and at least one uses a short address
// format, then if the source and destination PAN IDs are equal, PAN
// ID compression is set to 1.
if (mAddrs.mDestination.IsNone())
{