diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-02-05 22:25:03 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-02-05 22:25:03 +0100 |
commit | f6f86b0eec18da165db136b14bf2db87fde4b4ac (patch) | |
tree | 0307a6689d434f4524625f7f6127be23a83b9f5a | |
parent | 4e13a8f9f9d40e5d62c9cee7d76348ef8b558981 (diff) |
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.
-rw-r--r-- | openbsc/include/openbsc/gsm_data_shared.h | 7 |
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 ac54fb20a..0f1d8ec66 100644 --- a/openbsc/include/openbsc/gsm_data_shared.h +++ b/openbsc/include/openbsc/gsm_data_shared.h @@ -303,6 +303,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 }; @@ -370,6 +376,7 @@ struct gsm_bts_trx { #ifndef ROLE_BSC struct trx_power_params power_params; + int ms_power_control; struct { void *l1h; |