<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18834">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmo-bts-trx: include BS Power reduction in Downlink bursts<br><br>For those osmo-bts-trx specific logical channels with a generic<br>logical channel state associated, let's finally apply the BS Power<br>reduction (attenuation) value that was received from the BSC.<br><br>Change-Id: Ib692ff1a75a80fceccb481839c8514d4b2a547b9<br>---<br>M src/common/scheduler.c<br>M src/osmo-bts-trx/scheduler_trx.c<br>2 files changed, 5 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/34/18834/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/common/scheduler.c b/src/common/scheduler.c</span><br><span>index b79c83d..ac9085d 100644</span><br><span>--- a/src/common/scheduler.c</span><br><span>+++ b/src/common/scheduler.c</span><br><span>@@ -1190,6 +1190,10 @@</span><br><span>  if (func(l1t, chan, bid, br) != 0)</span><br><span>           goto no_data;</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+     /* BS Power reduction (2 dB steps) per logical channel */</span><br><span style="color: hsl(120, 100%, 40%);">+     if (l1cs->lchan != NULL)</span><br><span style="color: hsl(120, 100%, 40%);">+           br->att = l1cs->lchan->bs_power * 2;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>      /* encrypt */</span><br><span>        if (br->burst_len && l1cs->dl_encr_algo) {</span><br><span>             ubit_t ks[114];</span><br><span>diff --git a/src/osmo-bts-trx/scheduler_trx.c b/src/osmo-bts-trx/scheduler_trx.c</span><br><span>index 6996593..d4a38b6 100644</span><br><span>--- a/src/osmo-bts-trx/scheduler_trx.c</span><br><span>+++ b/src/osmo-bts-trx/scheduler_trx.c</span><br><span>@@ -86,10 +86,9 @@</span><br><span>                    _sched_rts(l1t, tn,</span><br><span>                          (fn + plink->u.osmotrx.rts_advance) % GSM_HYPERFRAME);</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-                   /* TODO: Tx attenuation is always 0? */</span><br><span style="color: hsl(120, 100%, 40%);">+                       /* All other parameters to be set by _sched_dl_burst() */</span><br><span>                    br = (struct trx_dl_burst_req) {</span><br><span>                             .fn = fn, .tn = tn,</span><br><span style="color: hsl(0, 100%, 40%);">-                             .att = 0,</span><br><span>                    };</span><br><span> </span><br><span>                       /* get burst for FN */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/18834">change 18834</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-bts/+/18834"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bts </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ib692ff1a75a80fceccb481839c8514d4b2a547b9 </div>
<div style="display:none"> Gerrit-Change-Number: 18834 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>