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 611f775b7b
commit cac625870c
1 changed files with 7 additions and 0 deletions

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;