v51_le_ctrl: dispatch events to common control FSM

This commit is contained in:
Harald Welte 2022-09-11 20:45:07 +02:00
parent 70fda77610
commit 134cadaa6a
1 changed files with 5 additions and 1 deletions

View File

@ -325,10 +325,14 @@ static int v51_rcv_ctrl_common(struct v5x_instance *v5i, struct msgb *msg, const
switch (l3h->msg_type) {
case V51_CTRL_MSGT_COMMON_CTRL:
/* FIXME: send event to FSM */
/* send event to FSM */
osmo_fsm_inst_dispatch(v5i->ctrl_fi, V51_CTRL_CE_RX_COMMON_CONTROL, tp);
/* send ACK to AN */
return v51_tx(v5up->inst, v51_enc_ctrl_common_ack(v5i, cfi));
case V51_CTRL_MSGT_COMMON_CTRL_ACK:
/* send event to FSM */
osmo_fsm_inst_dispatch(v5i->ctrl_fi, V51_CTRL_CE_RX_COMMON_CONTROL_ACK, tp);
break;
default:
return -EINVAL;
}