Harald Welte
5078148829
TLV: add function to patch a tlv definition table
2010-01-10 17:45:23 +01:00
Harald Welte
6e670aab5a
introduce new gsm_bts_trx_by_nr() function
2010-01-07 20:45:42 +01:00
Harald Welte
2ef156db43
bis_nm_ipaccess_set_nvattr() executes on a TRX, not a BTS
2010-01-07 20:45:41 +01:00
Holger Hans Peter Freyther
cbcfe24fee
[vty] In case of handover only warn about the proxy mode when it is enabled
...
Do not warn if the user has put "handover 0" in his configuration
as this will not enable handover, only warn if it is going to be
enabled.
2010-01-07 16:14:38 +01:00
Holger Hans Peter Freyther
d0c540210a
Initialize reject_cause to a valid number
...
Currently starting with the opencfg.cfg.nanobts and writing it out
and then trying to start again will not work. The network reject_cause
is initialized to 0 which is not a valid reject reason and when writing
this to the config file and trying to parse it will fail.
Pick roaming not allowed as a harmless option to those phones
accidently trying to connect to the BTS.
2010-01-07 16:08:42 +01:00
Holger Hans Peter Freyther
17d81e2f95
[system_information] Initialize the buffer before moving it
...
In the case of ipaccess we are doing a ++output but then still
try to write 23 bytes into it and on my system this is leading
to a stack corruption.
2010-01-07 15:48:28 +01:00
Holger Hans Peter Freyther
7ec448d031
[system_information] Return how much byte were written into output
2010-01-07 15:48:28 +01:00
Holger Hans Peter Freyther
caa14869c0
[rest_octets] Return bv.data_len to indicate how was written
...
Return the used data_len for the bitvector. This indicates
how much data might have been written.
2010-01-07 15:48:28 +01:00
Holger Hans Peter Freyther
4cffc45cbc
[rest_octets] Change data_len to the sizes of the spec
...
Is that right?
2010-01-07 15:48:27 +01:00
Daniel Willmann
6a9fa7308d
[bs11_config] Add pll-setvalue and pll-workvalue commands
...
These commands let you change the PLL set and work values. Many thanks
to Dieter Spaar for figuring out how to do this!
Now you can just reset your PLL work value if it drifts away due to your
E1 card.
Use it like this: bs11_config pll-workvalue 1000
2010-01-07 14:03:22 +01:00
Daniel Willmann
f904fa80ee
[bs11_config] Whitespace changes so the help text looks nice
2010-01-07 14:03:22 +01:00
Daniel Willmann
7b1dd748ea
[abis_nm] Add abis_nm_bs11_set_pll function to change the set/work value
...
Whether this function changes the set or the work value depends on your
type of login. In FACTORY login it changes the set value, in FIELD login
it changes the work value (which is what is used by the BS11 to tune the
frequency).
2010-01-07 14:03:22 +01:00
Daniel Willmann
4b054c8788
[abis_nm] Add abis_nm_bs11_infield_logon to logon as user field
...
As this user you are able to set the PLL work value which is especially
useful if your BS11 got detuned by an inaccurate oscillator in your E1
card.
2010-01-07 14:03:22 +01:00
Daniel Willmann
493db4ee3d
[abis_nm] Add generic abis_nm_bs11_logon function
...
Factoring out common logon functionality will allow us to logon as
different user. abis_nm_bs11_factory_logon now uses this function.
2010-01-07 14:03:21 +01:00
Sylvain Munaut
ef24dff2a2
[signal] Differentiate paging success from expiration in SS_PAGING
...
This is useful information to know and actually fixes a segfault
in rllp.c where lchan is accessed even tough it could be NULL in
case of failure.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07 10:37:40 +01:00
Sylvain Munaut
65542c7f59
abis_nm: Consider a STATE CHG without avail_status as an empty avail_status
...
At least some nanoBTS 139 send the last even (going online) as
'enabled' 'unlocked' but no avail status IE (which I guess mean an empty
set, the doc 12.21 isn't that clear about that).
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07 10:36:24 +01:00
Sylvain Munaut
b1a83585a2
rrlp-ephemeris: Add directory with asn1c patches
...
- One is just to improve the debug prints
- The other fixes a problem in PER encoding found by Dieter Spaar.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07 10:22:24 +01:00
Sylvain Munaut
a9923753ea
rrlp-ephemeris: Add script to get test data from UBX receiver
...
Simple script illustrating how data.ubx (the test sample) is
generated.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07 10:22:24 +01:00
Sylvain Munaut
ad0140572c
rrlp-ephemeris: Fill ref time with UBX AID_INI messages
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07 10:22:24 +01:00
Sylvain Munaut
b74cbcf7ec
rrlp-ephemeris: Add support for filling ReferenceTime IE
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07 10:22:24 +01:00
Sylvain Munaut
a17324c7fe
rrlp-ephemeris: Add a note about extracting RefPos from AID_INI
...
Yeah we could do it if anyone is willing to implement conversion
from ecef to WGS84.
See http://en.wikipedia.org/wiki/Geodetic_system
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07 10:22:24 +01:00
Sylvain Munaut
ccea439028
rrlp-ephemeris: Fill ref pos with UBX NAV_POSLLH messages
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07 10:22:24 +01:00
Sylvain Munaut
c74f953fb9
rrlp-ephemeris: Support filling of ReferencePositon IE
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07 10:22:23 +01:00
Sylvain Munaut
2d6057e8cf
rrlp-ephemeris: Comment alignment fix
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07 10:22:23 +01:00
Sylvain Munaut
3930b3f9a9
rrlp-ephemeris: Add .gitignore
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07 10:22:23 +01:00
Sylvain Munaut
41c32b49b7
rrlp-ephemeris: Properly implement pseudo segmentation flag
...
See 3GPP TS 44.031 section 2.2/2.3 for a example/description.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07 10:22:23 +01:00
Sylvain Munaut
9a2370b591
rrlp-ephemeris: Fix memory leak
...
We need to go through all the object release code ...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07 10:22:23 +01:00
Holger Hans Peter Freyther
b3fc1eb53c
[vty] Move db usage out of the libbsc (fork dumping of subscr) (2nd part)
...
Follow up on 424c4f0e29
. As pointed out
by Sylvain on the mailinglist I need to remove this here as well.
Do not call db.c code from code that is located in libbsc.a
2010-01-06 09:44:09 +01:00
Holger Hans Peter Freyther
b91a106932
[si] Go through the system_information structs and add static_asserts
...
The structs are correct, the problem is coming from the rest octets
2010-01-06 06:38:14 +01:00
Holger Hans Peter Freyther
424c4f0e29
[vty] Move db usage out of the libbsc (fork dumping of subscr)
...
vty_interface.c is part of libbsc.a but it started to use code
which is found in db.c recently. Fork the subscriber dumping and
provide more information on the layer3+ (MSC) commands. This
is restoring the separation again.
2010-01-06 06:00:40 +01:00
Harald Welte (local)
0b11414f38
print full lchan name when recycling it
2010-01-03 11:02:54 +01:00
Sylvain Munaut
4719307f50
gsm_data: Move auth related structure earlier
...
This is gonna be needed by the next commit ...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03 10:54:30 +01:00
Sylvain Munaut
d7c9e5cad8
encryption: Import a GPL comp128 implementation
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03 10:54:07 +01:00
Sylvain Munaut
8608e7c133
gsm_04_08: Add RAND debug output in gsm48_tx_mm_auth_req
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03 10:53:39 +01:00
Sylvain Munaut
bd55a6dd31
gsm_04_08: Specify key_seq when calling gsm48_tx_mm_auth_req
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03 10:53:22 +01:00
Sylvain Munaut
99792900e8
vty: Add command to set auth algo & Ki for a subscriber
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03 10:51:55 +01:00
Sylvain Munaut
af29264039
vty: dump subscriber authentication (a3/a8) infos if available
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03 10:51:03 +01:00
Sylvain Munaut
062d5efc5c
db: Add methods to set auth{info,tuple} for a subscriber
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03 10:50:34 +01:00
Sylvain Munaut
c5f488b6bc
db: Add declaration for get_auth{info,tuple_for_subscriber
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03 10:50:03 +01:00
Sylvain Munaut
e1cb4debb0
db: Fix bad size comparison when retrieving Ki
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03 10:48:42 +01:00
Sylvain Munaut
c863cbb171
gsm_data: Fix sres to be 4 bytes
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03 10:48:23 +01:00
Sylvain Munaut
70881b7e8a
db: Add issued/use_count/key_seq fields to AuthTuples
...
Theses will be useful to know if we can reuse the tuples or if
we should renew. The 'issued' is currently purely informative.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03 10:17:35 +01:00
Sylvain Munaut
77d334ac4d
db: Fix type of algorithm_id (NUMERIC -> INTEGER)
...
This fixes a DB warning and no need for NUMERIC here.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03 10:16:15 +01:00
Sylvain Munaut
deebb113ac
db: Fix missing commas in AuthTuples table creation
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03 10:13:14 +01:00
Sylvain Munaut
1f6c11fda8
abis_nm: Introduce & use a nm_is_running function to test gsm_nm_state
...
This returns true if the gsm_nm_state can be considered 'running'.
Note that we also accept availability==0xff (which is a code for
no value) because according to 12.21 it is perfectly valid.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03 10:11:24 +01:00
Sylvain Munaut
15e1024e49
update .gitignore
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03 10:11:07 +01:00
Sylvain Munaut
504807001d
silent_call: Add option to choose channel type
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03 10:10:47 +01:00
Sylvain Munaut
b6c273e9e3
vty: Register logging_set_log_level_cmd
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03 10:10:00 +01:00
Sylvain Munaut
7de67960e7
[bsc_init] Send OPSTART if SITE_MANAGER reports off-line
...
The exact sequence the states the BTS goes through is slightly
different for one of the nanoBTS 139 I have and it needs this
to start.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03 10:07:11 +01:00
Harald Welte
730bc653d1
hlrstat: Print numeric MCC/MNC in case no name is available
2010-01-01 15:08:38 +01:00