diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-05-07 03:28:04 +0200 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-05-09 02:05:48 +0200 |
commit | b6d3e2c360cac5c73ad310f0049c22968f7b0385 (patch) | |
tree | 17fa3ebb6d1a05c809a4aa177e27314742255066 /include/osmo-bts/bts_trx.h | |
parent | 2dda5d835afc1ece6ec0b4b728911ca375f0d308 (diff) |
[VAMOS] struct gsm_bts_trx: fix the PHY instance pointer
First of all, there is no reason to use a void pointer because
it's always 'struct phy_instance'. Also, no need to encapsulate
this pointer into 'role_bts' because there are no other roles in
osmo-bts (we used to have shared headers years ago).
This commit also fixes a bug in test_sysmobts_auto_band(), where a
pointer to 'struct femtol1_hdl' was directly assigned to trx.pinst.
Change-Id: I9bd6f0921e0c6bf824d38485486ad78864cbe17e
Diffstat (limited to 'include/osmo-bts/bts_trx.h')
-rw-r--r-- | include/osmo-bts/bts_trx.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/osmo-bts/bts_trx.h b/include/osmo-bts/bts_trx.h index 7d60a736..100eabac 100644 --- a/include/osmo-bts/bts_trx.h +++ b/include/osmo-bts/bts_trx.h @@ -36,9 +36,8 @@ struct gsm_bts_trx { struct gsm_power_ctrl_params *ms_dpc_params; /* MS Dynamic Power Control */ bool ms_pwr_ctl_soft; /* is power control loop done by osmocom software? */ - struct { - void *l1h; - } role_bts; + /* The associated PHY instance */ + struct phy_instance *pinst; struct gsm_bts_trx_ts ts[TRX_NR_TS]; }; |