Use 802.15.4 frames v2 by default only for TSCH, else fall back to v1

This commit is contained in:
Simon Duquennoy 2017-10-11 17:26:08 +02:00
parent df01ebc219
commit 48997bb3ad

View File

@ -77,7 +77,13 @@
#ifdef FRAME802154_CONF_VERSION
#define FRAME802154_VERSION FRAME802154_CONF_VERSION
#else /* FRAME802154_CONF_VERSION */
/* Use frame v2 if TSCH is used, otherwise stick to v1 (more
frame-fileting-friendly on some platforms) */
#if MAC_CONF_WITH_TSCH
#define FRAME802154_VERSION FRAME802154_IEEE802154_2015
#else /* MAC_CONF_WITH_TSCH */
#define FRAME802154_VERSION FRAME802154_IEEE802154_2006
#endif /* MAC_CONF_WITH_TSCH */
#endif /* FRAME802154_CONF_VERSION */
#ifdef FRAME802154_CONF_SUPPR_SEQNO