Change in osmo-bts[master]: [overpower] rsl: store full content of RSL_IE_OSMO_TEMP_OVP_ACCH_CAP

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.org
Fri Oct 22 01:00:35 UTC 2021


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


Change subject: [overpower] rsl: store full content of RSL_IE_OSMO_TEMP_OVP_ACCH_CAP
......................................................................

[overpower] rsl: store full content of RSL_IE_OSMO_TEMP_OVP_ACCH_CAP

Change-Id: I370c8f95fb64eceb60a9dc2eae1412f8a0df0f4e
Related: SYS#5319
---
M include/osmo-bts/lchan.h
M src/common/rsl.c
M src/common/scheduler.c
3 files changed, 8 insertions(+), 9 deletions(-)



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

diff --git a/include/osmo-bts/lchan.h b/include/osmo-bts/lchan.h
index a7e9004..b463b24 100644
--- a/include/osmo-bts/lchan.h
+++ b/include/osmo-bts/lchan.h
@@ -293,8 +293,8 @@
 	struct gsm_power_ctrl_params ms_dpc_params;
 	struct gsm_power_ctrl_params bs_dpc_params;
 
-	/* Temporary Overpower for SACCH/FACCH */
-	uint8_t bs_acch_overpower_db;
+	/* Temporary ACCH overpower capabilities */
+	struct abis_rsl_osmo_temp_ovp_acch_cap top_acch_cap;
 
 	struct msgb *pending_rel_ind_msg;
 
diff --git a/src/common/rsl.c b/src/common/rsl.c
index a0afc30..7fc4f3e 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -1592,18 +1592,17 @@
 static int parse_temporary_overpower_acch_capability(struct gsm_lchan *lchan,
 						     const struct tlv_parsed *tp)
 {
-	struct abis_rsl_osmo_temp_ovp_acch_cap *top;
+	memset(&lchan->top_acch_cap, 0, sizeof(lchan->top_acch_cap));
 
-	lchan->bs_acch_overpower_db = 0;
-
-	if (!TLVP_PRES_LEN(tp, RSL_IE_OSMO_TEMP_OVP_ACCH_CAP, sizeof(*top)))
+	if (!TLVP_PRES_LEN(tp, RSL_IE_OSMO_TEMP_OVP_ACCH_CAP, sizeof(lchan->top_acch_cap)))
 		return 0;
 
 	if (!osmo_bts_has_feature(lchan->ts->trx->bts->features, BTS_FEAT_ACCH_TEMP_OVP))
 		return -RSL_ERR_OPT_IE_ERROR;
 
-	top = (struct abis_rsl_osmo_temp_ovp_acch_cap *)TLVP_VAL(tp, RSL_IE_OSMO_TEMP_OVP_ACCH_CAP);
-	lchan->bs_acch_overpower_db = top->overpower_db;
+	memcpy(&lchan->top_acch_cap,
+	       TLVP_VAL(tp, RSL_IE_OSMO_TEMP_OVP_ACCH_CAP),
+	       sizeof(lchan->top_acch_cap));
 
 	return 0;
 }
diff --git a/src/common/scheduler.c b/src/common/scheduler.c
index 2a729e4..463a5b8 100644
--- a/src/common/scheduler.c
+++ b/src/common/scheduler.c
@@ -1299,7 +1299,7 @@
 				struct trx_dl_burst_req *br)
 {
 	const struct trx_chan_desc *desc = &trx_chan_desc[br->chan];
-	const uint8_t overpower_db = lchan->bs_acch_overpower_db;
+	const uint8_t overpower_db = lchan->top_acch_cap.overpower_db;
 
 	/* Current BS power reduction value in dB */
 	br->att = lchan->bs_power_ctrl.current;

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I370c8f95fb64eceb60a9dc2eae1412f8a0df0f4e
Gerrit-Change-Number: 25897
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/20211022/4d3a4d6d/attachment.htm>


More information about the gerrit-log mailing list