diff options
author | Holger Freyther <zecke@selfish.org> | 2009-04-22 22:08:07 +0000 |
---|---|---|
committer | Holger Freyther <zecke@selfish.org> | 2009-04-22 22:08:07 +0000 |
commit | b5c00f5587d7e01393e9ca7024a80cea2b2f6e7f (patch) | |
tree | e1159d19e37fd2ef7c76617f4e5bc9f49790494e /src/e1_config.c | |
parent | dda22c18b5daaab7fa26f1eeff7dcc849a99c0cc (diff) |
[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).
Diffstat (limited to 'src/e1_config.c')
-rw-r--r-- | src/e1_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/e1_config.c b/src/e1_config.c index 080ca4f92..a52b0375d 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 @@ int e1_config(struct gsm_bts *bts, int cardnr) 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 */ |