aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-11-27 15:02:32 +0100
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-12-04 09:27:48 +0100
commit9381576e1865e5b39d6a68aaf5f23f1d318ccf6c (patch)
tree4909cc35c02f1bde49887290edbbb80530194009 /include
parentfb03b43e24b5e3aa0153eed2eac124b5c9ad4636 (diff)
power_control: generalize power control state structure
Diffstat (limited to 'include')
-rw-r--r--include/osmo-bts/gsm_data.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/include/osmo-bts/gsm_data.h b/include/osmo-bts/gsm_data.h
index 64102f5a..04c66298 100644
--- a/include/osmo-bts/gsm_data.h
+++ b/include/osmo-bts/gsm_data.h
@@ -161,6 +161,15 @@ struct gsm_rep_facch {
uint32_t fn;
};
+struct lchan_power_ctrl_state {
+ uint8_t current;
+ uint8_t max;
+ bool fixed;
+
+ /* Scaled up (100 times) average UL/DL RxLev (in dBm) */
+ int avg100_rxlev_dbm;
+};
+
struct gsm_lchan {
/* The TS that we're part of */
struct gsm_bts_trx_ts *ts;
@@ -306,15 +315,9 @@ struct gsm_lchan {
enum lchan_rel_act_kind rel_act_kind;
/* RTP header Marker bit to indicate beginning of speech after pause */
bool rtp_tx_marker;
- /* power handling */
- struct {
- uint8_t current;
- uint8_t max;
- bool fixed;
- /* Scaled up (100 times) average UL RSSI */
- int avg100_ul_rssi;
- } ms_power_ctrl;
+ /* MS power control */
+ struct lchan_power_ctrl_state ms_power_ctrl;
/* BTS power reduction (in dB) */
uint8_t bs_power_red;