aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-08-20 11:48:30 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-09-01 12:01:25 +0200
commit88782ddb8f2cfd3f00ee58672e2ba448a58f589c (patch)
treedc56e5f864dbdfc93ade01aa60a43a3c812e5c7b
parent31af0ad11b3486d8f989a43479c7aecdc7a9254a (diff)
WIP tests and fixes TODOjerlbeck/wip/fix-pacch-alloc
TODO: - check whether the semantics have not changed an put it away
-rw-r--r--tests/llc/LlcTest.cpp2
-rw-r--r--tests/tbf/TbfTest.cpp20
2 files changed, 21 insertions, 1 deletions
diff --git a/tests/llc/LlcTest.cpp b/tests/llc/LlcTest.cpp
index e972cf4..476f489 100644
--- a/tests/llc/LlcTest.cpp
+++ b/tests/llc/LlcTest.cpp
@@ -243,7 +243,7 @@ int main(int argc, char **argv)
osmo_init_logging(&debug_log_info);
log_set_use_color(osmo_stderr_target, 0);
log_set_print_filename(osmo_stderr_target, 0);
- log_set_log_level(osmo_stderr_target, LOGL_INFO);
+ log_set_log_level(osmo_stderr_target, LOGL_DEBUG);
vty_init(&pcu_vty_info);
pcu_vty_init(&debug_log_info);
diff --git a/tests/tbf/TbfTest.cpp b/tests/tbf/TbfTest.cpp
index 92679bc..eb8ef65 100644
--- a/tests/tbf/TbfTest.cpp
+++ b/tests/tbf/TbfTest.cpp
@@ -532,6 +532,26 @@ static void test_tbf_dl_llc_loss()
gprs_bssgp_destroy();
}
+#if 0
+static void send_ul_data(BTS *the_bts,
+ uint8_t ts_no, uint32_t tlli, uint32_t *fn,
+ const uint8_t *data, unsigned data_size)
+{
+ // TODO: Request USF
+
+ uint8_t data_msg[23] = {
+ 0x00, /* GPRS_RLCMAC_DATA_BLOCK << 6 */
+ uint8_t(0 | (tfi << 1)),
+ uint8_t(1), /* BSN:7, E:1 */
+ uint8_t(tlli >> 24), uint8_t(tlli >> 16),
+ uint8_t(tlli >> 8), uint8_t(tlli), /* TLLI */
+ };
+
+ pdch = &the_bts->bts_data()->trx[trx_no].pdch[ts_no];
+ pdch->rcv_block(&data_msg[0], sizeof(data_msg), *fn, &meas);
+}
+#endif
+
static gprs_rlcmac_ul_tbf *establish_ul_tbf_single_phase(BTS *the_bts,
uint8_t ts_no, uint32_t tlli, uint32_t *fn, uint16_t qta)
{