From d265532d0dc21e113b7c963b605c099683472096 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 5 Feb 2015 22:25:03 +0100 Subject: osmo-bts: Introduce new struct for a power loop in the BTS code 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 --- openbsc/include/openbsc/gsm_data_shared.h | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- cgit v1.2.3