EncryptFOpts reports whether v requires MAC commands in FOpts to be encrypted.
(v ttnpb.MACVersion)
| 61 | |
| 62 | // EncryptFOpts reports whether v requires MAC commands in FOpts to be encrypted. |
| 63 | func EncryptFOpts(v ttnpb.MACVersion) bool { |
| 64 | return compareMACVersion(v, ttnpb.MACVersion_MAC_V1_1) >= 0 |
| 65 | } |
| 66 | |
| 67 | // HasMaxFCntGap reports whether v defines a MaxFCntGap. |
| 68 | func HasMaxFCntGap(v ttnpb.MACVersion) bool { |