lchan_fsm: notify conn of released lchan upon RF Release

Related: osmo-ttcn3-hacks If772dbbc5f9790d3f911465e1303dd0a99811154
Change-Id: I7621616c24588c2db15ad1ae7ca68cfa0fb76f66
This commit is contained in:
Neels Hofmeyr 2018-10-10 02:05:26 +02:00
parent cd46adb915
commit 6fe125294b
1 changed files with 7 additions and 0 deletions

View File

@ -993,6 +993,13 @@ static void lchan_fsm_wait_rf_release_ack_onenter(struct osmo_fsm_inst *fi, uint
{
int rc;
struct gsm_lchan *lchan = lchan_fi_lchan(fi);
/* For planned releases, a conn has already forgotten about the lchan. And later on, in
* lchan_reset(), we make sure it does. But in case of releases from error handling, the
* conn might as well notice now already that its lchan is becoming unusable. */
if (lchan->conn)
gscon_forget_lchan(lchan->conn, lchan);
rc = rsl_tx_rf_chan_release(lchan);
if (rc)
LOG_LCHAN(lchan, LOGL_ERROR, "Failed to Tx RSL RF Channel Release: rc=%d %s\n",