aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-12-24 08:39:27 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-12-26 09:40:02 +0100
commit41c5aaf62c24cf735f3c668f97958f855acde05d (patch)
tree9e689d2851cbccc78f9eadf87edff79a49cd0b71
parent69ac83dd546561eb451fed008ea41a3db1412e79 (diff)
sms: Use the SMS in the signals where it makes sense.
The signal_data was inconsistent. Sometimes we passed the transaction and sometimes we passed the sms. Change it to always pass the sms. The S_SMS_SMMA is a bit special as it does not involve any SMS.
-rw-r--r--openbsc/src/gsm_04_11.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/gsm_04_11.c b/openbsc/src/gsm_04_11.c
index f4180047e..65688f562 100644
--- a/openbsc/src/gsm_04_11.c
+++ b/openbsc/src/gsm_04_11.c
@@ -809,7 +809,7 @@ static int gsm411_rx_rp_error(struct msgb *msg, struct gsm_trans *trans,
/* MS has not enough memory to store the message. We need
* to store this in our database and wait for a SMMA message */
/* FIXME */
- dispatch_signal(SS_SMS, S_SMS_MEM_EXCEEDED, trans->subscr);
+ dispatch_signal(SS_SMS, S_SMS_MEM_EXCEEDED, sms);
counter_inc(net->stats.sms.rp_err_mem);
} else
counter_inc(net->stats.sms.rp_err_other);
@@ -832,7 +832,7 @@ static int gsm411_rx_rp_smma(struct msgb *msg, struct gsm_trans *trans,
/* MS tells us that it has memory for more SMS, we need
* to check if we have any pending messages for it and then
* transfer those */
- dispatch_signal(SS_SMS, S_SMS_SMMA, trans->subscr);
+ dispatch_signal(SS_SMS, S_SMS_SMMA, trans);
/* check for more messages for this subscriber */
sms = db_sms_get_unsent_for_subscr(trans->subscr);