From d919186ca4d841c65f9b496314486a23ed5d49dd Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 25 Jun 2010 18:00:16 +0200 Subject: [PATCH] [l1ctl] add dedicated mode release request --- include/l1a_l23_interface.h | 1 + src/target/firmware/layer1/l23_api.c | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/include/l1a_l23_interface.h b/include/l1a_l23_interface.h index ef03689..05c3a5d 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 de298cf..16f8969 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; -- 2.20.1