summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 905ea9cb..f37152fe 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 187d6e6d..2146c9e1 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;