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/sysmobts | |
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/sysmobts')
-rw-r--r-- | tests/sysmobts/sysmobts_test.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/sysmobts/sysmobts_test.c b/tests/sysmobts/sysmobts_test.c index 32d6e958..02490bef 100644 --- a/tests/sysmobts/sysmobts_test.c +++ b/tests/sysmobts/sysmobts_test.c @@ -51,16 +51,13 @@ static int pcs_to_pcs[][3] = { static void test_sysmobts_auto_band(void) { struct gsm_bts bts; - struct gsm_bts_role_bts btsb; struct gsm_bts_trx trx; struct femtol1_hdl hdl; int i; memset(&bts, 0, sizeof(bts)); - memset(&btsb, 0, sizeof(btsb)); memset(&trx, 0, sizeof(trx)); memset(&hdl, 0, sizeof(hdl)); - bts.role = &btsb; trx.bts = &bts; trx.role_bts.l1h = &hdl; @@ -74,7 +71,7 @@ static void test_sysmobts_auto_band(void) uint16_t arfcn; int res; - btsb.auto_band = 0; + bts.auto_band = 0; bts.band = direct_map[i][0]; arfcn = direct_map[i][2]; res = sysmobts_select_femto_band(&trx, arfcn); @@ -89,7 +86,7 @@ static void test_sysmobts_auto_band(void) uint16_t arfcn; int res; - btsb.auto_band = 1; + bts.auto_band = 1; bts.band = direct_map[i][0]; arfcn = direct_map[i][2]; res = sysmobts_select_femto_band(&trx, arfcn); @@ -104,7 +101,7 @@ static void test_sysmobts_auto_band(void) uint16_t arfcn; int res; - btsb.auto_band = 1; + bts.auto_band = 1; bts.band = dcs_to_dcs[i][0]; arfcn = dcs_to_dcs[i][2]; res = sysmobts_select_femto_band(&trx, arfcn); @@ -119,7 +116,7 @@ static void test_sysmobts_auto_band(void) uint16_t arfcn; int res; - btsb.auto_band = 1; + bts.auto_band = 1; bts.band = pcs_to_pcs[i][0]; arfcn = pcs_to_pcs[i][2]; res = sysmobts_select_femto_band(&trx, arfcn); |