tbf: Use the control TS for Immediate Assignments

Currently the first TS is used, which can be different from the
control TS on downlink TBFs.

Use the control TS instead.

Sponsored-by: On-Waves ehf
This commit is contained in:
Jacob Erlbeck 2016-01-20 18:36:30 +01:00
parent 2ca86afdec
commit 56d06f3e1e
1 changed files with 2 additions and 2 deletions

View File

@ -525,7 +525,7 @@ int BTS::rcv_rach(uint8_t ra, uint32_t Fn, int16_t qta)
LOGP(DRLCMAC, LOGL_INFO, "%s TX: START Immediate "
"Assignment Uplink (AGCH)\n", tbf_name(tbf));
trx_no = tbf->trx->trx_no;
ts_no = tbf->first_ts;
ts_no = tbf->control_ts;
tfi = tbf->tfi();
usf = tbf->m_usf[ts_no];
tsc = tbf->tsc();
@ -585,7 +585,7 @@ void BTS::trigger_dl_ass(
void BTS::snd_dl_ass(gprs_rlcmac_tbf *tbf, uint8_t poll, const char *imsi)
{
int plen;
unsigned int ts = tbf->first_ts;
unsigned int ts = tbf->control_ts;
LOGP(DRLCMAC, LOGL_INFO, "TX: START %s Immediate Assignment Downlink (PCH)\n", tbf_name(tbf));
bitvec *immediate_assignment = bitvec_alloc(22); /* without plen */