aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/abis_rsl.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-12-27 13:28:20 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-12-27 13:32:20 +0100
commit08eebd59b78d9327c88269e6da75e1c9d5a881ef (patch)
treee2cf0425866fad705ffeb51f656f21734877511f /openbsc/src/abis_rsl.c
parent9ae7b29e3a74b3c7ddf7781ae0b9ebd4cd8efddb (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/abis_rsl.c')
-rw-r--r--openbsc/src/abis_rsl.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/openbsc/src/abis_rsl.c b/openbsc/src/abis_rsl.c
index 52ed9fa5..ad11c736 100644
--- a/openbsc/src/abis_rsl.c
+++ b/openbsc/src/abis_rsl.c
@@ -51,6 +51,15 @@
static int rsl_send_imm_assignment(struct gsm_lchan *lchan);
+static void send_lchan_signal(int sig_no, struct gsm_lchan *lchan,
+ struct gsm_meas_rep *resp)
+{
+ struct lchan_signal_data sig;
+ sig.lchan = lchan;
+ sig.mr = resp;
+ dispatch_signal(SS_LCHAN, sig_no, &sig);
+}
+
static u_int8_t mdisc_by_msgtype(u_int8_t msg_type)
{
/* mask off the transparent bit ? */
@@ -813,7 +822,7 @@ static int rsl_rx_chan_act_ack(struct msgb *msg)
msg->lchan->rqd_ta = 0;
}
- dispatch_signal(SS_LCHAN, S_LCHAN_ACTIVATE_ACK, msg->lchan);
+ send_lchan_signal(S_LCHAN_ACTIVATE_ACK, msg->lchan, NULL);
return 0;
}
@@ -843,7 +852,7 @@ static int rsl_rx_chan_act_nack(struct msgb *msg)
LOGPC(DRSL, LOGL_ERROR, "\n");
- dispatch_signal(SS_LCHAN, S_LCHAN_ACTIVATE_NACK, msg->lchan);
+ send_lchan_signal(S_LCHAN_ACTIVATE_NACK, msg->lchan, NULL);
lchan_free(msg->lchan);
return 0;
@@ -986,7 +995,7 @@ static int rsl_rx_meas_res(struct msgb *msg)
print_meas_rep(mr);
- dispatch_signal(SS_LCHAN, S_LCHAN_MEAS_REP, mr);
+ send_lchan_signal(S_LCHAN_MEAS_REP, msg->lchan, mr);
return 0;
}
@@ -1007,7 +1016,7 @@ static int rsl_rx_hando_det(struct msgb *msg)
else
DEBUGPC(DRSL, "\n");
- dispatch_signal(SS_LCHAN, S_LCHAN_HANDOVER_DETECT, msg->lchan);
+ send_lchan_signal(S_LCHAN_HANDOVER_DETECT, msg->lchan, NULL);
return 0;
}