Made the number of MAC sequence numbers to remember configurable

This commit is contained in:
Adam Dunkels 2011-02-21 14:11:17 +01:00
parent 5cb49e8b07
commit 24af4888bc

View File

@ -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 */