diff options
author | Harald Welte <laforge@gnumonks.org> | 2013-06-30 21:19:27 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-06 15:50:36 +0200 |
commit | d92774b4ac9360235e822387a097dbcb886fbbed (patch) | |
tree | acc91ef3eee0c803495d650d70cf8eaa973a1aa5 /src | |
parent | 359fb8caf417570856ca61d6ff90df1fc452d659 (diff) |
abis: delay l1if_reset() until OML link is established
Diffstat (limited to 'src')
-rw-r--r-- | src/common/bts.c | 2 | ||||
-rw-r--r-- | src/osmo-bts-sysmo/main.c | 11 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/common/bts.c b/src/common/bts.c index 63560c2f..2ac411d0 100644 --- a/src/common/bts.c +++ b/src/common/bts.c @@ -176,7 +176,7 @@ int bts_link_estab(struct gsm_bts *bts) } } - return 0; + return bts_model_oml_estab(bts); } /* RSL link is established, send status report */ diff --git a/src/osmo-bts-sysmo/main.c b/src/osmo-bts-sysmo/main.c index bf0d79a7..15b1f1c0 100644 --- a/src/osmo-bts-sysmo/main.c +++ b/src/osmo-bts-sysmo/main.c @@ -74,13 +74,20 @@ int bts_model_init(struct gsm_bts *bts) bts->c0->role_bts.l1h = fl1h; bts->c0->nominal_power = 23; - l1if_reset(fl1h); - bts_model_vty_init(bts); return 0; } +int bts_model_oml_estab(struct gsm_bts *bts) +{ + struct femtol1_hdl *fl1h = bts->c0->role_bts.l1h; + + l1if_reset(fl1h); + + return 0; +} + /* Set the clock calibration to the value * read from the eeprom. */ |