aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2015-12-13 11:11:51 +0100
committerHarald Welte <laforge@gnumonks.org>2015-12-13 11:11:51 +0100
commit65d4ef80c6ea0378d4c42d9525e6d94a0de6694e (patch)
tree34dfdf0c0b2dd3109fbaababcb6d11ffd04778b1 /openbsc/include/openbsc
parent0a8cf32a481efa39bd81b027a50dd8f8f408a39a (diff)
Add BS/MS power control configuration to VTY
Warning: The configured values are not used yet anywhere.
Diffstat (limited to 'openbsc/include/openbsc')
-rw-r--r--openbsc/include/openbsc/gsm_data_shared.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gsm_data_shared.h b/openbsc/include/openbsc/gsm_data_shared.h
index 000207dd9..864361414 100644
--- a/openbsc/include/openbsc/gsm_data_shared.h
+++ b/openbsc/include/openbsc/gsm_data_shared.h
@@ -350,6 +350,18 @@ struct gsm_bts_trx_ts {
struct gsm_lchan lchan[TS_MAX_LCHAN];
};
+struct gsm_power_control_threshold {
+ uint8_t lower;
+ uint8_t upper;
+};
+
+struct gsm_power_control {
+ uint8_t dynamic;
+ uint8_t static_level;
+ struct gsm_power_control_threshold rxlev;
+ struct gsm_power_control_threshold rxqual;
+};
+
/* One TRX in a BTS */
struct gsm_bts_trx {
/* list header in bts->trx_list */
@@ -378,6 +390,12 @@ struct gsm_bts_trx {
int nominal_power; /* in dBm */
unsigned int max_power_red; /* in actual dB */
+ /* MS (UL) and BTS (DL) power control configuration */
+ struct {
+ struct gsm_power_control ul;
+ struct gsm_power_control dl;
+ } power_control;
+
#ifndef ROLE_BSC
struct trx_power_params power_params;
int ms_power_control;