diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-08-20 11:48:30 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-09-01 12:01:25 +0200 |
commit | 88782ddb8f2cfd3f00ee58672e2ba448a58f589c (patch) | |
tree | dc56e5f864dbdfc93ade01aa60a43a3c812e5c7b /tests/tbf/TbfTest.cpp | |
parent | 31af0ad11b3486d8f989a43479c7aecdc7a9254a (diff) |
WIP tests and fixes TODOjerlbeck/wip/fix-pacch-alloc
TODO:
- check whether the semantics have not changed an put it away
Diffstat (limited to 'tests/tbf/TbfTest.cpp')
-rw-r--r-- | tests/tbf/TbfTest.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
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) { |