mirror of https://gerrit.osmocom.org/libosmocore
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>
This commit is contained in:
parent
c1a91a896f
commit
0d9b8ec9d3
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue