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.
diff --git a/openbsc/include/openbsc/gsm_data_shared.h b/openbsc/include/openbsc/gsm_data_shared.h
index ac54fb2..0f1d8ec 100644
--- a/openbsc/include/openbsc/gsm_data_shared.h
+++ b/openbsc/include/openbsc/gsm_data_shared.h
@@ -303,6 +303,12 @@
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 @@
#ifndef ROLE_BSC
struct trx_power_params power_params;
+ int ms_power_control;
struct {
void *l1h;