aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2010-01-07HACK: paging resp handling split ...sylvain/encryption_testingSylvain Munaut2-8/+17
2010-01-07paging: Add paging_request_pause to disable without deleting page reqSylvain Munaut3-2/+40
This disables the send of paging request on the air but doesn't do anything else. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07gsm_04_08: Establish secure channel on CM SERVICE REQUESTSylvain Munaut1-1/+30
Note that establishing a secure channel is considered to be an implicit CM SERVICE ACK. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07gsm_04_08: Establish secure channel on LOCATION UPDATESylvain Munaut1-19/+40
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07gsm_04_08: Add a operation to enable ciphering on a lchanSylvain Munaut5-3/+197
This will take care of the auth/check/enable cipher sequence and call a callback function when done. Currently the negotiated Kc is saved but not re-used, so there is an authentication each time ... Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07db: Don't add a useless 'id' primary key for AuthKeys / AuthTuplesSylvain Munaut1-4/+2
subscriber_id is suitable for this. integer, not null, unique ... Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07[signal] Differentiate paging success from expiration in SS_PAGINGSylvain Munaut4-8/+7
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-07abis_nm: Consider a STATE CHG without avail_status as an empty avail_statusSylvain Munaut1-1/+2
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-07rrlp-ephemeris: Add directory with asn1c patchesSylvain Munaut2-0/+73
- 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-07rrlp-ephemeris: Add script to get test data from UBX receiverSylvain Munaut1-0/+17
Simple script illustrating how data.ubx (the test sample) is generated. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07rrlp-ephemeris: Fill ref time with UBX AID_INI messagesSylvain Munaut1-2/+6
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07rrlp-ephemeris: Add support for filling ReferenceTime IESylvain Munaut2-4/+14
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07rrlp-ephemeris: Add a note about extracting RefPos from AID_INISylvain Munaut1-0/+4
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-07rrlp-ephemeris: Fill ref pos with UBX NAV_POSLLH messagesSylvain Munaut1-1/+5
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07rrlp-ephemeris: Support filling of ReferencePositon IESylvain Munaut3-15/+65
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07rrlp-ephemeris: Comment alignment fixSylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07rrlp-ephemeris: Add .gitignoreSylvain Munaut1-0/+4
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07rrlp-ephemeris: Properly implement pseudo segmentation flagSylvain Munaut1-0/+8
See 3GPP TS 44.031 section 2.2/2.3 for a example/description. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07rrlp-ephemeris: Fix memory leakSylvain Munaut1-1/+1
We need to go through all the object release code ... Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-06[vty] Move db usage out of the libbsc (fork dumping of subscr) (2nd part)Holger Hans Peter Freyther1-26/+0
Follow up on 424c4f0e2927d5a7538b31c69113c6e4f861d2c9. 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[si] Go through the system_information structs and add static_assertsHolger Hans Peter Freyther1-0/+16
The structs are correct, the problem is coming from the rest octets
2010-01-06[vty] Move db usage out of the libbsc (fork dumping of subscr)Holger Hans Peter Freyther2-6/+53
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-03print full lchan name when recycling itHarald Welte (local)1-1/+1
2010-01-03gsm_data: Move auth related structure earlierSylvain Munaut1-20/+22
This is gonna be needed by the next commit ... Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03encryption: Import a GPL comp128 implementationSylvain Munaut3-1/+253
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03gsm_04_08: Add RAND debug output in gsm48_tx_mm_auth_reqSylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03gsm_04_08: Specify key_seq when calling gsm48_tx_mm_auth_reqSylvain Munaut3-6/+5
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03vty: Add command to set auth algo & Ki for a subscriberSylvain Munaut1-0/+62
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03vty: dump subscriber authentication (a3/a8) infos if availableSylvain Munaut1-0/+31
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03db: Add methods to set auth{info,tuple} for a subscriberSylvain Munaut2-0/+129
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03db: Add declaration for get_auth{info,tuple_for_subscriberSylvain Munaut1-0/+6
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03db: Fix bad size comparison when retrieving KiSylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03gsm_data: Fix sres to be 4 bytesSylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03db: Add issued/use_count/key_seq fields to AuthTuplesSylvain Munaut2-3/+11
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-03db: Fix type of algorithm_id (NUMERIC -> INTEGER)Sylvain Munaut1-2/+2
This fixes a DB warning and no need for NUMERIC here. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03db: Fix missing commas in AuthTuples table creationSylvain Munaut1-3/+3
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03abis_nm: Introduce & use a nm_is_running function to test gsm_nm_stateSylvain Munaut3-9/+14
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-03update .gitignoreSylvain Munaut1-0/+6
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03silent_call: Add option to choose channel typeSylvain Munaut3-19/+50
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03vty: Register logging_set_log_level_cmdSylvain Munaut1-0/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03[bsc_init] Send OPSTART if SITE_MANAGER reports off-lineSylvain Munaut1-2/+4
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-01hlrstat: Print numeric MCC/MNC in case no name is availableHarald Welte1-5/+20
2010-01-01introduce and implement silent_call_reroute() and silent_call_rx()Harald Welte3-0/+50
Thise two functions are interfacing with the 04.08 layer 3 to determine if a particular message should be handled inside the OpenBSC layer 3, or if it should be handled in the silent call handler.
2010-01-01keep 'silent call' state in struct lchanHarald Welte3-1/+9
This enables us to reliably detect if a lchan is part of a silent call or not.
2009-12-31[misc] Utilize rf_locking by setting the nm_state.administrativeHolger Hans Peter Freyther4-8/+10
* On start the vty code will call the abis_nm method and this will set the administrative state to unlock/lock * During startup the BTS will report its state as well and would possible overwrite the set administrative. We are only going to update the administrative if it was 0 before. This appears to work on all of my tests. In case this will not be the case for others we will have to split the administrative into two sets one for the BTS and one for the BSC.
2009-12-30[ipaccess] Remove some code duplication in the recently added firmware flashing.Holger Hans Peter Freyther1-14/+17
Share the creation of the sw_load.
2009-12-30[abis] Refactor sw descr generation to a new methodsHolger Hans Peter Freyther1-25/+18
* This is used in sw_load_init and sw_load_end and both needs to be touche for every BTS. Move it into a common method. * This was only verified on the nanoBTS.
2009-12-30[abis] Dispatch a IPAC restart ACK/NACK signalHolger Hans Peter Freyther4-0/+17
* Add the NACK version to the list * Dispatch the signal when we receive the message * Handle it in ipaccess-config by exiting the application
2009-12-30[ipaccess] Restart only after setting the OML IP, software loadHolger Hans Peter Freyther3-10/+34
* Do not issue the restart right aways if we have OML IP or software load in the queue (hint, we need a real queue of operations to carry out... with one big state machine) * Change the signal_data of ipacc ACK/NACK to contain the msg type and the bts pointer. * Issue a restart for software load and OML and use the BTS pointer we got out of the new signal data.
2009-12-30[ipaccess] Make SW activation work by filling out sw_load1 and sw_load2Holger Hans Peter Freyther1-0/+55
We are filling sw_load1 with the information found with type 0x1000 and sw_load2 with type 0x2001. It appears from the protocol traces that these information is not extracted from them. We also need to include the \0 from the string. With this firmware flashing seems to work.