[meshcop-tlvs] fix kRevMask in VendorStackVersionTlv (#13547)

This commit fixes a bug in `VendorStackVersionTlv` where `kRevMask` was
incorrectly defined using `kBuildOffset` instead of `kRevOffset`,
causing the Revision field bitmask to be shifted incorrectly.
This commit is contained in:
Abtin Keshavarzian
2026-08-24 15:05:28 -07:00
committed by GitHub
parent 9523cd2808
commit 6dd72ce8e9
+1 -1
View File
@@ -898,7 +898,7 @@ private:
static constexpr uint8_t kBuildOffset = 4;
static constexpr uint16_t kBuildMask = 0xfff << kBuildOffset;
static constexpr uint8_t kRevOffset = 0;
static constexpr uint16_t kRevMask = 0xf << kBuildOffset;
static constexpr uint16_t kRevMask = 0xf << kRevOffset;
// For `mMinorMajor`
static constexpr uint8_t kMinorOffset = 4;