This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
fixeria gerrit-no-reply at lists.osmocom.orgfixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/22192 )
Change subject: power_control: fix: properly initialize per-lchan BS power
......................................................................
power_control: fix: properly initialize per-lchan BS power
My assumption that lchan_reset() is called on CHANnel ACTIVation
was wrong - it's actually called on CHANnel RELease. Therefore
(re)setting per-lchan BS power value must be done in the other
function that is responsible for channel activation.
Change-Id: I056c448ce017458dc4a004374ddca86d44dc35b4
Related: SYS#4918
---
M src/osmo-bsc/lchan_fsm.c
1 file changed, 6 insertions(+), 6 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/92/22192/1
diff --git a/src/osmo-bsc/lchan_fsm.c b/src/osmo-bsc/lchan_fsm.c
index 5a42527..43916b4 100644
--- a/src/osmo-bsc/lchan_fsm.c
+++ b/src/osmo-bsc/lchan_fsm.c
@@ -411,12 +411,6 @@
.release.rr_cause = GSM48_RR_CAUSE_NORMAL,
};
-
- /* Default BS Power reduction value (in 2 dB steps) */
- if (bts->bs_power_ctrl.mode == GSM_PWR_CTRL_MODE_DYN_BTS)
- lchan->bs_power = bts->bs_power_ctrl.bs_power_max_db / 2;
- else
- lchan->bs_power = bts->bs_power_ctrl.bs_power_val_db / 2;
}
static void lchan_fsm_unused_onenter(struct osmo_fsm_inst *fi, uint32_t prev_state)
@@ -595,6 +589,12 @@
/* Upon last entering the UNUSED state, from lchan_reset():
* - bs_power is still zero, 0dB reduction, output power = Pn.
* - TA is still zero, to be determined by RACH. */
+
+ /* Default BS Power reduction value (in 2 dB steps) */
+ if (bts->bs_power_ctrl.mode == GSM_PWR_CTRL_MODE_DYN_BTS)
+ lchan->bs_power = bts->bs_power_ctrl.bs_power_max_db / 2;
+ else
+ lchan->bs_power = bts->bs_power_ctrl.bs_power_val_db / 2;
}
if (info->chan_mode == GSM48_CMODE_SPEECH_AMR) {
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/22192
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I056c448ce017458dc4a004374ddca86d44dc35b4
Gerrit-Change-Number: 22192
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210114/e55fe110/attachment.htm>