aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2023-07-04 14:10:54 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2023-07-04 14:12:49 +0200
commit3406697bcfd077520a3eb97048fa784514bd8cdc (patch)
tree71f286c1ef7f4fed8ecd1228f656abd4e731950b
parentb96ceaa9e3ab36629e98f5f2b92e7ef94f7970b0 (diff)
rlcmac: tbf_dl: Fix typo in event name
-rw-r--r--include/osmocom/gprs/rlcmac/tbf_dl_fsm.h2
-rw-r--r--src/rlcmac/tbf_dl_ass_fsm.c2
-rw-r--r--src/rlcmac/tbf_dl_fsm.c6
3 files changed, 5 insertions, 5 deletions
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 @@ struct gprs_rlcmac_tbf_dl_fsm_ctx {
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 @@ static void st_compl_on_enter(struct osmo_fsm_inst *fi, uint32_t prev_state)
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 @@ static void st_new(struct osmo_fsm_inst *fi, uint32_t event, void *data)
{
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 void st_finished(struct osmo_fsm_inst *fi, uint32_t event, void *data)
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",