summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2023-07-17 14:33:07 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2023-07-24 14:00:47 +0200
commit0a6ad6bbf882cddc7a3b6634879baad3ca085c28 (patch)
treed605c99b5687c850c5f23dbf0ab03f81dbbcd8b9
parente9bfff30ac73dd13f9114904f44ea7c8d0c5c101 (diff)
layer23: modem: Submit L1CTL-CCCH_READY.ind
Signal RLC/MAC layer that the lower layers is in packet idle mode ready to use CCCH (such as packet-access-procedure). Change-Id: I05050e840a3b267b3b3a278588ee113b45bfbd4c
-rw-r--r--src/host/layer23/src/modem/grr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/host/layer23/src/modem/grr.c b/src/host/layer23/src/modem/grr.c
index cf946951..f0bbf893 100644
--- a/src/host/layer23/src/modem/grr.c
+++ b/src/host/layer23/src/modem/grr.c
@@ -516,6 +516,10 @@ static void grr_st_packet_not_ready_action(struct osmo_fsm_inst *fi,
static void grr_st_packet_idle_onenter(struct osmo_fsm_inst *fi, uint32_t prev_state)
{
struct osmocom_ms *ms = fi->priv;
+ struct osmo_gprs_rlcmac_prim *prim;
+
+ prim = osmo_gprs_rlcmac_prim_alloc_l1ctl_ccch_ready_ind();
+ osmo_gprs_rlcmac_prim_lower_up(prim);
modem_gprs_attach_if_needed(ms);
}