aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-01-21 18:12:28 +0100
committerHarald Welte <laforge@gnumonks.org>2016-02-15 14:27:36 +0100
commit3b4d9e7c076df65257183c313a7f436fd6e66ca8 (patch)
tree3cf9ece9d3a5258c5d7c4c767f3026e2585a1862
parent53e0291df6e9b601bd56d55d4a41c5268ee9bd87 (diff)
LC15: Call l1if_reset() after l1if_open()
We want to start talking to the L1 from the point the PHY link has been opened, and not only once an OML connection has been established.
-rw-r--r--src/osmo-bts-litecell15/l1_if.c2
-rw-r--r--src/osmo-bts-litecell15/main.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/src/osmo-bts-litecell15/l1_if.c b/src/osmo-bts-litecell15/l1_if.c
index 3a0b419c..e697f108 100644
--- a/src/osmo-bts-litecell15/l1_if.c
+++ b/src/osmo-bts-litecell15/l1_if.c
@@ -1437,6 +1437,8 @@ int bts_model_phy_link_open(struct phy_link *plink)
return -EIO;
}
+ l1if_reset(pinst->u.lc15.hdl);
+
phy_link_state_set(plink, PHY_LINK_CONNECTED);
}
diff --git a/src/osmo-bts-litecell15/main.c b/src/osmo-bts-litecell15/main.c
index ae789f47..31ed3a9f 100644
--- a/src/osmo-bts-litecell15/main.c
+++ b/src/osmo-bts-litecell15/main.c
@@ -93,10 +93,6 @@ int bts_model_init(struct gsm_bts *bts)
int bts_model_oml_estab(struct gsm_bts *bts)
{
- struct lc15l1_hdl *fl1h = bts->c0->role_bts.l1h;
-
- l1if_reset(fl1h);
-
return 0;
}