aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts/gsm_data_shared.h
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-11-13 13:17:20 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2019-11-14 16:36:00 +0100
commite717aec2f733ef32608734a771b80d453654f9a0 (patch)
tree76815e8a2e8f0799dd26fde0c64b279eb947ef0f /include/osmo-bts/gsm_data_shared.h
parent869091011c01098e0da995c5d68f5a5fbd6c1cbd (diff)
Move and rename gsm_lchan.ms_power field
Make it clear that it contains the maximum MS power level (TS 05.05) and not the one to be used. The one aimed at is in ms_power_ctrl.current. Since it's used in related code, move it inside the ms_power_ctrl struct too. Related: OS#1851 Change-Id: Ib264ec7dac87355cef6415461ed74bd8e9c8ca52
Diffstat (limited to 'include/osmo-bts/gsm_data_shared.h')
-rw-r--r--include/osmo-bts/gsm_data_shared.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/osmo-bts/gsm_data_shared.h b/include/osmo-bts/gsm_data_shared.h
index 50613103..8a52fe9f 100644
--- a/include/osmo-bts/gsm_data_shared.h
+++ b/include/osmo-bts/gsm_data_shared.h
@@ -199,9 +199,6 @@ struct gsm_lchan {
/* State */
enum gsm_lchan_state state;
const char *broken_reason;
- /* Power levels for MS and BTS */
- uint8_t bs_power;
- uint8_t ms_power;
/* Encryption information */
struct {
uint8_t alg_id;
@@ -323,8 +320,11 @@ struct gsm_lchan {
/* power handling */
struct {
uint8_t current;
+ uint8_t max;
bool fixed;
} ms_power_ctrl;
+ /* Power levels for BTS */
+ uint8_t bs_power;
struct msgb *pending_rel_ind_msg;