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.
This commit is contained in:
Holger Hans Peter Freyther
2015-02-05 22:25:03 +01:00
parent 4e13a8f9f9
commit f6f86b0eec

View File

@@ -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;