diff options
-rw-r--r-- | tests/llc/LlcTest.cpp | 2 | ||||
-rw-r--r-- | tests/tbf/TbfTest.cpp | 20 |
2 files changed, 21 insertions, 1 deletions
diff --git a/tests/llc/LlcTest.cpp b/tests/llc/LlcTest.cpp index e972cf4e..476f4898 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 92679bcf..eb8ef659 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) { |