aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-02-05 22:25:03 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-02-05 22:50:54 +0100
commitd265532d0dc21e113b7c963b605c099683472096 (patch)
tree2ee5d8249b21cd20e25fc10ba6f6c78aa4e4daef
parenta5cae441e29b85a3f612168106ed61e769b253d7 (diff)
osmo-bts: Introduce new struct for a power loop in the BTS codesysmocom/osmo-bts/0.3.0-dora
Keep track if the power level has been "fixed" by the BSC, otherwise keep track of the currently ordered one. The ms_power is the initial value set by the BSC and continues to be used. Conflicts: openbsc/include/openbsc/gsm_data_shared.h
-rw-r--r--openbsc/include/openbsc/gsm_data_shared.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gsm_data_shared.h b/openbsc/include/openbsc/gsm_data_shared.h
index cc147a6e7..9f530ed3e 100644
--- a/openbsc/include/openbsc/gsm_data_shared.h
+++ b/openbsc/include/openbsc/gsm_data_shared.h
@@ -308,6 +308,12 @@ struct gsm_lchan {
int s;
/* Kind of the release/activation. E.g. RSL or PCU */
int rel_act_kind;
+
+ /* power handling */
+ struct {
+ uint8_t current;
+ uint8_t fixed;
+ } ms_power_ctrl;
#endif
};
@@ -373,6 +379,7 @@ struct gsm_bts_trx {
int nominal_power; /* in dBm */
unsigned int max_power_red; /* in actual dB */
unsigned int power_reduce; /* in dB */
+ int ms_power_control;
struct {
void *l1h;