summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2012-12-09 15:10:56 +0100
committerSylvain Munaut <tnt@246tNt.com>2013-01-02 20:44:10 +0100
commit9c1d7b10b83eaaaa328540f177c5af0ec90e4473 (patch)
tree551b1f29c220fd9a028a42ddb1c35e5471d3ff49
parent439738df434507405e1a4722ef5fd61e087ed6db (diff)
mobile/gsm411: Adapt to new libosmocore API for SMC/SMR by adding id
Here we just use the transaction ID Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rw-r--r--src/host/layer23/src/mobile/gsm411_sms.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/host/layer23/src/mobile/gsm411_sms.c b/src/host/layer23/src/mobile/gsm411_sms.c
index 4347e86..7f5d458 100644
--- a/src/host/layer23/src/mobile/gsm411_sms.c
+++ b/src/host/layer23/src/mobile/gsm411_sms.c
@@ -653,10 +653,10 @@ static int gsm411_tx_sms_submit(struct osmocom_ms *ms, const char *sms_sca,
sms_free(sms);
return -ENOMEM;
}
- gsm411_smc_init(&trans->sms.smc_inst, 0, gsm411_mn_recv,
- gsm411_mm_send);
- gsm411_smr_init(&trans->sms.smr_inst, 0, gsm411_rl_recv,
- gsm411_mn_send);
+ gsm411_smc_init(&trans->sms.smc_inst, transaction_id, 0,
+ gsm411_mn_recv, gsm411_mm_send);
+ gsm411_smr_init(&trans->sms.smr_inst, transaction_id, 0,
+ gsm411_rl_recv, gsm411_mn_send);
trans->sms.sms = sms;
trans->sms.sapi = UM_SAPI_SMS;
@@ -907,10 +907,10 @@ int gsm411_rcv_sms(struct osmocom_ms *ms, struct msgb *msg)
mmh->ref);
if (!trans)
return -ENOMEM;
- gsm411_smc_init(&trans->sms.smc_inst, 0, gsm411_mn_recv,
- gsm411_mm_send);
- gsm411_smr_init(&trans->sms.smr_inst, 0, gsm411_rl_recv,
- gsm411_mn_send);
+ gsm411_smc_init(&trans->sms.smc_inst, trans->transaction_id, 0,
+ gsm411_mn_recv, gsm411_mm_send);
+ gsm411_smr_init(&trans->sms.smr_inst, trans->transaction_id, 0,
+ gsm411_rl_recv, gsm411_mn_send);
trans->sms.sapi = mmh->sapi;
}