[misdn] Add option to automatically release layer2 on exit
Patch by Andreas Eversberg to automatically release
layer2 on exit of the application. Made the naming of
the variables consistent (only release_l2 and not both
release_l2 and l2_release).
diff --git a/src/e1_config.c b/src/e1_config.c
index 080ca4f..a52b037 100644
--- a/src/e1_config.c
+++ b/src/e1_config.c
@@ -15,7 +15,7 @@
#define TEI_RSL 1
/* do some compiled-in configuration for our BTS/E1 setup */
-int e1_config(struct gsm_bts *bts, int cardnr)
+int e1_config(struct gsm_bts *bts, int cardnr, int release_l2)
{
struct e1inp_line *line;
struct e1inp_ts *sign_ts;
@@ -68,7 +68,7 @@
bts->trx[1].rsl_link = rsl_link;
#endif
- return mi_setup(cardnr, line);
+ return mi_setup(cardnr, line, release_l2);
}
/* do some compiled-in configuration for our BTS/E1 setup */