aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/bsc_hack.c
diff options
context:
space:
mode:
authorDaniel Willmann <daniel@totalueberwachung.de>2010-01-11 13:50:44 +0100
committerHarald Welte <laforge@gnumonks.org>2010-01-14 21:52:34 +0100
commit604d851b89d2d62f024223d333c833ebebd42060 (patch)
tree6ef9dc20f000d0ba7e4d7d0d57150caebcf5a0da /openbsc/src/bsc_hack.c
parentf15c276382a10ae6634694ed0cde06fdea0606cb (diff)
Register GSM_BTS_TYPE_UNKNOWN in bsc_hack.c
The way the VTY configuration sytem works is that it first registers a BTS of type GSM_BTS_TYPE_UNKNOWN and then sets the type correctly (after encountering the type statement). This makes sure that registering a BTS of type UNKNOWN succeeds.
Diffstat (limited to 'openbsc/src/bsc_hack.c')
-rw-r--r--openbsc/src/bsc_hack.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/bsc_hack.c b/openbsc/src/bsc_hack.c
index e7db3c733..7755726c9 100644
--- a/openbsc/src/bsc_hack.c
+++ b/openbsc/src/bsc_hack.c
@@ -178,6 +178,7 @@ static void db_sync_timer_cb(void *data)
bsc_schedule_timer(&db_sync_timer, DB_SYNC_INTERVAL);
}
+extern int bts_model_unknown_init(void);
extern int bts_model_bs11_init(void);
extern int bts_model_nanobts_init(void);
@@ -194,6 +195,7 @@ int main(int argc, char **argv)
stderr_target = debug_target_create_stderr();
debug_add_target(stderr_target);
+ bts_model_unknown_init();
bts_model_bs11_init();
bts_model_nanobts_init();