From 906a9b5e71aa5d3d814d57fbcc7190faa06ab200 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Mon, 15 Jun 2020 20:51:21 +0700 Subject: osmo-bts-trx: include BS Power reduction in Downlink bursts For those osmo-bts-trx specific logical channels with a generic logical channel state associated, let's finally apply the BS Power reduction (attenuation) value that was received from the BSC. Change-Id: Ib692ff1a75a80fceccb481839c8514d4b2a547b9 --- src/common/scheduler.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/common') diff --git a/src/common/scheduler.c b/src/common/scheduler.c index b79c83db..ac9085de 100644 --- a/src/common/scheduler.c +++ b/src/common/scheduler.c @@ -1190,6 +1190,10 @@ void _sched_dl_burst(struct l1sched_trx *l1t, struct trx_dl_burst_req *br) if (func(l1t, chan, bid, br) != 0) goto no_data; + /* BS Power reduction (2 dB steps) per logical channel */ + if (l1cs->lchan != NULL) + br->att = l1cs->lchan->bs_power * 2; + /* encrypt */ if (br->burst_len && l1cs->dl_encr_algo) { ubit_t ks[114]; -- cgit v1.2.3