diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-10-31 15:59:49 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2019-11-19 00:52:18 +0000 |
commit | 7950e5d90cefb940ff0a08622ba26999b23b8a27 (patch) | |
tree | cb93074d7eede135a0c50c74d633cf11ce4fe1c8 /include/osmocom | |
parent | a29affda9871f5d7212d19a6fa50544c2108ae49 (diff) |
bsc: Adapt maximum MS Power Ctrl level based on band and MS Power class
Related: OS#4244
Change-Id: I6bff440b7797e710bca5af94fae546e5d55e6972
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/bsc/abis_rsl.h | 2 | ||||
-rw-r--r-- | include/osmocom/bsc/gsm_data.h | 6 |
2 files changed, 7 insertions, 1 deletions
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, |