summaryrefslogtreecommitdiff
path: root/cesar/cp/beacon/src/beacon.c
diff options
context:
space:
mode:
authorNélio Laranjeiro2011-04-28 17:35:39 +0200
committerNélio Laranjeiro2011-04-28 17:35:39 +0200
commit321c1c668c7bdfcfab8acfa25c63ce1af4bd070c (patch)
treeb93c61836c031bfacec2b6f1fea1dc078f0443a8 /cesar/cp/beacon/src/beacon.c
parent96d10407a78495e15382d0f4ec5dda52e8b63565 (diff)
cesar/cp/beacon: add bsu context after a bad rebase, refs #2400
Diffstat (limited to 'cesar/cp/beacon/src/beacon.c')
-rw-r--r--cesar/cp/beacon/src/beacon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cesar/cp/beacon/src/beacon.c b/cesar/cp/beacon/src/beacon.c
index ca7b2ea3b1..64013cae4c 100644
--- a/cesar/cp/beacon/src/beacon.c
+++ b/cesar/cp/beacon/src/beacon.c
@@ -518,12 +518,12 @@ cp_beacon_countdowns (cp_t *ctx)
{
/* The countdown elapsed and we check the current nek index */
if (ctx->mac_config->nek[
- bsu_nek_index_current (INVALID_PTR)].eks == MAC_EKS_CLEAR)
+ bsu_nek_index_current (ctx->bsu)].eks == MAC_EKS_CLEAR)
/* Countdown elapsed and no NEK is available */
cp_fsm_trigger_new_event (ctx, bare, to_leave);
ctx->beacon.eks.kbc = BSU_BEACON_EKS_KBC_NB;
- ctx->mac_config->nek[bsu_nek_index_next (INVALID_PTR)].eks =
+ ctx->mac_config->nek[bsu_nek_index_next (ctx->bsu)].eks =
MAC_EKS_CLEAR;
}
}
@@ -685,7 +685,7 @@ cp_beacon_process_beacon_central (
if (beacon->bmis.eks.present)
{
if ((beacon->bmis.eks.kbc == BSU_BEACON_EKS_KBC_NEK) &&
- (ctx->mac_config->nek[bsu_nek_index_next (INVALID_PTR)].eks !=
+ (ctx->mac_config->nek[bsu_nek_index_next (ctx->bsu)].eks !=
beacon->bmis.eks.new_eks))
{
/* POST the FSM event. */