summaryrefslogtreecommitdiff
path: root/cesar/mac/ca/src/alloc.c
diff options
context:
space:
mode:
authorMilenko Jelisavcic2012-09-26 09:19:25 +0200
committerMilenko Jelisavcic2012-10-19 10:47:47 +0200
commit52d71eb998c3cc96091b8c0a21167d97a2f7cf06 (patch)
treed8110cdfa6e17963a31fc096495a6a7d9f54573e /cesar/mac/ca/src/alloc.c
parentcd31634b5d0fe6e2fb23ceb541e7c0bb1269ab00 (diff)
cesar/mac/ca: use predefined values for snid_max and nek_max
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);
}