aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc
AgeCommit message (Collapse)AuthorFilesLines
2011-06-29properly reset the MO state of all MO on Abis disconnectopenbsc/0.9.140.9.14Harald Welte1-7/+1
When we loose the A-bis link, we should properly re-set the administrative, operational and availability state of all MOs
2011-06-27Revert "HACK: disable NM_ATTR for CELL GLOBAL ID for sysmo-bts"Harald Welte1-2/+2
This reverts commit 8b65ab9d9133efe53a058733d492ac0595040fb4, which should never have been committed to master. In fact, it is not even needed anymore with recent osmo-bts code.
2011-06-26move gsm0502_calc_paging_group() to libosmocoreHarald Welte1-17/+0
2011-06-26generalize function for calculation of the paging groupHarald Welte1-7/+10
2011-06-26move gsm 05.02 related calculations into libosmocoreHarald Welte2-25/+3
2011-06-26use new gsm48_number_of_paging_subchannels from libosmocoreHarald Welte2-16/+4
2011-06-25move {ts,lchan}2chan_nr() functions to gsm_data_shared.cHarald Welte2-55/+16
... this way osmo-bts can use them
2011-06-09HACK: disable NM_ATTR for CELL GLOBAL ID for sysmo-btsHarald Welte1-2/+2
Do not commit this to master. It disables a non-standard IE in the BTS attributes.
2011-06-06move objclass2{nmstate,mo,}obj() to gsm_data_shared.c (and prefix)Harald Welte1-158/+4
2011-06-05split gsm_data.c in gsm_data_shared.c and gsm_data.cHarald Welte1-2/+2
This facilitates the use of gsm_data.c from osmo-bts
2011-06-03Introduce per-ts TSCHarald Welte2-3/+21
This allows us to configure a TSC for each timeslot, not just one globally for the entire BTS.
2011-06-03gsm_data_shared: introduce 'struct gsm_abis_mo'Harald Welte6-46/+60
... as a common wrapper around nm_attr and nm_state
2011-05-31abis: Get the structs and values from libosmocoreHolger Hans Peter Freyther1-0/+2
Remove the forward declarations for functions and structs that have been moved to libosmocore.
2011-05-24move some more abis_nm related code into libosmocoreHarald Welte1-19/+0
This syncs openbsc.git with libosmocore.git commit rev 11c7193ad8ceb4f3898799dc44b700b8b93a59b8
2011-05-24Move system information related defines and code to libosmocoreHarald Welte2-110/+11
This brings openbsc in sync with the following libosmocore commit: b5503136fa234690d5493b19a8aee3a4ef74190d
2011-05-23abis_nm: Some more fall-out from the abis_nm move to libosmocoreHarald Welte3-3/+5
we want get_string_value(), not the equivalent of get_value_string()
2011-05-23abis_nm: fix some fallout regarding abis_nm migration to libosmocoreHarald Welte3-5/+5
Thanks to Holger for noticing this.
2011-05-22abis_nm: Move lots of generic definitions + code to libosmocoreHarald Welte1-388/+26
2011-05-22bsc: on-demand setup of nanoBTS and HSL femto socketsPablo Neira Ayuso7-10/+77
The daemons set up nanoBTS and HSL femto sockets by default, ie. the three sockets to support these two drivers are open even if we have no BTS of that kind. This patch enables on-demand socket creation, ie. we only enable them if we have one BTS at least that requires it. I added two new attributes to the gsm_bts object, they are: * the start() function includes the code that we need to run to start the BTS. This new function contains the socket creation in the particular case of nanoBTS and HSL femto. * the started boolean, which is used to know if we have already started the BTS, ie. we have already invoked start(). Note that, I have splitted the bts_model_*_init() function into two functions, the _init() functions that register the BTS driver and the _start() functions that start BTS driver on-demand. While I was at it, I added several changes/cleanups to this patch: * Group all bts_model_*_init() calls into one function bts_init(), which is called in the initialization path of osmo-nitb and osmo-bsc. * Add openbsc/bss.h that contains the declaration of bsc_bootstrap_network, bsc_shutdown_net and bts_init. * Add missing e1inp_init() in osmo-bsc. * Fix missing declaration of hsl_setup in openbsc/e1_input.h
2011-05-22bsc: fix bail out in case of problems bootstrapping BTS or E1 inputPablo Neira Ayuso1-4/+6
The error message was missing in case of problems bootstrapping the BTS. The E1 input driver initialization was displayed in the standard output, now this error is reported via logs.
2011-05-07src: use namespace prefix osmo_* for misc utilsPablo Neira Ayuso6-16/+16
Summary of changes: s/bcd2char/osmo_bcd2char/g s/char2bcd/osmo_char2bcd/g s/hexparse/osmo_hexparse/g s/hexdump/osmo_hexdump/g s/hexdump_nospc/osmo_hexdump_nospc/g s/ubit_dump/osmo_ubit_dump/g s/static_assert/osmo_static_assert/g
2011-05-06src: use namespace prefix osmo_counter*Pablo Neira Ayuso6-24/+24
Summary of changes: s/struct counter/struct osmo_counter/g s/counter_inc/osmo_counter_inc/g s/counter_get/osmo_counter_get/g s/counter_reset/osmo_counter_reset/g s/counter_alloc/osmo_counter_alloc/g s/counter_free/osmo_counter_free
2011-05-06src: use namespace prefix osmo_wqueue*Pablo Neira Ayuso1-7/+7
Summary of changes: s/struct write_queue/struct osmo_wqueue/g s/write_queue_init/osmo_wqueue_init/g s/write_queue_clear/osmo_wqueue_clear/g s/write_queue_enqueue/osmo_wqueue_enqueue/g s/write_queue_bfd_cb/osmo_wqueue_bfd_cb/g
2011-05-06src: use namespace prefix osmo_signal*Pablo Neira Ayuso14-37/+37
Summary of changes: s/signal_cbfn/osmo_signal_cbfn/g s/register_signal_handler/osmo_signal_register_handler/g s/unregister_signal_handler/osmo_signal_unregister_handler/g s/dispatch_signal/osmo_signal_dispatch/g
2011-05-06src: use namespace prefix osmo_fd* and osmo_select*Pablo Neira Ayuso1-7/+7
Summary of changes: s/struct bsc_fd/struct osmo_fd/g s/bsc_register_fd/osmo_fd_register/g s/bsc_unregister_fd/osmo_fd_unregister/g s/bsc_select_main/osmo_select_main/g
2011-05-06src: use namespace prefix osmo_timer* for timer functionsPablo Neira Ayuso7-35/+35
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-05-02paging: Provide the number of pending requestsHolger Hans Peter Freyther2-1/+15
Address the FIXME and take code from the on-waves/bsc-master branch. This will count the number of requests.
2011-05-02paging: Initialize structs internally to avoid a crashHolger Hans Peter Freyther2-3/+11
The code to create the struct gsm_bts is in libcommon right now and we can not call paging_init from there. Right now it appears to be the easiest of doing the init internally.
2011-04-26bsc: Allow to have a list of MSCs/MUXs to connect toHolger Hans Peter Freyther1-10/+22
Be able to configure a list of destinations (duplicates allowed) that will be tried in a round robin fashion. The change is in the bsc_msc_connection to operate on a list. We achieve the round robin nature with the same trick used in the paging code to delete and append the current entry. The nat code was updated to compile but one can only configure one destination.
2011-04-26abis: Use LOGL_ERROR for the Failure Event ReportHolger Hans Peter Freyther1-6/+6
It is not an error of the BSC but we will treat a BTS error like an error of the BSC for now.
2011-04-18ho: Initialize nmp_worst as it was not initializedHolger Hans Peter Freyther1-2/+2
The compiler can't know that on the first iteration we will assign nmp_worst as we have used a high average value.
2011-04-18bsc: Move transaction.c from the libbsc to the libmscHolger Hans Peter Freyther2-153/+0
The BSC code does not use transactions, move it to the libmsc.
2011-04-18misc: Remove sys/types.h includes from the filesHolger Hans Peter Freyther10-10/+0
These are not needed any more. We used them for u_int types but we now use uint which comes from stdint.h
2011-04-18misc: Move from u_int to uint types of stdint.hHolger Hans Peter Freyther17-307/+307
This was done with sed on the files.
2011-04-07misc: Fix compiler warnings in the codeHolger Hans Peter Freyther1-2/+1
2011-03-23src: use new library libosmogsm and new path to headers in libosmocorePablo Neira Ayuso27-55/+55
libosmogsm is a new library that is distributed in the libosmocore. Now, openbsc depends on it. This patch gets openbsc with this change. This patch also rewrites all include path to the new osmocom/[gsm|core] Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
2011-03-19bsc: change bsc_vty_init to take logging categories as parameterPablo Neira Ayuso1-2/+2
This change is required to finish the integration of the VTY and the per-application logging categories that provides: "vty: integration with logging framework" in libosmocore. It has been tested with osmo-nitb. The other just compiled tested.
2011-03-08vty: fix segfault if rf_ctl is not setPablo Neira Ayuso1-1/+1
This is the case of osmo-nitb, since it does not call osmo_bsc_rf_create(). term1: $ ./osmo-nitb -c ../openbsc.cfg.nanobts term2: $ telnet localhost 4242 term2: OpenBSC> show network term1: Segmentation fault
2011-03-06RBS2000: Automatically connect/start/configure/enable most MOsHarald Welte2-18/+39
2011-03-06OM2000: Make sure we fill the nsd->bts member for NM state eventsHarald Welte1-0/+2
2011-03-06OM2000: First attempt in automatically configuring most MOsHarald Welte1-1/+91
TS objects are not part yet
2011-03-06OML: Include a pointer to the BTS in NM STATE CHANGE signalsHarald Welte2-0/+5
... this allows the BTS driver to decide if it should handle the event at all
2011-03-06OM2000: Move IS conn group list generation out of VTY codeHarald Welte2-50/+30
2011-03-06OM2000: Track the Operational Info and MO stateHarald Welte2-1/+155
2011-03-06OM2000: Remove "is-conf-req" from VTY, use "configuration-request"Harald Welte1-7/+5
This unifies the syntax a bit
2011-03-06OM2000: Process MO STATE and ACCORDANCE INFOHarald Welte1-1/+91
2011-03-06OM2000: Fix configuration of TCH timeslotsHarald Welte1-4/+3
2011-03-06OM2000: Fix configuration of Timing Function (missing timing src)Harald Welte1-0/+3
2011-03-05OM2000: More work on the TS configuration requestHarald Welte1-1/+27
It seems the differences for the various channel combinations are big
2011-03-05OM2000: Route TS config requests to the right TRXHarald Welte1-1/+10
The TRX number is encoded in mo.assoc_so, whereas the TS number is in mo.inst!