diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-11-26 13:53:52 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-11-26 14:08:14 +0100 |
commit | e3cb8715f59cae342b6ecb96be4eb82c1ad00b4e (patch) | |
tree | 4e8027fda24949ff6f049d8fa6fa34c67eb42d1d /include/osmo-bts/rsl.h | |
parent | 47c8f37c9f52ce66e0dabce2d5c2567d7a5d24da (diff) |
bts_model: Allow TS connect to be processed asynchronously
This commit doesn't change internal logic of any model, only the API to
be able to return result of connect TS asyncrhonously since some models
(like osmo-bts-trx) require some time to process the result. This way
PDCH ACT/DEACT (N)ACK can be sent once the result of this long process
is known. For instance, nowadays in osmo-bts-trx we PDCH (DE)ACT ACK
before getting the result from SETSLOT on the TRX iface.
With this new API, bts_model_ts_connect doesn't return any value
synchronously. Instead, it is expected to always end up calling
cb_ts_connected with the return code from the TS activation process. 0
is considered a successs, while any other value is considered an error.
Change-Id: Ie073a4397dd2f1a691968d12b15b8b42f1e1b0cf
Diffstat (limited to 'include/osmo-bts/rsl.h')
-rw-r--r-- | include/osmo-bts/rsl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/osmo-bts/rsl.h b/include/osmo-bts/rsl.h index 731f6c02..0361841d 100644 --- a/include/osmo-bts/rsl.h +++ b/include/osmo-bts/rsl.h @@ -40,7 +40,7 @@ int rsl_tx_ccch_load_ind_rach(struct gsm_bts *bts, uint16_t total, int rsl_tx_delete_ind(struct gsm_bts *bts, const uint8_t *ia, uint8_t ia_len); void cb_ts_disconnected(struct gsm_bts_trx_ts *ts); -void cb_ts_connected(struct gsm_bts_trx_ts *ts); +void cb_ts_connected(struct gsm_bts_trx_ts *ts, int rc); void ipacc_dyn_pdch_complete(struct gsm_bts_trx_ts *ts, int rc); #endif // _RSL_H */ |