diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2016-07-27 16:20:59 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2016-07-28 17:58:05 +0200 |
commit | 0d4b37d641bc09c62f80b685e9450116f7a6aaa8 (patch) | |
tree | ced3eac44cccaa1df3b45e51ede725daf3837186 /src/osmo-bts-trx/l1_if.c | |
parent | 45d3bbfb443e9a8c9d6590c073cfac2bfef257eb (diff) |
dyn PDCH: complete for trx: implement bts_model_ts_[dis]connect()
bts_model_ts_disconnect() has nothing to do.
bts_model_ts_connect() merely sets the new pchan on the ts.
Change-Id: Ieb66935d6efc26854e95d238e810c4f8b16cfa88
Diffstat (limited to 'src/osmo-bts-trx/l1_if.c')
-rw-r--r-- | src/osmo-bts-trx/l1_if.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/osmo-bts-trx/l1_if.c b/src/osmo-bts-trx/l1_if.c index 21627ebd..fcc3d545 100644 --- a/src/osmo-bts-trx/l1_if.c +++ b/src/osmo-bts-trx/l1_if.c @@ -753,11 +753,26 @@ int bts_model_change_power(struct gsm_bts_trx *trx, int p_trxout_mdBm) int bts_model_ts_disconnect(struct gsm_bts_trx_ts *ts) { - return -ENOTSUP; + /* no action required, signal completion right away. */ + cb_ts_disconnected(ts); + return 0; } int bts_model_ts_connect(struct gsm_bts_trx_ts *ts, enum gsm_phys_chan_config as_pchan) { - return -ENOTSUP; + int rc; + LOGP(DL1C, LOGL_DEBUG, "%s bts_model_ts_connect(as_pchan=%s)\n", + gsm_ts_name(ts), gsm_pchan_name(as_pchan)); + + rc = trx_set_ts_as_pchan(ts, as_pchan); + if (rc) + return rc; + + LOGP(DL1C, LOGL_NOTICE, "%s bts_model_ts_connect(as_pchan=%s) success," + " calling cb_ts_connected()\n", + gsm_ts_name(ts), gsm_pchan_name(as_pchan)); + + cb_ts_connected(ts); + return 0; } |