layer23: Complete rework of MCC and MNC structure.
authorAndreas.Eversberg <jolly@eversberg.eu>
Sun, 20 Jun 2010 11:19:06 +0000 (11:19 +0000)
committerAndreas.Eversberg <jolly@eversberg.eu>
Sun, 20 Jun 2010 11:19:06 +0000 (11:19 +0000)
commitf84a8c4b7ebf7a9577343988de5e814605442f3b
treee8497ec4d156c6924a2d93a8fc65f730220355ce
parentb76f3d0686b1d5ab54ec3a0475ba1b4fc2731d89
layer23: Complete rework of MCC and MNC structure.

Instead of handling numerical MCC and MNC, they are now stored and handled
hexadecimal, like they are received by the network. This makes it possible
to correctly handle 2 and 3 digits MNC. Internally 2 digit MNCs are stored
as 0xXXf, and 3 digits MNC are stored as 0xXXX, where X is the digit 0..9.

The length of MNC in the IMSI (2 or 3 digits) depend on the MNC length
trying to match. Anyway that MNC name can be printed even without knowing the
actual length. This is done by matching the IMSI against list of networks.

PLEASE REMOVE "/etc/osmocom/*.ba", because the MCC and MNC stored there is
not valid anymore.
src/host/layer23/include/osmocom/networks.h
src/host/layer23/include/osmocom/subscriber.h
src/host/layer23/src/gsm322.c
src/host/layer23/src/gsm48_mm.c
src/host/layer23/src/gsm48_rr.c
src/host/layer23/src/networks.c
src/host/layer23/src/subscriber.c
src/host/layer23/src/vty_interface.c