Assign default values for T3101 and T3113
Without those default values, old config files will no longer work
after commit 23975e718f
This commit is contained in:
parent
dbb1d88359
commit
b84ddfc22f
|
@ -407,6 +407,9 @@ enum gsm_auth_policy {
|
|||
GSM_AUTH_POLICY_TOKEN, /* accept first, send token per sms, then revoke authorization */
|
||||
};
|
||||
|
||||
#define GSM_T3101_DEFAULT 10
|
||||
#define GSM_T3113_DEFAULT 60
|
||||
|
||||
struct gsm_network {
|
||||
/* global parameters */
|
||||
u_int16_t country_code;
|
||||
|
|
|
@ -198,6 +198,9 @@ struct gsm_network *gsm_network_init(u_int16_t country_code, u_int16_t network_c
|
|||
net->country_code = country_code;
|
||||
net->network_code = network_code;
|
||||
net->num_bts = 0;
|
||||
net->T3101 = GSM_T3101_DEFAULT;
|
||||
net->T3113 = GSM_T3113_DEFAULT;
|
||||
/* FIXME: initialize all other timers! */
|
||||
|
||||
INIT_LLIST_HEAD(&net->trans_list);
|
||||
INIT_LLIST_HEAD(&net->upqueue);
|
||||
|
|
Loading…
Reference in New Issue