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 /src/common/vty.c | |
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 'src/common/vty.c')
-rw-r--r-- | src/common/vty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/vty.c b/src/common/vty.c index 9e428e7d..3b593168 100644 --- a/src/common/vty.c +++ b/src/common/vty.c @@ -987,7 +987,7 @@ DEFUN(cfg_trx_phy, cfg_trx_phy_cmd, return CMD_WARNING; } - trx->role_bts.l1h = pinst; + trx->pinst = pinst; pinst->trx = trx; return CMD_SUCCESS; |