aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs_ms.h
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2022-12-13 18:29:25 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2022-12-16 12:08:07 +0100
commit9935d0d21d6902999fcd4740e9c6b485f71d0e2f (patch)
treeb1fc62e85dd38bd06a380b9d758c688386af10a6 /src/gprs_ms.h
parent478c150a09b76b8dae47283cbf09b6e04c3a8e14 (diff)
Convert ms_first_common_ts to struct gprs_rlcmac_pdch
This way it contains full information about the TS, not only the TN. Change-Id: I19373939ec104d371e3e91422f018a8175cb0f89
Diffstat (limited to 'src/gprs_ms.h')
-rw-r--r--src/gprs_ms.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gprs_ms.h b/src/gprs_ms.h
index 92292e39..835ff186 100644
--- a/src/gprs_ms.h
+++ b/src/gprs_ms.h
@@ -64,8 +64,8 @@ struct GprsMs {
struct gprs_rlcmac_ul_tbf *ul_tbf;
struct gprs_rlcmac_dl_tbf *dl_tbf;
struct llist_head old_tbfs; /* list of gprs_rlcmac_tbf */
- /* First common timeslot number used both in UL and DL, 0..7 or TBF_TS_UNSET (-1): */
- int8_t first_common_ts;
+ /* First common timeslot used both in UL and DL, or NULL if not set: */
+ struct gprs_rlcmac_pdch *first_common_ts;
uint32_t tlli;
uint32_t new_ul_tlli;
@@ -103,8 +103,8 @@ struct GprsMs {
struct GprsMs *ms_alloc(struct gprs_rlcmac_bts *bts, uint32_t tlli);
-int8_t ms_first_common_ts(const struct GprsMs *ms);
-void ms_set_first_common_ts(struct GprsMs *ms, uint8_t first_common_ts);
+struct gprs_rlcmac_pdch *ms_first_common_ts(const struct GprsMs *ms);
+void ms_set_first_common_ts(struct GprsMs *ms, struct gprs_rlcmac_pdch *pdch);
void ms_set_reserved_slots(struct GprsMs *ms, struct gprs_rlcmac_trx *trx,
uint8_t ul_slots, uint8_t dl_slots);
struct GprsMs *ms_ref(struct GprsMs *ms);