aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Santos <jrsantos@jonathanrsantos.com>2011-08-10 12:54:22 -0400
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-10-16 18:00:39 +0200
commit9dbf27616c9700b231859ff49cf575a4fa1f8def (patch)
tree050b66878391c4689485c940e65e10a63134a72c
parent23dec2ceb91dac897e4ae51d1caaea62e7b92281 (diff)
gprs: Change T3302 to 20 seconds
-rw-r--r--openbsc/src/gprs/gprs_gmm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/openbsc/src/gprs/gprs_gmm.c b/openbsc/src/gprs/gprs_gmm.c
index ae794d06e..5e875a39a 100644
--- a/openbsc/src/gprs/gprs_gmm.c
+++ b/openbsc/src/gprs/gprs_gmm.c
@@ -55,6 +55,8 @@
#define PTMSI_ALLOC
+#define GSM0408_T3302 (10 | GPRS_TMR_2SECONDS)
+
/* Section 11.2.2 / Table 11.4 MM timers netowkr side */
#define GSM0408_T3322_SECS 6 /* DETACH_REQ -> DETACH_ACC */
#define GSM0408_T3350_SECS 6 /* waiting for ATT/RAU/TMSI COMPL */
@@ -359,7 +361,7 @@ static int gsm48_tx_gmm_att_ack(struct sgsn_mm_ctx *mm)
aa = (struct gsm48_attach_ack *) msgb_put(msg, sizeof(*aa));
aa->force_stby = 0; /* not indicated */
aa->att_result = 1; /* GPRS only */
- aa->ra_upd_timer = GPRS_TMR_MINUTE | 10;
+ aa->ra_upd_timer = GSM0408_T3302;
aa->radio_prio = 4; /* lowest */
gsm48_construct_ra(aa->ra_id.digits, &mm->ra);
@@ -836,7 +838,7 @@ static int gsm48_tx_gmm_ra_upd_ack(struct sgsn_mm_ctx *mm)
rua = (struct gsm48_ra_upd_ack *) msgb_put(msg, sizeof(*rua));
rua->force_stby = 0; /* not indicated */
rua->upd_result = 0; /* RA updated */
- rua->ra_upd_timer = GPRS_TMR_MINUTE | 10;
+ rua->ra_upd_timer = GSM0408_T3302;
gsm48_construct_ra(rua->ra_id.digits, &mm->ra);