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
This commit is contained in:
Neels Hofmeyr 2016-07-27 16:20:59 +02:00
parent 45d3bbfb44
commit 0d4b37d641
1 changed files with 17 additions and 2 deletions

View File

@ -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;
}