Change in osmo-bts[master]: rsl: parse temporary overpower value RSL CHAN ACT

dexter gerrit-no-reply at lists.osmocom.org
Mon Aug 30 16:03:58 UTC 2021


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


Change subject: rsl: parse temporary overpower value RSL CHAN ACT
......................................................................

rsl: parse temporary overpower value RSL CHAN ACT

The temporary overpower value that is to be used with FACCH and SACCH is
transfered using a propritary RSL IE (RSL_IE_OSMO_TOP_ACCH_CAP). The
parsed value is then stored in lchan->bs_acch_overpower_db so that it
can be used.

Change-Id: I426c2510865c4a986c68f2027cc676aaac0d8a4c
Related: SYS#5319
---
M src/common/rsl.c
M src/osmo-bts-trx/main.c
2 files changed, 18 insertions(+), 0 deletions(-)



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

diff --git a/src/common/rsl.c b/src/common/rsl.c
index e226167..4506db2 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -1519,6 +1519,22 @@
 	       sizeof(lchan->repeated_acch_capability));
 }
 
+/* Parse RSL_IE_OSMO_TOP_ACCH_CAP */
+static void parse_temporary_overpower_acch_capability(struct gsm_lchan *lchan, struct tlv_parsed *tp)
+{
+	struct abis_rsl_osmo_top_acch_cap *temporary_overpower;
+
+	lchan->bs_acch_overpower_db = 0;
+
+	if (!TLVP_PRESENT(tp, RSL_IE_OSMO_TOP_ACCH_CAP))
+		return;
+	if (TLVP_LEN(tp, RSL_IE_OSMO_REP_ACCH_CAP) != sizeof(*temporary_overpower))
+		return;
+
+	temporary_overpower = (struct abis_rsl_osmo_top_acch_cap *)TLVP_VAL(tp, RSL_IE_OSMO_TOP_ACCH_CAP);
+	lchan->bs_acch_overpower_db = temporary_overpower->top;
+}
+
 /* 8.4.1 CHANnel ACTIVation is received */
 static int rsl_rx_chan_activ(struct msgb *msg)
 {
@@ -1819,6 +1835,7 @@
 	lchan->rel_act_kind = LCHAN_REL_ACT_RSL;
 
 	parse_repeated_acch_capability(lchan, &tp);
+	parse_temporary_overpower_acch_capability(lchan, &tp);
 
 	/* actually activate the channel in the BTS */
 	rc = l1sap_chan_act(lchan->ts->trx, dch->chan_nr, &tp);
diff --git a/src/osmo-bts-trx/main.c b/src/osmo-bts-trx/main.c
index 9720b03..3b9200f 100644
--- a/src/osmo-bts-trx/main.c
+++ b/src/osmo-bts-trx/main.c
@@ -148,6 +148,7 @@
 	osmo_bts_set_feature(bts->features, BTS_FEAT_MULTI_TSC);
 	osmo_bts_set_feature(bts->features, BTS_FEAT_VAMOS);
 	osmo_bts_set_feature(bts->features, BTS_FEAT_BCCH_POWER_RED);
+	osmo_bts_set_feature(bts->features, BTS_FEAT_ACCH_TOP);
 
 	bts_internal_flag_set(bts, BTS_INTERNAL_FLAG_MEAS_PAYLOAD_COMB);
 

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I426c2510865c4a986c68f2027cc676aaac0d8a4c
Gerrit-Change-Number: 25285
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210830/d49e3d19/attachment.htm>


More information about the gerrit-log mailing list