diff --git a/core/net/mac/rdc.h b/core/net/mac/rdc.h index 72717455b..8ac34e444 100644 --- a/core/net/mac/rdc.h +++ b/core/net/mac/rdc.h @@ -43,6 +43,7 @@ #include "contiki-conf.h" #include "net/mac/mac.h" +#include "net/llsec/llsec802154.h" #ifdef RDC_CONF_WITH_DUPLICATE_DETECTION #define RDC_WITH_DUPLICATE_DETECTION RDC_CONF_WITH_DUPLICATE_DETECTION @@ -51,7 +52,7 @@ frame because it has seen its sequence number already. Replay protection should be implemented at the LLSEC layer where the authenticity of frames is verified. */ -#define RDC_WITH_DUPLICATE_DETECTION !LLSEC802154_CONF_ENABLED +#define RDC_WITH_DUPLICATE_DETECTION !LLSEC802154_ENABLED #endif /* RDC_CONF_WITH_DUPLICATE_DETECTION */ /* List of packets to be sent by RDC layer */