Harald Welte
e8bd9e885d
RSL: add timer for lchan activation/deactivation without BTS response
...
The timer callback will simply reset the lchan state to NONE in order
to prevent channels getting stuck in 'activation requested' or
'deactivation requested' states.
2011-08-11 17:21:23 +02:00
Harald Welte
986926ebde
E1 Input: Move 'show e1_*' command to e1_input_vty.c
2011-08-11 12:59:54 +02:00
Daniel Willmann
28d9ccbca0
libbsc: Don't free secondary lchan if it is NULL.
2011-08-10 13:40:39 +02:00
Pablo Neira Ayuso
2962c20f73
NOKIA: Resend SABM on unknown TEI from LAPD
2011-08-10 10:51:02 +02:00
Harald Welte
44d26113bc
NOKIA: use 'struct value_string' whenever possible
2011-08-10 10:51:02 +02:00
Harald Welte
3c3003f703
NOKIA: use 'value_string' for severity and bts_type
2011-08-10 10:51:02 +02:00
Harald Welte
c8755af8a5
NOKIA: Move more static variables into 'struct gsm_bts'
2011-08-10 10:51:01 +02:00
Harald Welte
9d2f377927
NOKIA: move 'conf' and 'bts_type' into 'struct gsm_bts'
...
This is one step in the direction of supporting multiple Nokia BTS
2011-08-10 10:51:01 +02:00
Harald Welte
cde579473b
NOKIA: Some more whitespace changes
2011-08-10 10:51:01 +02:00
Harald Welte
bda367c697
Nokia: Coding style
...
Running the entire bts_nokia_site.c through the 'Lindent' script
to match indent/coding style with remainder of project.
There are still lots of other cleanups pending, but this one is
a purely cosmetic one.
2011-08-10 10:51:01 +02:00
Dieter Spaar
1664602476
Initial version of Support for Nokia *Site BTS
...
This includes the MetroSite, but also other Nokia BTS models.
2011-08-10 10:51:01 +02:00
Dieter Spaar
402ccedcf4
BSC VTY: Accept MNC of 0-999, as 0 is a valid MNC
2011-07-27 23:43:56 +02:00
Dieter Spaar
eabb6e3e4f
RSL: Fix erroneous GSM48_IE_CHANDESC_2 in rsl_chan_activate_lchan()
...
This fixes a bug introduced more than one year ago in commit
e38bd6caa34005816a9336f021fd17d328d5c901:
The RSL_IE_CHAN_IDENT is a TLV, but the GSM48_IE_CHANDESC_2 contained in
it, is a mere TV type IE with fixed length.
The problem specifically has caused problems on Nokia MetroSite BTS,
which apparently read the TSC out of this Layer3 IE.
2011-07-27 23:40:33 +02:00
Harald Welte
b226864db5
fix some header file related issues preventing lcr from compiling
2011-07-23 10:53:30 +02:00
Holger Hans Peter Freyther
31f5f71647
paging: Add method to find the paging data for a given subscriber
2011-07-19 20:01:54 +02:00
Holger Hans Peter Freyther
5e3bbba962
bsc: Call the RF Control interface ctrl all the way
...
We had the rf_ctrl_name and the rf_ctl pointer, make both use
the word ctrl.
2011-07-19 19:53:52 +02:00
Holger Hans Peter Freyther
fe1ca353bb
bts-init: Initialize the BTS like it will look after a reset
...
Reset the BTS MO State on BTS bootstrap. This way we will always
test the BTS disconnect/reconnect case of the BTS.
Do not reset the administrative state of objects. The BSC might
have set these and wants to maintain them across disconnect/
reconnect. Right now this is true for the TRX state.
2011-07-18 11:35:56 +02:00
Harald Welte
46324ccfcd
bsc_vty: Fix some Smatch warnings
...
/home/laforge/projects/git/openbsc/openbsc/src/libbsc/bsc_vty.c +1062
show_e1ts(25) warn: variable dereferenced before check 'line'
/home/laforge/projects/git/openbsc/openbsc/src/libbsc/bsc_vty.c +1075
show_e1ts(38) warn: buffer overflow 'line->ts' 32 <= 32
2011-07-16 13:16:39 +02:00
Harald Welte
142c4b8ca8
abis_nm: fix signedness error (uint8_t len cannot be negative)
...
Detected by Smatch
2011-07-16 13:03:29 +02:00
Harald Welte
b7849987e5
properly reset the MO state of all MO on Abis disconnect
...
When we loose the A-bis link, we should properly re-set the
administrative, operational and availability state of all MOs
2011-06-29 16:49:03 +02:00
Harald Welte
e86b3ebf2e
Revert "HACK: disable NM_ATTR for CELL GLOBAL ID for sysmo-bts"
...
This reverts commit 8b65ab9d91
, which
should never have been committed to master. In fact, it is not even
needed anymore with recent osmo-bts code.
2011-06-27 21:15:59 +02:00
Harald Welte
c90499bb28
move gsm0502_calc_paging_group() to libosmocore
2011-06-26 14:54:55 +02:00
Harald Welte
1cf43ece12
generalize function for calculation of the paging group
2011-06-26 14:43:46 +02:00
Harald Welte
bc82f92a8d
move gsm 05.02 related calculations into libosmocore
2011-06-26 14:41:58 +02:00
Harald Welte
457a081379
use new gsm48_number_of_paging_subchannels from libosmocore
2011-06-26 14:21:43 +02:00
Harald Welte
f6093a4d0e
move {ts,lchan}2chan_nr() functions to gsm_data_shared.c
...
... this way osmo-bts can use them
2011-06-25 10:02:33 +02:00
Harald Welte
8b65ab9d91
HACK: disable NM_ATTR for CELL GLOBAL ID for sysmo-bts
...
Do not commit this to master. It disables a non-standard IE in the BTS
attributes.
2011-06-09 11:03:49 +02:00
Harald Welte
978714d752
move objclass2{nmstate,mo,}obj() to gsm_data_shared.c (and prefix)
2011-06-06 18:31:20 +02:00
Harald Welte
3300c01e82
split gsm_data.c in gsm_data_shared.c and gsm_data.c
...
This facilitates the use of gsm_data.c from osmo-bts
2011-06-05 13:31:33 +02:00
Harald Welte
135a648ad7
Introduce per-ts TSC
...
This allows us to configure a TSC for each timeslot, not just one globally for
the entire BTS.
2011-06-03 14:03:27 +02:00
Harald Welte
d64c0bca17
gsm_data_shared: introduce 'struct gsm_abis_mo'
...
... as a common wrapper around nm_attr and nm_state
2011-06-03 14:03:27 +02:00
Holger Hans Peter Freyther
f2c1f25612
abis: Get the structs and values from libosmocore
...
Remove the forward declarations for functions and structs
that have been moved to libosmocore.
2011-05-31 00:37:47 +02:00
Harald Welte
4e4fa4ce9b
move some more abis_nm related code into libosmocore
...
This syncs openbsc.git with libosmocore.git commit rev
11c7193ad8ceb4f3898799dc44b700b8b93a59b8
2011-05-24 17:24:44 +02:00
Harald Welte
80cffaf323
Move system information related defines and code to libosmocore
...
This brings openbsc in sync with the following libosmocore commit:
b5503136fa234690d5493b19a8aee3a4ef74190d
2011-05-24 15:02:20 +02:00
Harald Welte
cdc59ff5cc
abis_nm: Some more fall-out from the abis_nm move to libosmocore
...
we want get_string_value(), not the equivalent of get_value_string()
2011-05-23 20:42:26 +02:00
Harald Welte
867d9f3985
abis_nm: fix some fallout regarding abis_nm migration to libosmocore
...
Thanks to Holger for noticing this.
2011-05-23 20:30:39 +02:00
Harald Welte
15c6172a8d
abis_nm: Move lots of generic definitions + code to libosmocore
2011-05-22 22:45:37 +02:00
Pablo Neira Ayuso
0d2881ad58
bsc: on-demand setup of nanoBTS and HSL femto sockets
...
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-22 21:03:35 +02:00
Pablo Neira Ayuso
6e52b88a17
bsc: fix bail out in case of problems bootstrapping BTS or E1 input
...
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-22 21:02:04 +02:00
Pablo Neira Ayuso
c0d17f2266
src: use namespace prefix osmo_* for misc utils
...
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-07 12:58:59 +02:00
Pablo Neira Ayuso
dfb342c19a
src: use namespace prefix osmo_counter*
...
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-06 12:14:16 +02:00
Pablo Neira Ayuso
e1273b1f3c
src: use namespace prefix osmo_wqueue*
...
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-06 12:12:49 +02:00
Pablo Neira Ayuso
bbc5b99a6b
src: use namespace prefix osmo_signal*
...
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-06 12:12:31 +02:00
Pablo Neira Ayuso
4db9299286
src: use namespace prefix osmo_fd* and osmo_select*
...
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-06 12:11:23 +02:00
Pablo Neira Ayuso
bf540cb7c3
src: use namespace prefix osmo_timer* for timer functions
...
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-06 12:11:06 +02:00
Holger Hans Peter Freyther
66e14cdda6
paging: Provide the number of pending requests
...
Address the FIXME and take code from the on-waves/bsc-master
branch. This will count the number of requests.
2011-05-02 19:19:15 +02:00
Holger Hans Peter Freyther
5a081bbb1d
paging: Initialize structs internally to avoid a crash
...
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-05-02 19:19:15 +02:00
Holger Hans Peter Freyther
e188010512
bsc: Allow to have a list of MSCs/MUXs to connect to
...
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-26 09:36:19 +02:00
Holger Hans Peter Freyther
5deb6c3c5f
abis: Use LOGL_ERROR for the Failure Event Report
...
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-26 09:33:47 +02:00
Holger Hans Peter Freyther
80352e03ca
ho: Initialize nmp_worst as it was not initialized
...
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-18 17:31:40 +02:00
Holger Hans Peter Freyther
d447e99587
bsc: Move transaction.c from the libbsc to the libmsc
...
The BSC code does not use transactions, move it to the libmsc.
2011-04-18 17:31:40 +02:00
Holger Hans Peter Freyther
a8a09df6a6
misc: Remove sys/types.h includes from the files
...
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-18 17:31:39 +02:00
Holger Hans Peter Freyther
c42ad8b686
misc: Move from u_int to uint types of stdint.h
...
This was done with sed on the files.
2011-04-18 17:31:39 +02:00
Holger Hans Peter Freyther
b326100b12
misc: Fix compiler warnings in the code
2011-04-07 23:34:54 +02:00
Pablo Neira Ayuso
136f453dd2
src: use new library libosmogsm and new path to headers in libosmocore
...
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-23 18:17:56 +01:00
Pablo Neira Ayuso
739a566961
bsc: change bsc_vty_init to take logging categories as parameter
...
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-19 18:50:38 -03:00
Pablo Neira Ayuso
682587748f
vty: fix segfault if rf_ctl is not set
...
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-08 15:35:34 +01:00
Harald Welte
40d1c3fef1
RBS2000: Automatically connect/start/configure/enable most MOs
2011-03-06 23:20:28 +01:00
Harald Welte
8b277ac381
OM2000: Make sure we fill the nsd->bts member for NM state events
2011-03-06 23:00:32 +01:00
Harald Welte
1484d88d7a
OM2000: First attempt in automatically configuring most MOs
...
TS objects are not part yet
2011-03-06 22:12:24 +01:00
Harald Welte
f38ca9aec7
OML: Include a pointer to the BTS in NM STATE CHANGE signals
...
... this allows the BTS driver to decide if it should handle the event at all
2011-03-06 22:11:32 +01:00
Harald Welte
d529db6e50
OM2000: Move IS conn group list generation out of VTY code
2011-03-06 21:49:21 +01:00
Harald Welte
af9b810419
OM2000: Track the Operational Info and MO state
2011-03-06 21:20:38 +01:00
Harald Welte
217c6b6ad2
OM2000: Remove "is-conf-req" from VTY, use "configuration-request"
...
This unifies the syntax a bit
2011-03-06 19:46:15 +01:00
Harald Welte
e898ecc57b
OM2000: Process MO STATE and ACCORDANCE INFO
2011-03-06 19:26:11 +01:00
Harald Welte
1edc2b4c85
OM2000: Fix configuration of TCH timeslots
2011-03-06 19:01:54 +01:00
Harald Welte
ba9adbb951
OM2000: Fix configuration of Timing Function (missing timing src)
2011-03-06 19:01:16 +01:00
Harald Welte
75755c5d87
OM2000: More work on the TS configuration request
...
It seems the differences for the various channel combinations are big
2011-03-05 20:38:35 +01:00
Harald Welte
8aeac19dbd
OM2000: Route TS config requests to the right TRX
...
The TRX number is encoded in mo.assoc_so, whereas the TS number
is in mo.inst!
2011-03-05 20:15:09 +01:00
Harald Welte
f6d6b21ec2
OM2000: TLV parser definitions for more DEI's
2011-03-05 20:13:52 +01:00
Harald Welte
aff63bc089
OM2000: Consider OP_INFO_REJ and TEST_REQ_REJ as NACK
2011-03-05 19:46:49 +01:00
Harald Welte
1164dce679
OM2000: Add channel combination specific DIEs for TS config request
...
... and in order to do this reasonably well, we have to get rid of
the pre-computed message length field in the OML header. Instead,
we now simply compute it at abis_om2k_sendmsg() time based on the
msgb_l2len().
2011-03-05 19:21:26 +01:00
Harald Welte
3ede723cb4
OM2000: Handle (Dis)Connect Reject in NACK handler
2011-03-05 17:58:13 +01:00
Harald Welte
e6e8383a92
OM2000: Print result/reason code when receiving a reject
2011-03-05 17:52:09 +01:00
Harald Welte
5748c20be1
OM2000: fix generation of frequency list DIE
2011-03-05 17:30:07 +01:00
Harald Welte
d4571f41a3
HSL: Make sure not to send HSL specific OML init on non-HSL BTS
2011-03-05 16:24:20 +01:00
Harald Welte
53492c86e8
OM2000: Make sure to set the Associated SO to 255 in case of RX/TX
2011-03-05 16:21:01 +01:00
Harald Welte
52af3aee5a
OM2000 VTY: Don't send RX configuration request to TX
2011-03-05 16:14:34 +01:00
Harald Welte
f9cf961a66
OM2000: Add support for configuring the TF (Timing Function)
2011-03-05 14:36:47 +01:00
Harald Welte
a0ce349f0c
OM2000: Add support for sending TX, RX and TS configuration requests
...
They can be triggered from the VTY
2011-03-05 14:13:14 +01:00
Harald Welte
c08e8be4ee
fix path of bscconfig.h include file
2011-03-04 13:53:51 +01:00
Harald Welte
388cbbfc41
Some more SR1.0.1 related fixes
...
somehow all the 0x81 in OML became 0x80, and the 0x80 of RSL became
0x80.
2011-03-04 13:45:03 +01:00
Harald Welte
17a7634043
fix erroneous modification of DTX parameter introduced in previous HSL commit
2011-03-04 13:44:49 +01:00
Harald Welte
26d7907b02
Implement the HSL SR1.0.1 protocol
...
It seems HSL has fixed most of their obvious issues in the SR1.0.1
release. However, this creates quite an incompatibility of the
protocol, and we have to adapt accordingly
2011-03-04 13:44:12 +01:00
Harald Welte
fd355a3c6f
[HSL] initial support for the HSL 2.75G Femtocell
...
The HSL Femtocell seems to be a poor man implementation of the
ip.access Abis/IP protocol, but cutting corners wherever possible.
We try to workaround those corners wherever possible...
2011-03-04 13:44:07 +01:00
Harald Welte
89579b4317
prefix sub-directories containing libraries with 'lib'
...
... and make sure tests work again after restructuring
2011-03-04 13:23:09 +01:00