aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-07-30 18:20:51 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-07-30 18:20:51 +0200
commit9b6258059598e1220c0af447c476c205eba619ee (patch)
tree6eb7c1491b150c956d621dacbede010181f5de8f /openbsc/include
parenta5cae441e29b85a3f612168106ed61e769b253d7 (diff)
openbsc: Add new fields for the osmo-bts software
For the osmo-bts software we want to be able to slowly change the output power. The state is kept inside the trx structure.
Diffstat (limited to 'openbsc/include')
-rw-r--r--openbsc/include/openbsc/gsm_data_shared.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gsm_data_shared.h b/openbsc/include/openbsc/gsm_data_shared.h
index cc147a6e7..6d077fab0 100644
--- a/openbsc/include/openbsc/gsm_data_shared.h
+++ b/openbsc/include/openbsc/gsm_data_shared.h
@@ -372,11 +372,23 @@ struct gsm_bts_trx {
uint16_t arfcn;
int nominal_power; /* in dBm */
unsigned int max_power_red; /* in actual dB */
+
+#ifndef ROLE_BSC
+ struct {
+ unsigned int max_initial_power; /* in dBm */
+ uint8_t step_size; /* in dB */
+ int step_interval; /* in seconds */
+ struct osmo_timer_list step_timer;
+
+ int current_power; /* in dBm */
+ } pa;
+
unsigned int power_reduce; /* in dB */
struct {
void *l1h;
} role_bts;
+#endif
union {
struct {