From 7950e5d90cefb940ff0a08622ba26999b23b8a27 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Thu, 31 Oct 2019 15:59:49 +0100 Subject: bsc: Adapt maximum MS Power Ctrl level based on band and MS Power class Related: OS#4244 Change-Id: I6bff440b7797e710bca5af94fae546e5d55e6972 --- include/osmocom/bsc/abis_rsl.h | 2 +- include/osmocom/bsc/gsm_data.h | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'include/osmocom') diff --git a/include/osmocom/bsc/abis_rsl.h b/include/osmocom/bsc/abis_rsl.h index f7db7790f..b43e3ae99 100644 --- a/include/osmocom/bsc/abis_rsl.h +++ b/include/osmocom/bsc/abis_rsl.h @@ -85,7 +85,7 @@ int rsl_sacch_info_modify(struct gsm_lchan *lchan, uint8_t type, const uint8_t *data, int len); int rsl_chan_bs_power_ctrl(struct gsm_lchan *lchan, unsigned int fpc, int db); -int rsl_chan_ms_power_ctrl(struct gsm_lchan *lchan, unsigned int fpc, int dbm); +int rsl_chan_ms_power_ctrl(struct gsm_lchan *lchan); /* SMSCB functionality */ int rsl_sms_cb_command(struct gsm_bts *bts, uint8_t chan_number, diff --git a/include/osmocom/bsc/gsm_data.h b/include/osmocom/bsc/gsm_data.h index fe626b163..040e36d79 100644 --- a/include/osmocom/bsc/gsm_data.h +++ b/include/osmocom/bsc/gsm_data.h @@ -309,6 +309,9 @@ struct gsm_subscriber_connection { /* pointer to "other" connection, if Call Leg Relocation was successful */ struct gsm_subscriber_connection *other; } lcls; + + /* MS Power Class, TS 05.05 sec 4.1.1 "Mobile station". 0 means unset. */ + uint8_t ms_power_class:3; }; @@ -1374,6 +1377,9 @@ static inline struct gsm_bts *conn_get_bts(struct gsm_subscriber_connection *con return conn->lchan->ts->trx->bts; } +void conn_update_ms_power_class(struct gsm_subscriber_connection *conn, uint8_t power_class); +void lchan_update_ms_power_ctrl_level(struct gsm_lchan *lchan, int ms_power_dbm); + enum { BTS_CTR_CHREQ_TOTAL, BTS_CTR_CHREQ_NO_CHANNEL, -- cgit v1.2.3