Change in osmo-bts[master]: [overpower] lchan_dump_full_vty(): print overpower state

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 17:04:01 UTC 2021


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


Change subject: [overpower] lchan_dump_full_vty(): print overpower state
......................................................................

[overpower] lchan_dump_full_vty(): print overpower state

Change-Id: I052f1d68b27b2dc7203835b4a93d40c94b0c8d82
Depends: Ia28293a12de0af71f55e701fb65c46e905dae217
Related: SYS#5319
---
M src/common/vty.c
1 file changed, 31 insertions(+), 0 deletions(-)



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

diff --git a/src/common/vty.c b/src/common/vty.c
index 124f7ef..97bd658 100644
--- a/src/common/vty.c
+++ b/src/common/vty.c
@@ -1759,6 +1759,34 @@
 	indent -= 2;
 }
 
+static void lchan_acch_top_state_dump(struct vty *vty, unsigned int indent,
+				      const struct gsm_lchan *lchan)
+{
+	if (lchan->top_acch_cap.overpower_db == 0)
+		return;
+
+	cfg_out(vty, "Temporary ACCH overpower:%s", VTY_NEWLINE);
+	indent += 2;
+
+	cfg_out(vty, "Overpower value: %u dB%s",
+		lchan->top_acch_cap.overpower_db, VTY_NEWLINE);
+
+	cfg_out(vty, "SACCH overpower: %sabled%s",
+		lchan->top_acch_cap.sacch_enable ? "en" : "dis",
+		VTY_NEWLINE);
+	cfg_out(vty, "FACCH overpower: %sabled%s",
+		lchan->top_acch_cap.facch_enable ? "en" : "dis",
+		VTY_NEWLINE);
+
+	if (lchan->top_acch_cap.rxqual == 0) {
+		cfg_out(vty, "RxQual threshold: disabled "
+			"(overpower is always on)%s", VTY_NEWLINE);
+	} else {
+		cfg_out(vty, "RxQual threshold: %u%s",
+			lchan->top_acch_cap.rxqual, VTY_NEWLINE);
+	}
+}
+
 static void lchan_dump_full_vty(struct vty *vty, const struct gsm_lchan *lchan)
 {
 	struct in_addr ia;
@@ -1841,7 +1869,10 @@
 	/* BS/MS Power Control state and parameters */
 	lchan_bs_power_ctrl_state_dump(vty, 2, lchan);
 	lchan_ms_power_ctrl_state_dump(vty, 2, lchan);
+
+	/* ACCH repetition / overpower state */
 	lchan_acch_rep_state_dump(vty, 2, lchan);
+	lchan_acch_top_state_dump(vty, 2, lchan);
 }
 
 static void lchan_dump_short_vty(struct vty *vty, const struct gsm_lchan *lchan)

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I052f1d68b27b2dc7203835b4a93d40c94b0c8d82
Gerrit-Change-Number: 25902
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/91b2b81d/attachment.htm>


More information about the gerrit-log mailing list