diff --git a/drivers/rn2xx3/rn2xx3.c b/drivers/rn2xx3/rn2xx3.c index 644d1917d5..665284710f 100644 --- a/drivers/rn2xx3/rn2xx3.c +++ b/drivers/rn2xx3/rn2xx3.c @@ -256,7 +256,7 @@ int rn2xx3_mac_init(rn2xx3_t *dev) rn2xx3_mac_set_adr(dev, IS_ACTIVE(CONFIG_LORAMAC_DEFAULT_ADR)); rn2xx3_mac_set_retx(dev, CONFIG_LORAMAC_DEFAULT_RETX); rn2xx3_mac_set_linkchk_interval(dev, CONFIG_LORAMAC_DEFAULT_LINKCHK); - rn2xx3_mac_set_rx1_delay(dev, LORAMAC_DEFAULT_RX1_DELAY); + rn2xx3_mac_set_rx1_delay(dev, CONFIG_LORAMAC_DEFAULT_RX1_DELAY); rn2xx3_mac_set_ar(dev, IS_ACTIVE(CONFIG_RN2XX3_DEFAULT_AR)); rn2xx3_mac_set_rx2_dr(dev, LORAMAC_DEFAULT_RX2_DR); rn2xx3_mac_set_rx2_freq(dev, LORAMAC_DEFAULT_RX2_FREQ); diff --git a/sys/include/net/loramac.h b/sys/include/net/loramac.h index cc9fef7b06..8a4e0f71ec 100644 --- a/sys/include/net/loramac.h +++ b/sys/include/net/loramac.h @@ -282,14 +282,14 @@ extern "C" { /** * @brief Default first RX window delay (in ms) */ -#ifndef LORAMAC_DEFAULT_RX1_DELAY -#define LORAMAC_DEFAULT_RX1_DELAY (1000U) +#ifndef CONFIG_LORAMAC_DEFAULT_RX1_DELAY +#define CONFIG_LORAMAC_DEFAULT_RX1_DELAY (1000U) #endif /** * @brief Default second RX window delay (in ms) */ -#define LORAMAC_DEFAULT_RX2_DELAY (1000U + LORAMAC_DEFAULT_RX1_DELAY) +#define LORAMAC_DEFAULT_RX2_DELAY (1000U + CONFIG_LORAMAC_DEFAULT_RX1_DELAY) /** * @brief Default second RX window datarate index diff --git a/sys/net/gnrc/link_layer/lorawan/gnrc_lorawan.c b/sys/net/gnrc/link_layer/lorawan/gnrc_lorawan.c index bf7701a903..0aef6041be 100644 --- a/sys/net/gnrc/link_layer/lorawan/gnrc_lorawan.c +++ b/sys/net/gnrc/link_layer/lorawan/gnrc_lorawan.c @@ -46,7 +46,7 @@ static inline void gnrc_lorawan_mlme_reset(gnrc_lorawan_t *mac) { mac->mlme.activation = MLME_ACTIVATION_NONE; mac->mlme.pending_mlme_opts = 0; - mac->rx_delay = (LORAMAC_DEFAULT_RX1_DELAY / MS_PER_SEC); + mac->rx_delay = (CONFIG_LORAMAC_DEFAULT_RX1_DELAY / MS_PER_SEC); mac->mlme.nid = CONFIG_LORAMAC_DEFAULT_NETID; }