diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-12-27 13:28:20 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-12-27 13:32:20 +0100 |
commit | 08eebd59b78d9327c88269e6da75e1c9d5a881ef (patch) | |
tree | e2cf0425866fad705ffeb51f656f21734877511f /openbsc/src/chan_alloc.c | |
parent | 9ae7b29e3a74b3c7ddf7781ae0b9ebd4cd8efddb (diff) |
lchan: Every SS_LCHAN signal now sends a struct lchan_sig_data
The SS_LCHAN signals now always include the lchan_sig_data. For
the measurement report it will optionally include the measurement
report as well. Attempt to update all handlers of this signal as well
Diffstat (limited to 'openbsc/src/chan_alloc.c')
-rw-r--r-- | openbsc/src/chan_alloc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/openbsc/src/chan_alloc.c b/openbsc/src/chan_alloc.c index 5c1644642..13b576733 100644 --- a/openbsc/src/chan_alloc.c +++ b/openbsc/src/chan_alloc.c @@ -302,8 +302,12 @@ void lchan_free(struct gsm_lchan *lchan) if (lchan->conn) { + struct lchan_signal_data sig; + /* We might kill an active channel... */ - dispatch_signal(SS_LCHAN, S_LCHAN_UNEXPECTED_RELEASE, lchan); + sig.lchan = lchan; + sig.mr = NULL; + dispatch_signal(SS_LCHAN, S_LCHAN_UNEXPECTED_RELEASE, &sig); } |