diff --git a/drivers/include/at86rf2xx.h b/drivers/include/at86rf2xx.h index aeaecad4f3..36e0c899ee 100644 --- a/drivers/include/at86rf2xx.h +++ b/drivers/include/at86rf2xx.h @@ -58,7 +58,7 @@ extern "C" { #define AT86RF2XX_MAX_CHANNEL (IEEE802154_CHANNEL_MAX_SUBGHZ) #define AT86RF2XX_DEFAULT_CHANNEL (IEEE802154_DEFAULT_SUBGHZ_CHANNEL) /* Page 2 is O-QPSK 100 kbit/s (channel 0), or 250 kbit/s (channels 1-10) */ -#define AT86RF2XX_DEFAULT_PAGE (2) +#define AT86RF2XX_DEFAULT_PAGE (IEEE802154_DEFAULT_SUBGHZ_PAGE) #else #define AT86RF2XX_MIN_CHANNEL (IEEE802154_CHANNEL_MIN) #define AT86RF2XX_MAX_CHANNEL (IEEE802154_CHANNEL_MAX) diff --git a/sys/include/net/ieee802154.h b/sys/include/net/ieee802154.h index bd3f539156..5d833b8498 100644 --- a/sys/include/net/ieee802154.h +++ b/sys/include/net/ieee802154.h @@ -124,6 +124,10 @@ extern const uint8_t ieee802154_addr_bcast[IEEE802154_ADDR_BCAST_LEN]; #define IEEE802154_DEFAULT_CHANNEL (26U) #endif +#ifndef IEEE802154_DEFAULT_SUBGHZ_PAGE +#define IEEE802154_DEFAULT_SUBGHZ_PAGE (2U) +#endif + #ifndef IEEE802154_DEFAULT_PANID #define IEEE802154_DEFAULT_PANID (0x0023U) #endif