aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-08-21 18:00:54 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-08-21 19:02:18 +0200
commit076f5c794d4af02914cd633671176437367b5af8 (patch)
treed18af5497748339a9009ad0ef0bd52362df5c6b7 /src
parent537b149828be91189f99acc8d9c655b8a75b95ee (diff)
tbf/test: Fix existing tests
This commit fixes several issues: - Set MS class in request - Set IMSI in establish_ul_tbf_two_phase - Fake assigment acknowledgement in establish_ul_tbf_two_phase - Fix TFI bit offset to 1 (was 2) Sponsored-by: On-Waves ehf
Diffstat (limited to 'src')
-rw-r--r--src/bts.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bts.h b/src/bts.h
index ec17ef2..e0f09b9 100644
--- a/src/bts.h
+++ b/src/bts.h
@@ -264,6 +264,7 @@ public:
GprsMsStorage &ms_store();
GprsMs *ms_by_tlli(uint32_t tlli, uint32_t old_tlli = 0);
+ GprsMs *ms_by_imsi(const char *imsi);
GprsMs *ms_alloc(uint8_t ms_class);
/*
@@ -333,6 +334,11 @@ inline GprsMs *BTS::ms_by_tlli(uint32_t tlli, uint32_t old_tlli)
return ms_store().get_ms(tlli, old_tlli);
}
+inline GprsMs *BTS::ms_by_imsi(const char *imsi)
+{
+ return ms_store().get_ms(0, 0, imsi);
+}
+
inline BTS *gprs_rlcmac_pdch::bts() const
{
return trx->bts;