summaryrefslogtreecommitdiff
path: root/cesar/mac/ca/src/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/mac/ca/src/alloc.c')
-rw-r--r--cesar/mac/ca/src/alloc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cesar/mac/ca/src/alloc.c b/cesar/mac/ca/src/alloc.c
index 9c10a403c5..b7c40a39b1 100644
--- a/cesar/mac/ca/src/alloc.c
+++ b/cesar/mac/ca/src/alloc.c
@@ -18,6 +18,7 @@
#include "hal/phy/phy.h"
#include "mac/common/timings.h"
+#include "common/defs/homeplugAV.h"
ca_beacon_period_t *
ca_alloc_find_beacon_period (ca_t *ctx, u32 date)
@@ -163,8 +164,8 @@ ca_alloc_update_beacon_periods (ca_t *ctx,
ca_schedule_t *sched =
&ctx->schedules[beacon_periods[i].schedule_index];
dbg_assert (sched->coexistence_mode < MAC_COEXISTENCE_NB
- && sched->snid < 16
- && sched->nek_switch < 2
+ && sched->snid < HPAV_SNID_NB
+ && sched->nek_switch < MAC_NEK_INDEX_NB
&& sched->allocations_nb > 0
&& sched->allocations[0].end_offset_tck > 0);
}