pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-bts/+/25467 )


Change subject: MS Power Control Loop: Fix sub vs full being passed to algo
......................................................................

MS Power Control Loop: Fix sub vs full being passed to algo

Fixes: c80abd109b9fc218de047a25ecf4d0de49ca2cdc
Change-Id: Ib66ac938e3e71409848927a2972f1f77b9bacde2
---
M src/common/l1sap.c
1 file changed, 4 insertions(+), 4 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/67/25467/1

diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index 40e818d..8aa80e7 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -1614,10 +1614,10 @@
                        /* If DTx is active on Downlink, use the '-SUB', 
otherwise '-FULL': */
                        if (lchan->tch.dtx.dl_active) {
                                ul_rssi = 
rxlev2dbm(lchan->meas.ul_res.sub.rx_lev);
-                               ul_ci_cb = lchan->meas.ul_ci_cb_full;
+                               ul_ci_cb = lchan->meas.ul_ci_cb_sub;
                        } else {
                                ul_rssi = 
rxlev2dbm(lchan->meas.ul_res.full.rx_lev);
-                               ul_ci_cb = lchan->meas.ul_ci_cb_sub;
+                               ul_ci_cb = lchan->meas.ul_ci_cb_full;
                        }
                        lchan_ms_pwr_ctrl(lchan, lchan->ms_power_ctrl.current, 
ul_rssi, ul_ci_cb);
                }
@@ -1659,10 +1659,10 @@
                /* If DTx is active on Downlink, use the '-SUB', otherwise 
'-FULL': */
                if (lchan->tch.dtx.dl_active) {
                        ul_rssi = rxlev2dbm(lchan->meas.ul_res.sub.rx_lev);
-                       ul_ci_cb = lchan->meas.ul_ci_cb_full;
+                       ul_ci_cb = lchan->meas.ul_ci_cb_sub;
                } else {
                        ul_rssi = rxlev2dbm(lchan->meas.ul_res.full.rx_lev);
-                       ul_ci_cb = lchan->meas.ul_ci_cb_sub;
+                       ul_ci_cb = lchan->meas.ul_ci_cb_full;
                }
                lchan_ms_pwr_ctrl(lchan, l1_hdr->ms_pwr, ul_rssi, ul_ci_cb);
                lchan_bs_pwr_ctrl(lchan, (const struct gsm48_hdr *) &data[5]);

--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/25467
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Ib66ac938e3e71409848927a2972f1f77b9bacde2
Gerrit-Change-Number: 25467
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-MessageType: newchange

Reply via email to