aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-litecell15/l1_transp_hw.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-01-20 17:48:42 +0100
committerHarald Welte <laforge@gnumonks.org>2016-02-15 14:26:55 +0100
commit1dcb97eaa355e0dbd1d85e5c8a6243ab2d58609f (patch)
tree413811db41d1a98a628a7d9567443305119cf48e /src/osmo-bts-litecell15/l1_transp_hw.c
parent29a0197ead937c713a3b8e8339d2a3974ac6f0c9 (diff)
LC15: port litecell 1.5 support to recent osmo-bts master
This includes changes required for * shared main() function accross all BTS models * use of the new phy_link / phy_instance infrastructure as the basis for true multi-TRX operation
Diffstat (limited to 'src/osmo-bts-litecell15/l1_transp_hw.c')
-rw-r--r--src/osmo-bts-litecell15/l1_transp_hw.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/osmo-bts-litecell15/l1_transp_hw.c b/src/osmo-bts-litecell15/l1_transp_hw.c
index 00f1e0a3..68e7e6bb 100644
--- a/src/osmo-bts-litecell15/l1_transp_hw.c
+++ b/src/osmo-bts-litecell15/l1_transp_hw.c
@@ -240,6 +240,7 @@ static int l1fd_write_cb(struct osmo_fd *ofd, struct msgb *msg)
int l1if_transport_open(int q, struct lc15l1_hdl *hdl)
{
+ struct phy_link *plink = hdl->phy_inst->phy_link;
int rc;
char buf[PATH_MAX];
@@ -248,7 +249,7 @@ int l1if_transport_open(int q, struct lc15l1_hdl *hdl)
struct osmo_wqueue *wq = &hdl->write_q[q];
struct osmo_fd *write_ofd = &hdl->write_q[q].bfd;
- snprintf(buf, sizeof(buf)-1, "%s%d", rd_devnames[q], hdl->hw_info.trx_nr);
+ snprintf(buf, sizeof(buf)-1, "%s%d", rd_devnames[q], plink->num+1);
buf[sizeof(buf)-1] = '\0';
rc = open(buf, O_RDONLY);
@@ -270,7 +271,7 @@ int l1if_transport_open(int q, struct lc15l1_hdl *hdl)
return rc;
}
- snprintf(buf, sizeof(buf)-1, "%s%d", wr_devnames[q], hdl->hw_info.trx_nr);
+ snprintf(buf, sizeof(buf)-1, "%s%d", wr_devnames[q], plink->num+1);
buf[sizeof(buf)-1] = '\0';
rc = open(buf, O_WRONLY);