summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2023-05-31 18:32:49 +0700
committerfixeria <vyanitskiy@sysmocom.de>2023-06-07 15:56:45 +0000
commitb1e3742a94f5db2f396f4af1c04cf008e052e58e (patch)
tree246021d923081114a0c425d41b29ce3887014391
parenta49696bc981ffe5acda576f6a076572255c38b54 (diff)
modem: do not send RTS.ind if we got PTCCH/D
-rw-r--r--src/host/layer23/src/modem/rlcmac.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/host/layer23/src/modem/rlcmac.c b/src/host/layer23/src/modem/rlcmac.c
index 161effd0..fcd2b2ea 100644
--- a/src/host/layer23/src/modem/rlcmac.c
+++ b/src/host/layer23/src/modem/rlcmac.c
@@ -195,6 +195,10 @@ static int l1ctl_dl_block_cb(struct osmocom_ms *ms, struct msgb *msg)
};
osmo_gprs_rlcmac_prim_lower_up(prim);
+ /* Do not send RTS.ind if we got PTCCH/D */
+ if (fn % 104 == 12)
+ return 0;
+
/* Every fn % 13 == 12 we have either a PTCCH or an IDLE slot, thus
* every fn % 13 == 8 we add 5 frames, or 4 frames othrwise. The
* resulting value is first fn of the next block. */