summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/src/mobile/gsm48_mm.c
AgeCommit message (Collapse)AuthorFilesLines
2012-10-30Fixed decoding of hexadecimal LAI componentsAndreas Eversberg1-3/+3
libosmocore has changed its LAI decoding from hex to decimal. This caused wrong decoding of MCC and MNC. In order to provide required hex transcoding, special hex encoding and decoding function are added to mobile/sysinfo.c.
2012-02-14mobile: Add vty option to force rekeying for every new channelTim Ehlers1-2/+2
Written-by: Tim Ehlers <osmocom@ehlers.info> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-17mobile/MM: Fixed handling of T3230 (MM connection timeout)Andreas Eversberg1-1/+2
If network will not respond to (additional) service request, the timeout will abort the pending MM connection and return to the state before the MM connection was requested or wait for network command.
2011-11-17mobile/MM: Fixed handling of T3220 (IMSI detach timeout)Andreas Eversberg1-3/+20
If network will not terminate radio connection, the timeout will abort the radio connection.
2011-11-13host/mobile: Indicate unsupported TS 04.14 test messages in logAndreas Eversberg1-0/+5
There is no support for TS 04.14. A logging message will inidcate this, if a tester requests test functions. A STATUS message will be sent as it is for for other usupported protocol types received. Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-13host/mobile: Adding (partly implemented) supplementary service supportAndreas Eversberg1-8/+3
Use VTY to request your extension number form OpenBSC: en service 1 *100# Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-13host/mobile/sms: Adding SMS support for osmocomBB/mobileAndreas Eversberg1-2/+3
Both MO and MT SMS are supported. Transmission an reception can be controlled via VTY: en sms 1 <destination> <text> All received SMS are stored in "~/.osmocom/bb/sms.txt". SMS transmission is performed on SAPI 3 datalink, using DCCH or ACCH. Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-13host/mobile/sms: Adding SAPI 3 support to MM and RR layersAndreas Eversberg1-54/+149
RR now handles SAPI 3 datalink. MM connections now have and individual sapi, so MM can use right SAPI for communication with other layers, as well as releasing the right MM connections in case of link release. Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-13host/mobile: Whitespace fixes, no functional changesSylvain Munaut1-21/+21
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-13host/mobile: Prevent the MM layer from making calls when not attachedAndreas Eversberg1-2/+3
If location updating (attachment) fails, the mobile returnes into idle state. Because the SIM may be valid in this location area, the mobile must check if the SIM is already attached. If not it may not change to normal service. Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-08-06Fix of wong Classmark 2 when doing CM Service Request.Andreas Eversberg1-1/+5
Same reason as the commit below... (3b2b3b09a) Thanx again to Dieter for pointing this out.
2011-08-04Fix of wong Classmark 1 on Location Updating and IMSI DetachAndreas Eversberg1-3/+7
The reason for the the wrong power capability comes from the fact that "rr->cd_now" is not yet set and so the ARFCN is 0 which causes the GSM900 power capability to be used. It is set to "Class 4" in the configuration file per default, however this value is not defined for GSM1800/1900. Thanx to Dieter Spaar for finding this bug!
2011-07-17[layer23/mobile] Improvement and fixes of idle mode processAndreas Eversberg1-58/+154
This patch introduces cell re-relection. When camping on a cell, it scanns neighbour cells. If a 'better' cell is found, the cell is selected. If the cell is in a different location area, a location upating is performed under certain conditions. The 'better' cell depends on various informations that are broadcasted on the BCCH of a neihbour cell and of course the RX level. Most operators don't set these informations, so the 'better' cell depend on a better RX level for the same location area, or a much better RX level (6 dBm) at a different location area. There were many issues at the idle mode process that has been fixed. Expecially when moving, the state machines got stuck, so no more cell search was possible, or no further calls / location updating was possible. In order to see the process of cell selection, enter the VTY interface and enable the network monitor: enable monitor network 1 (where '1' is the instance of the MS) In order to see the current state of the processes, enter: show ms
2011-05-29[layer23] Adding Quadband support and GSM 4x0 supportAndreas.Eversberg1-8/+21
This makes it possible to use GSM 850 and PCS 1900 bands, as used in the US. The support relies on the phone hardware. Each band (900, DCS, 850, PCS, 480 and 450) can be enabled and disabled individually for each setting.
2011-05-15src: use namespace prefix osmo_timer*Pablo Neira Ayuso1-24/+24
Summary of changes: s/struct timer_list/struct osmo_timer_list/g s/bsc_add_timer/osmo_timer_add/g s/bsc_schedule_timer/osmo_timer_schedule/g s/bsc_del_timer/osmo_timer_del/g s/bsc_timer_pending/osmo_timer_pending/g s/bsc_nearest_timer/osmo_timers_nearest/g s/bsc_prepare_timers/osmo_timers_prepare/g s/bsc_update_timers/osmo_timers_update/g s/bsc_timer_check/osmo_timers_check/g
2011-04-26src: use new libosmogsm and include/osmocom/[gsm|core] path to headersPablo Neira Ayuso1-4/+4
This patch changes include paths to get osmocom-bb working with the current libosmocore tree. Among all these renames, you can notice several tweaks that I added on purpose, and that require some explanation, they are: * hexdump() in osmocon.c and osmoload.c has been renamed to avoid clashing with hexdump() defined in libosmocore. * gsmmap now depends on libosmogsm. Actually I had to cleanup Makefile.am because I was experiencing weird linking problems, probably due to a bug in the autotools. With the change included in this patch, I got it compiled and linked here correctly. This patch has been tested with the phone Motorola C123 and the following images files: * firmware/board/compal_e88/hello_world.compalram.bin * firmware/board/compal_e88/layer1.compalram.bin Using the osmocon, bcch_scan and mobile tools. Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
2010-11-20[layer23] Adding LAI to debug output of LOCATION UPDATING REQESTAndreas.Eversberg1-0/+3
2010-11-14[layer23] Cleanup of mobile applicationAndreas.Eversberg1-3/+3
All functions for handling mobile instances and mobile relevant parts are moved to mobile/app_mobile.c, the mobile/main.c and mobile/mncc.c become a simple out-of-the-box mobile application. (making calls) The mobile/main.c can be replaced easily by a different application now. this application may have it's own call control implementation (layer 4). Full configurations via VTY is still possible and required in this case.
2010-11-13[layer23] Added support for multiple MS instancesAndreas.Eversberg1-7/+8
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.
2010-10-16[layer23] Fixed header handling of some radio ressource SAP msgsAndreas.Eversberg1-3/+3
2010-10-03[layer23] Rework of "support"-features, features can be disabled nowAndreas.Eversberg1-6/+8
Supported features of hardware (support.c) can be disabled by config. This way the full featured mobile can be downgraded to indicate less features to the network, like disabling speech support or crypto support.
2010-09-29[layer23] Disabled display of SYSINFO message at message handlersAndreas.Eversberg1-5/+7
This way the SYSINFO is logged once and not three times.
2010-09-29[layer23] Added missing state change, if location update is not required.Andreas.Eversberg1-0/+4
2010-09-26[layer23] Handle invalidation of TMSI correctlyAndreas.Eversberg1-2/+2
2010-09-19[layer23] Added debug about identity (TMSI/IMSI) at LOC.UPD / IMSI DETACHAndreas.Eversberg1-4/+10
2010-09-18[layer23] Added missing TMSI REALLOCATION COMPLETE replyAndreas.Eversberg1-0/+2
Fix by Dieter.
2010-09-17[layer23] Added missing state changeAndreas.Eversberg1-0/+2
2010-09-17[layer23] CM service is now accepted when ciphering has startedAndreas.Eversberg1-0/+7
Sylvain pointed out that CM SERVICE ACCEPT message is not requred, if ciphering has been completed. In this case, an RR_SYNC_IND is sent to mobility management, and treated there as CM SERVICE ACCEPT.
2010-09-15[layer23] Fixed A5/1 support codingAndreas.Eversberg1-1/+1
Dieter pointed out that A5/1 is indicated as supported, if the A5/1 bit in the classmark IE is 0.
2010-08-29[layer23] Fixed security issueAndreas.Eversberg1-11/+25
Authentication must not be performed using SIM client, if different IMSI is used, to protect identity of caller.
2010-08-28[layer23] Layer 3 now uses SIM client to request and update SIM dataAndreas.Eversberg1-126/+90
The SIM reader can be selected via VTY, but because it is not yet implemented in layer1, nothing happens when selecting it.
2010-08-15[layer23] Fixed handling of IMSI in special casesAndreas.Eversberg1-7/+15
2010-07-27layer23: Split [2/2] -> The header filesSylvain Munaut1-6/+6
This split the headers and adapt the source. We use osmocom/bb as a prefix because libosomore also uses osmocom and generic names such as misc & common could conflict in the future. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-27layer23: Split [1/2] -> The source codeSylvain Munaut1-0/+4147
We split into : - common: Everything that can be shared - mobile: The real spec compliant mobile phones - misc: Different test stuff Signed-off-by: Sylvain Munaut <tnt@246tNt.com>