llsec: Removed TSCH_SECURITY_CONF_LEVEL and TSCH_SECURITY_LEVEL
This commit is contained in:
parent
431530bf6b
commit
4a88e9e537
4 changed files with 3 additions and 20 deletions
|
@ -46,23 +46,10 @@
|
|||
|
||||
/* To enable TSCH security:
|
||||
* - set LLSEC802154_CONF_ENABLED
|
||||
* - set TSCH_SECURITY_CONF_LEVEL
|
||||
* - set LLSEC802154_CONF_USES_EXPLICIT_KEYS
|
||||
* - unset LLSEC802154_CONF_USES_FRAME_COUNTER
|
||||
* */
|
||||
|
||||
#ifdef TSCH_SECURITY_CONF_LEVEL
|
||||
#define TSCH_SECURITY_LEVEL TSCH_SECURITY_CONF_LEVEL
|
||||
#else /* TSCH_SECURITY_CONF_LEVEL */
|
||||
#define TSCH_SECURITY_LEVEL FRAME802154_SECURITY_LEVEL_NONE
|
||||
#endif /* TSCH_SECURITY_CONF_LEVEL */
|
||||
|
||||
#if LLSEC802154_ENABLED && !TSCH_SECURITY_LEVEL
|
||||
#error LLSEC802154_ENABLED set but TSCH_SECURITY_LEVEL unset
|
||||
#endif /* LLSEC802154_ENABLED */
|
||||
#if !LLSEC802154_ENABLED && TSCH_SECURITY_LEVEL
|
||||
#error TSCH_SECURITY_LEVEL set but LLSEC802154_ENABLED unset
|
||||
#endif /* LLSEC802154_ENABLED */
|
||||
#if LLSEC802154_ENABLED && !LLSEC802154_USES_EXPLICIT_KEYS
|
||||
#error LLSEC802154_ENABLED set but LLSEC802154_USES_EXPLICIT_KEYS unset
|
||||
#endif /* LLSEC802154_ENABLED */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue