aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs_ms.h
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2023-04-17 14:25:51 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2023-04-17 20:46:41 +0200
commitf80cc5b9c81c6711a25e460ac5df793517ed5566 (patch)
tree52d69edd30dd5b73510eaae02c94b06f1e75dec7 /src/gprs_ms.h
parent14379ef901df1735a2d54fe3bb5bc353abe7ba51 (diff)
ms: Drop setting tlli during ms_alloc()
Inside osmo-pcu code, the code path is to always call ms_alloc with tlli=GSM_RESERVED_TMSI; a different value is only passed during unit tests. It makes no sense to have unit tests using differnet code paths than ther app itself, since in the app it always desired to go through the ms_set_tlli() and ms_confirm_tlli() which does more stuff. Hence, drop the tlli param in ms_alloc and change the unit tests to use the available APIs used by the application. Change-Id: I730ec911a43b0f4e78faee4eeffb3ca8601564f8
Diffstat (limited to 'src/gprs_ms.h')
-rw-r--r--src/gprs_ms.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gprs_ms.h b/src/gprs_ms.h
index 9b957ac0..d976235d 100644
--- a/src/gprs_ms.h
+++ b/src/gprs_ms.h
@@ -101,7 +101,7 @@ struct GprsMs {
struct nacc_fsm_ctx *nacc;
};
-struct GprsMs *ms_alloc(struct gprs_rlcmac_bts *bts, uint32_t tlli);
+struct GprsMs *ms_alloc(struct gprs_rlcmac_bts *bts);
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);