diff options
author | Harald Welte <laforge@gnumonks.org> | 2018-03-17 12:22:40 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-03-17 13:40:03 +0100 |
commit | d8cd756da48bcff9f9caf9e64fc0af047a165b60 (patch) | |
tree | 136d09901ae8420803500d92646944376ae21f59 /tests/power | |
parent | 7c4a22dbc48f51eb199766bf1b29e061bf765cbd (diff) |
Get rid of 'struct gsm_bts_role_bts'
gsm_bts_role_bts was introduced at a time when we still shared
gsm_data_shared.[ch] between BSC and BTS, and where we then subsequently
needed a BTS-private structure. Since that sharing was abandoned quite
some time ago, we can merge gsm_bts_role_bts into gsm_bts and do away
with the bts/btsb dualism in a lot of the code.
Change-Id: I4fdd601ea873d9697f89a748cc77bcf7c978fa3e
Diffstat (limited to 'tests/power')
-rw-r--r-- | tests/power/power_test.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/power/power_test.c b/tests/power/power_test.c index 295f6380..a46a430c 100644 --- a/tests/power/power_test.c +++ b/tests/power/power_test.c @@ -35,13 +35,11 @@ static inline void apply_power_test(struct gsm_lchan *lchan, int rxlev, int exp_ static void test_power_loop(void) { struct gsm_bts bts; - struct gsm_bts_role_bts btsb; struct gsm_bts_trx trx; struct gsm_bts_trx_ts ts; struct gsm_lchan *lchan; memset(&bts, 0, sizeof(bts)); - memset(&btsb, 0, sizeof(btsb)); memset(&trx, 0, sizeof(trx)); memset(&ts, 0, sizeof(ts)); @@ -49,10 +47,9 @@ static void test_power_loop(void) lchan->ts = &ts; ts.trx = &trx; trx.bts = &bts; - bts.role = &btsb; bts.band = GSM_BAND_1800; trx.ms_power_control = 1; - btsb.ul_power_target = -75; + bts.ul_power_target = -75; lchan->state = LCHAN_S_NONE; lchan->ms_power_ctrl.current = ms_pwr_ctl_lvl(GSM_BAND_1800, 0); |