diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-22 12:19:06 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-22 12:26:35 +0800 |
commit | f7a1c23e1d9a5f736c3f6a86939e5ef42686d04b (patch) | |
tree | c975ab436ff0fa4a6e29aa2ce978346580752bdb /openbsc/src/chan_alloc.c | |
parent | 5ba05f4d26e65eb5e96cf1a8041d0db4760b7445 (diff) |
lchan: Document why lchan_reset is there... at least try to.
Diffstat (limited to 'openbsc/src/chan_alloc.c')
-rw-r--r-- | openbsc/src/chan_alloc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openbsc/src/chan_alloc.c b/openbsc/src/chan_alloc.c index c59c0a1f9..8115d8719 100644 --- a/openbsc/src/chan_alloc.c +++ b/openbsc/src/chan_alloc.c @@ -342,6 +342,11 @@ void lchan_free(struct gsm_lchan *lchan) * There was an error with the TRX and we need to forget * any state so that a lchan can be allocated again after * the trx is fully usable. + * + * This should be called after lchan_free to force a channel + * be available for allocation again. This means that this + * method will stop the "delay after error"-timer and set the + * state to LCHAN_S_NONE. */ void lchan_reset(struct gsm_lchan *lchan) { |