UseNwkKey reports whether v uses a root NwkKey.
(v ttnpb.MACVersion)
| 87 | |
| 88 | // UseNwkKey reports whether v uses a root NwkKey. |
| 89 | func UseNwkKey(v ttnpb.MACVersion) bool { |
| 90 | return compareMACVersion(v, ttnpb.MACVersion_MAC_V1_1) >= 0 |
| 91 | } |
| 92 | |
| 93 | // UseLegacyMIC reports whether v uses legacy MIC computation algorithm. |
| 94 | func UseLegacyMIC(v ttnpb.MACVersion) bool { |
no test coverage detected