From faba84b9b7c035691fd831ad26871a63417d22d0 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Sun, 1 Sep 2013 09:02:24 +0200 Subject: Relace bts_model_get_time() by get_time() at common part --- src/common/bts.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/common/bts.c') diff --git a/src/common/bts.c b/src/common/bts.c index 65b115a8..9abbe121 100644 --- a/src/common/bts.c +++ b/src/common/bts.c @@ -611,3 +611,10 @@ int trx_ms_pwr_ctrl_is_osmo(struct gsm_bts_trx *trx) { return trx->ms_power_control == 1; } + +struct gsm_time *get_time(struct gsm_bts *bts) +{ + struct gsm_bts_role_bts *btsb = bts->role; + + return &btsb->gsm_time; +} -- cgit v1.2.3 From 819b50e1a7b506a0a394cc71a795f0a9ce4083c1 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 6 Sep 2015 12:33:16 +0200 Subject: move MS power control handling from sysmobts to common part MS uplink power control is required in pretty much any BTS, and we cannot assume that they PHY / L1 will always take care of it by itself. So the correspondign code is moved to common/power_control.c and called from the generic part of L1SAP. The corresponding VTY paramter has been moved from the sysmobts-specific trx VTY node to the common BTS VTY node. --- src/common/bts.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/common/bts.c') diff --git a/src/common/bts.c b/src/common/bts.c index 9abbe121..77302e2f 100644 --- a/src/common/bts.c +++ b/src/common/bts.c @@ -99,6 +99,7 @@ int bts_init(struct gsm_bts *bts) /* configurable via VTY */ btsb->paging_state = paging_init(btsb, 200, 0); + btsb->ul_power_target = -75; /* dBm default */ /* configurable via OML */ btsb->load.ccch.load_ind_period = 112; -- cgit v1.2.3