summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/l1a_l23_interface.h1
-rw-r--r--src/target/firmware/layer1/l23_api.c12
2 files changed, 13 insertions, 0 deletions
diff --git a/include/l1a_l23_interface.h b/include/l1a_l23_interface.h
index ef03689f..05c3a5d5 100644
--- a/include/l1a_l23_interface.h
+++ b/include/l1a_l23_interface.h
@@ -41,6 +41,7 @@
#define L1CTL_DATA_CONF 16
#define L1CTL_CCCH_MODE_REQ 17
#define L1CTL_CCCH_MODE_CONF 18
+#define L1CTL_DM_REL_REQ 19
enum ccch_mode {
CCCH_MODE_NONE = 0,
diff --git a/src/target/firmware/layer1/l23_api.c b/src/target/firmware/layer1/l23_api.c
index de298cf6..16f89694 100644
--- a/src/target/firmware/layer1/l23_api.c
+++ b/src/target/firmware/layer1/l23_api.c
@@ -202,6 +202,15 @@ static void l1ctl_rx_dm_est_req(struct msgb *msg)
l1a_mftask_set(1 << chan_nr2mf_task(ul->chan_nr));
}
+/* receive a L1CTL_DM_REL_REQ from L23 */
+static void l1ctl_rx_dm_rel_req(struct msgb *msg)
+{
+ struct l1ctl_hdr *l1h = (struct l1ctl_hdr *) msg->data;
+ struct l1ctl_info_ul *ul = (struct l1ctl_info_ul *) l1h->data;
+
+ l1a_mftask_set(0);
+}
+
/* receive a L1CTL_RACH_REQ from L23 */
static void l1ctl_rx_rach_req(struct msgb *msg)
{
@@ -354,6 +363,9 @@ static void l1a_l23_rx_cb(uint8_t dlci, struct msgb *msg)
case L1CTL_DM_EST_REQ:
l1ctl_rx_dm_est_req(msg);
break;
+ case L1CTL_DM_REL_REQ:
+ l1ctl_rx_dm_rel_req(msg);
+ break;
case L1CTL_RACH_REQ:
l1ctl_rx_rach_req(msg);
break;