mirror of
https://github.com/espressif/openthread.git
synced 2026-10-12 18:57:37 +00:00
This commit updates `Mac::Frame` security level and key ID mode helpers. Specifically: - Refactors `KeyIdMode` enum values to use raw (unshifted) 2-bit values (`0, 1, 2, 3`), matching the structure of `SecurityLevel`. - Updates `GetSecurityLevel()` and `GetKeyIdMode()` to use strongly-typed `SecurityLevel` and `KeyIdMode` parameters. - Introduces `HasSecurityLevel()` and `HasKeyIdMode()` predicate methods to simplify security checks across `Mac`, `SubMac`, and `TrelLink`. - Adds `ReadSecurityLevel()` and `ReadKeyIdMode()` internal static helpers.