Change in osmo-bts[master]: bts: generalize a struct for UL/DL power control parameters

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
Tue Dec 1 17:41:31 UTC 2020


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


Change subject: bts: generalize a struct for UL/DL power control parameters
......................................................................

bts: generalize a struct for UL/DL power control parameters

Change-Id: I504de17fb3c1300c2a3faa6d7d3a9eb1b74b214b
Related: SYS#4918
---
M include/osmo-bts/bts.h
1 file changed, 19 insertions(+), 16 deletions(-)



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

diff --git a/include/osmo-bts/bts.h b/include/osmo-bts/bts.h
index 37d4c7d..129764e 100644
--- a/include/osmo-bts/bts.h
+++ b/include/osmo-bts/bts.h
@@ -101,6 +101,24 @@
 	BTS_PF_ALGO_EWMA,
 };
 
+/* UL/DL power control parameters */
+struct bts_power_ctrl_params {
+	/* Target value to strive to */
+	int target;
+	/* Tolerated deviation from target */
+	int hysteresis;
+	/* RxLev filtering algorithm */
+	enum bts_pf_algo pf_algo;
+	/* (Optional) filtering parameters */
+	union {
+		/* Exponentially Weighted Moving Average */
+		struct {
+			/* Smoothing factor: higher the value - less smoothing */
+			uint8_t alpha; /* 1 .. 99 (in %) */
+		} ewma;
+	} pf;
+};
+
 /* BTS Site Manager */
 struct gsm_bts_sm {
 	struct gsm_abis_mo mo;
@@ -300,22 +318,7 @@
 	} radio_link_timeout;
 
 	/* Uplink power control */
-	struct {
-		/* Target value to strive to */
-		int target;
-		/* Tolerated deviation from target */
-		int hysteresis;
-		/* UL RSSI filtering algorithm */
-		enum bts_pf_algo pf_algo;
-		/* (Optional) filtering parameters */
-		union {
-			/* Exponentially Weighted Moving Average */
-			struct {
-				/* Smoothing factor: higher the value - less smoothing */
-				uint8_t alpha; /* 1 .. 99 (in %) */
-			} ewma;
-		} pf;
-	} ul_power_ctrl;
+	struct bts_power_ctrl_params ul_power_ctrl;
 
 	/* used by the sysmoBTS to adjust band */
 	uint8_t auto_band;

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I504de17fb3c1300c2a3faa6d7d3a9eb1b74b214b
Gerrit-Change-Number: 21436
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/20201201/7b2b2e3f/attachment.htm>


More information about the gerrit-log mailing list