Change in osmo-bts[master]: rsl_rx_chan_act: Apply bitmask when parsing IE MS_POWER

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/.

pespin gerrit-no-reply at lists.osmocom.org
Tue Dec 3 18:28:14 UTC 2019


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


Change subject: rsl_rx_chan_act: Apply bitmask when parsing IE MS_POWER
......................................................................

rsl_rx_chan_act: Apply bitmask when parsing IE MS_POWER

Change-Id: I99c6a4d353f405582d5e4f9d12c01c25c7bb4dff
---
M src/common/rsl.c
1 file changed, 1 insertion(+), 1 deletion(-)



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

diff --git a/src/common/rsl.c b/src/common/rsl.c
index 09a9217..67eb622 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -1150,7 +1150,7 @@
 		lchan->bs_power = *TLVP_VAL(&tp, RSL_IE_BS_POWER);
 	/* 9.3.13 MS Power */
 	if (TLVP_PRES_LEN(&tp, RSL_IE_MS_POWER, 1)) {
-		lchan->ms_power_ctrl.max = *TLVP_VAL(&tp, RSL_IE_MS_POWER);
+		lchan->ms_power_ctrl.max = *TLVP_VAL(&tp, RSL_IE_MS_POWER) & 0x1F;
 		lchan->ms_power_ctrl.current = lchan->ms_power_ctrl.max;
 		lchan->ms_power_ctrl.fixed = false;
 	}

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I99c6a4d353f405582d5e4f9d12c01c25c7bb4dff
Gerrit-Change-Number: 16437
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191203/f354fe8e/attachment.htm>


More information about the gerrit-log mailing list