pespin has uploaded this change for review.

View Change

rlcmac: tbf_dl: Fix typo in event name

Change-Id: I089d8e5f0a3e8946cc78a0e9645a8d040aa7dddf
---
M include/osmocom/gprs/rlcmac/tbf_dl_fsm.h
M src/rlcmac/tbf_dl_ass_fsm.c
M src/rlcmac/tbf_dl_fsm.c
3 files changed, 14 insertions(+), 5 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/libosmo-gprs refs/changes/50/33550/1
diff --git a/include/osmocom/gprs/rlcmac/tbf_dl_fsm.h b/include/osmocom/gprs/rlcmac/tbf_dl_fsm.h
index 5458b68..d1527fc 100644
--- a/include/osmocom/gprs/rlcmac/tbf_dl_fsm.h
+++ b/include/osmocom/gprs/rlcmac/tbf_dl_fsm.h
@@ -23,7 +23,7 @@

enum tbf_dl_fsm_event {
GPRS_RLCMAC_TBF_DL_EV_LAST_DL_DATA_RECVD,
- GPRS_RLCMAC_TBF_UL_EV_DL_ASS_COMPL,
+ GPRS_RLCMAC_TBF_DL_EV_DL_ASS_COMPL,
};

int gprs_rlcmac_tbf_dl_fsm_init(void);
diff --git a/src/rlcmac/tbf_dl_ass_fsm.c b/src/rlcmac/tbf_dl_ass_fsm.c
index 4bb6ae9..40bd17c 100644
--- a/src/rlcmac/tbf_dl_ass_fsm.c
+++ b/src/rlcmac/tbf_dl_ass_fsm.c
@@ -217,7 +217,7 @@
ctx->gre->dl_tbf = dl_tbf;

/* Inform the main TBF state about the assignment completed: */
- osmo_fsm_inst_dispatch(dl_tbf->state_fsm.fi, GPRS_RLCMAC_TBF_UL_EV_DL_ASS_COMPL, NULL);
+ osmo_fsm_inst_dispatch(dl_tbf->state_fsm.fi, GPRS_RLCMAC_TBF_DL_EV_DL_ASS_COMPL, NULL);
/* Go back to IDLE state. */
tbf_dl_ass_fsm_state_chg(fi, GPRS_RLCMAC_TBF_DL_ASS_ST_IDLE);
}
diff --git a/src/rlcmac/tbf_dl_fsm.c b/src/rlcmac/tbf_dl_fsm.c
index 3ceea97..606b985 100644
--- a/src/rlcmac/tbf_dl_fsm.c
+++ b/src/rlcmac/tbf_dl_fsm.c
@@ -31,7 +31,7 @@

static const struct value_string tbf_dl_fsm_event_names[] = {
{ GPRS_RLCMAC_TBF_DL_EV_LAST_DL_DATA_RECVD, "LAST_DL_DATA_RECVD" },
- { GPRS_RLCMAC_TBF_UL_EV_DL_ASS_COMPL, "DL_ASS_COMPL" },
+ { GPRS_RLCMAC_TBF_DL_EV_DL_ASS_COMPL, "DL_ASS_COMPL" },
{ 0, NULL }
};

@@ -54,7 +54,7 @@
{
struct gprs_rlcmac_tbf_dl_fsm_ctx *ctx = (struct gprs_rlcmac_tbf_dl_fsm_ctx *)fi->priv;
switch (event) {
- case GPRS_RLCMAC_TBF_UL_EV_DL_ASS_COMPL:
+ case GPRS_RLCMAC_TBF_DL_EV_DL_ASS_COMPL:
/* Configure DL TBF on the lower MAC side: */
gprs_rlcmac_dl_tbf_configure_l1ctl(ctx->dl_tbf);
tbf_dl_fsm_state_chg(fi, GPRS_RLCMAC_TBF_DL_ST_FLOW);
@@ -91,7 +91,7 @@
static struct osmo_fsm_state tbf_dl_fsm_states[] = {
[GPRS_RLCMAC_TBF_DL_ST_NEW] = {
.in_event_mask =
- X(GPRS_RLCMAC_TBF_UL_EV_DL_ASS_COMPL),
+ X(GPRS_RLCMAC_TBF_DL_EV_DL_ASS_COMPL),
.out_state_mask =
X(GPRS_RLCMAC_TBF_DL_ST_FLOW),
.name = "NEW",

To view, visit change 33550. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: libosmo-gprs
Gerrit-Branch: master
Gerrit-Change-Id: I089d8e5f0a3e8946cc78a0e9645a8d040aa7dddf
Gerrit-Change-Number: 33550
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>
Gerrit-MessageType: newchange