[layer23] Added support for multiple MS instances
authorAndreas.Eversberg <jolly@eversberg.eu>
Sat, 13 Nov 2010 18:45:09 +0000 (18:45 +0000)
committerAndreas.Eversberg <jolly@eversberg.eu>
Sat, 13 Nov 2010 18:45:09 +0000 (18:45 +0000)
commit6f2b172780195e0af780ecd0a4fff0fac9b8438b
tree44423a4d31fa2767e26c988a258a960e7e51e5a1
parent4df881932c30c2d3deb88c53a55a21fd342068d8
[layer23] Added support for multiple MS instances

To create another instance: 'ms <name> create'

To remove an instance: 'no ms <name>'

If no instance exists, 'ms 1' is created automatically on startup.

Each instance can be enabled / disabled by using 'shutdown' or
'no shutdown'. Multiple instances may share the same layer2 socket (same
phone hardware), but in this case only one instance can be enabled at the
same time. This makes it much easier to select different settings without
modifying them.

A 'shutdown' initiates the IMSI detach procedure before shutdown is
completed. A 'shutdown force' will immidiately shutdown.

There is no need to restart the software anymore, if fundamental settings
are changed. In this case, a 'shutdown' followed by a 'no shutdown' will
do the job.

If you already have an old osmocom.cfg, you need to "no shutdown" it.
Everything else behaves as before.
12 files changed:
src/host/layer23/include/osmocom/bb/common/osmocom_data.h
src/host/layer23/include/osmocom/bb/mobile/gsm322.h
src/host/layer23/include/osmocom/bb/mobile/gsm48_mm.h
src/host/layer23/include/osmocom/bb/mobile/settings.h
src/host/layer23/src/common/l1l2_interface.c
src/host/layer23/src/mobile/Makefile.am
src/host/layer23/src/mobile/app_mobile.c
src/host/layer23/src/mobile/gsm322.c
src/host/layer23/src/mobile/gsm48_mm.c
src/host/layer23/src/mobile/main.c [new file with mode: 0644]
src/host/layer23/src/mobile/settings.c
src/host/layer23/src/mobile/vty_interface.c