diff --git a/core/net/mac/nullrdc.c b/core/net/mac/nullrdc.c index cb38f1c68..1a7483e4c 100644 --- a/core/net/mac/nullrdc.c +++ b/core/net/mac/nullrdc.c @@ -72,7 +72,12 @@ struct seqno { uint8_t seqno; }; -#define MAX_SEQNOS 8 +#ifdef NETSTACK_CONF_MAC_SEQNO_HISTORY +#define MAX_SEQNOS NETSTACK_CONF_MAC_SEQNO_HISTORY +#else /* NETSTACK_CONF_MAC_SEQNO_HISTORY */ +#define MAX_SEQNOS 16 +#endif /* NETSTACK_CONF_MAC_SEQNO_HISTORY */ + static struct seqno received_seqnos[MAX_SEQNOS]; #endif /* NULLRDC_802154_AUTOACK */