trxcon/l1ctl.c: fix: handle ARFCN from L1CTL_DM_EST_REQ

A BSC may allocate a dedicated channel on any ARFCN, not necessary
on the same one where a mobile station has requested this channel.

For some reason, the ARFCN info of L1CTL_DM_EST_REQ message was
not handled by trxcon. Let's fix this.

Related: OS#3526
Change-Id: I16ed5c64236c159bfa39002b05094c1f6c171f6b
This commit is contained in:
Vadim Yanitskiy 2018-09-06 02:40:24 +07:00
parent fcfe20d3e0
commit 4736561b22
1 changed files with 10 additions and 0 deletions

View File

@ -554,6 +554,16 @@ static int l1ctl_rx_dm_est_req(struct l1ctl_link *l1l, struct msgb *msg)
goto exit;
}
/* Only if the current ARFCN differs */
if (l1l->trx->band_arfcn != band_arfcn) {
/* Update current ARFCN */
l1l->trx->band_arfcn = band_arfcn;
/* Tune transceiver to required ARFCN */
trx_if_cmd_rxtune(l1l->trx, band_arfcn);
trx_if_cmd_txtune(l1l->trx, band_arfcn);
}
/* Update TSC (Training Sequence Code) */
l1l->trx->tsc = est_req->tsc;