summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2011-11-12 23:52:20 +0100
committerSylvain Munaut <tnt@246tNt.com>2011-11-12 23:52:20 +0100
commit0d9b8ec9d3f36125b1762dab2e429c3f0405ce9c (patch)
treef6957b1a23bb605a361c8db589ae26abfe28e364
parentc1a91a896faf5ac510daabfe389cfa3129201c9f (diff)
include/gsm_04_11: Fix compatibility issue with GSM411_TMR_TC1A
We need to keep the old one for compatibility ! Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rw-r--r--include/osmocom/gsm/protocol/gsm_04_11.h3
-rw-r--r--src/gsm/gsm0411_smc.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/include/osmocom/gsm/protocol/gsm_04_11.h b/include/osmocom/gsm/protocol/gsm_04_11.h
index 905ea9c..f37152f 100644
--- a/include/osmocom/gsm/protocol/gsm_04_11.h
+++ b/include/osmocom/gsm/protocol/gsm_04_11.h
@@ -96,7 +96,8 @@ enum gsm411_rp_cause {
#define GSM411_TMR_TRAM 30, 0 /* 25 < x < 35 seconds */
#define GSM411_TMR_TR2M 15, 0 /* 12 < x < 20 seconds */
-#define GSM411_TMR_TC1A 30 /* TR1M - 10 */
+#define GSM411_TMR_TC1A 30, 0 /* TR1M - 10 */
+#define GSM411_TMR_TC1A_SEC 30 /* TR1M - 10 */
/* Chapter 8.2.1 */
struct gsm411_rp_hdr {
diff --git a/src/gsm/gsm0411_smc.c b/src/gsm/gsm0411_smc.c
index 187d6e6..2146c9e 100644
--- a/src/gsm/gsm0411_smc.c
+++ b/src/gsm/gsm0411_smc.c
@@ -73,7 +73,7 @@ void gsm411_smc_init(struct gsm411_smc_inst *inst, int network,
memset(inst, 0, sizeof(*inst));
inst->network = network;
inst->cp_max_retr = MAX_SMS_RETRY;
- inst->cp_tc1 = GSM411_TMR_TC1A / (inst->cp_max_retr + 1);
+ inst->cp_tc1 = GSM411_TMR_TC1A_SEC / (inst->cp_max_retr + 1);
inst->cp_state = GSM411_CPS_IDLE;
inst->mn_recv = mn_recv;
inst->mm_send = mm_send;