diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-06-15 20:51:21 +0700 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-06-15 21:06:52 +0700 |
commit | 906a9b5e71aa5d3d814d57fbcc7190faa06ab200 (patch) | |
tree | 769ea7bbc6733568df21311055fdc2aafb20a8bf /src/common/scheduler.c | |
parent | b828b32f31366e7b306980cb568622d36fbc80fb (diff) |
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
Diffstat (limited to 'src/common/scheduler.c')
-rw-r--r-- | src/common/scheduler.c | 4 |
1 files changed, 4 insertions, 0 deletions
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]; |