Harald Welte
fe0c13f8bd
OML: when allocating merged tlvp arrays for MO, use bts context
...
'ts' is not a talloc-managed pointer but an offset into the bts
structure. As such, we cannot pass it to talloc as context!
2012-03-15 23:39:53 +01:00
Harald Welte
3525f2c038
we currently run the board alwasy in clock master mode
2012-03-15 23:39:37 +01:00
Harald Welte
20d73555a2
update to new "superfemto.h" header file naming
2012-03-15 21:27:21 +01:00
Harald Welte
47589f10a4
Introduce a HW_VERSION_1 #define
...
This #define helps us to distinguish the subtle API differences between
the earlier v1 (2011) hardware and the later v2 (2012) model.
2012-03-07 18:05:57 +01:00
Harald Welte
f1cbd81984
prepare for splitting L1 queue into signalling/tch/pdtch
...
We don't use multiple queues yet, but we very well might end up using
them soon.
2012-03-07 18:05:18 +01:00
Harald Welte
818cb2d314
update config file to parse correctly
2012-02-10 13:32:58 +01:00
Holger Hans Peter Freyther
6dd7c4fb57
misc: Check return value of msgb _alloc functions
...
Attempt to catch all functions that allocate a msgb and didn't
check the return value of the allocation.
2012-01-23 10:22:09 +01:00
Holger Hans Peter Freyther
bb9647f651
ipa: Send the DLCX Indication with the right message discriminator
...
The IPA messages for RTP should use the IPA vendor as message
discriminator.
2012-01-15 18:09:40 +01:00
Holger Hans Peter Freyther
2e677958d2
efr: Add efr to the femtobts_tch_pl_names array
...
Parts of the code check if GsmL1_TchPlType_Efr is defined, others
parts don't. Follow the easy route and assume it is defined.
2012-01-14 21:47:59 +01:00
Holger Hans Peter Freyther
771e77dff0
oml: Use talloc_free(ptr) instead of talloc_free(ptr_to_ptr)
...
tp_merged points to memory allocated by talloc_zero, no need to
hand the address of that to talloc itself.
2012-01-14 21:47:49 +01:00
Holger Hans Peter Freyther
62579c7a34
oml: Mention the SAPI that is activated in the log message
...
I was wondering why the channel was activated twice but it needs
to be activated for each SAPI.
2012-01-14 21:47:41 +01:00
Holger Hans Peter Freyther
4cd68dc4d7
bts: Use msgb_dequeue and msgb_enqueue for the AGCH queue
...
The TODO item still applies to somehow limit the queue of incoming
messages and drop older ones first. A sane limit would be the number
of channels (+ or * 2).
2012-01-14 21:47:30 +01:00
Holger Hans Peter Freyther
eab71534ef
sysmo: handle_ph_data_ind has paths rc is not initialized
...
rc might not be initialized when going through the default
statement but also hitting a break inside the switch case
statement for GsmL1_Sapi_Sacch.
l1_if.c:530:2: warning: Undefined or garbage value returned to caller
return rc;
2012-01-14 21:47:19 +01:00
Harald Welte
6e121417a5
RSL: fix typo in comment
2012-01-14 12:35:40 +01:00
Harald Welte
7a44e47ed6
OML SET CHAN ATTR: merge TS attributes (not BTS) and fix mem leak
...
We have to
* merge the new attributes with the exiting TS (not BTS) attributes
* in case of success, attach the new merged attributes to our state
* in case of success, free the old attributes
Thanks to Holger for pointing this out.
2012-01-14 12:28:17 +01:00
Holger Hans Peter Freyther
6aa2a574fb
sysmo-bts: The code is not used (and built), remove it.
...
The BTS is using the LAPDm code in polling mode, there will be no
callbacks (e.g. a BTS does not transmit RACH bursts). Remove the code.
2012-01-11 19:27:54 +01:00
Holger Hans Peter Freyther
fd58d925a8
bts.h: lchan_init_lapdm is listed twice, remove one
2011-12-11 12:57:36 +01:00
Holger Hans Peter Freyther
b0985e3fa5
test: Introduce a very simple test for the paging subsystem
...
Check that adding a paging command works, check that it is expired
after the first call to paging_gen_msg. The test will be extended
to test the scheduling and selection of the various paging messages.
2011-12-01 09:14:32 +01:00
Holger Hans Peter Freyther
467e149763
paging: Provide functions to check the internal state of the paging system
2011-12-01 09:09:18 +01:00
Holger Hans Peter Freyther
127ec05b4e
paging: Do not crash if we get called for the wrong frame/t1/t2/t3
...
If someone wants to have paging for a wrong frame, gracefully return
and do not fill the output buffer. Because we are on the wrong frame
I think it is best to not fill the frame, this is why I did not add a
check to l1_if.c to generate an empty frame.
2011-12-01 08:47:53 +01:00
Holger Hans Peter Freyther
79da6f3283
misc: Move the cmr_index into the #if 0 block as it is only used there
2011-11-29 21:55:12 +01:00
Harald Welte
143bb812dc
LAPDm: Use lapdm_channel_exit() and avoid copy+paste bug
...
We have to either lapdm_exit() both DCCH and ACCH (not 2x ACCH) or
rather call lapdm_channel_exit() which does that for us.
Thanks to Holger Freyther for spotting this bug.
2011-11-29 12:15:16 +01:00
Harald Welte
fe4893e625
RSL: Actually check if BSC-requested cipher is supported
2011-11-24 17:46:22 +01:00
Holger Hans Peter Freyther
2660812084
audio: Make bts_model_rtp_rx_cb compatible with the prototype
2011-11-07 14:26:48 +01:00
Holger Hans Peter Freyther
5cdcf8a837
sysmo-bts: Include bts.h for bts_shutdown, remove unused variable
2011-11-07 14:13:29 +01:00
Holger Hans Peter Freyther
efdb45d5d0
common: Include bts.h for bts_shutdown
2011-11-07 14:09:53 +01:00
Holger Hans Peter Freyther
477f35e78c
sysmo-bts: Use the z modifier to print the result of sizeof
2011-11-07 14:08:46 +01:00
Holger Hans Peter Freyther
187871e2ca
sysmobts-vty: Fix compiler warnings about the clock value
...
The first one just sets the val to 0xffff, the second converted
the value to integer twice.
sysmobts_vty.c: In function ‘cfg_trx_clkcal_def’:
sysmobts_vty.c:109:15: warning: unused variable ‘clkcal’ [-Wunused-variable]
sysmobts_vty.c: In function ‘cfg_trx_clkcal’:
sysmobts_vty.c:122:15: warning: unused variable ‘clkcal’ [-Wunused-variable]
2011-11-07 14:02:02 +01:00
Holger Hans Peter Freyther
b10d74d821
config: Rename llapdm -> llapd in the example configuration
2011-11-07 13:48:02 +01:00
Harald Welte
9582883235
add VTY based way to set clock calibration of sysmobts L1
2011-10-12 13:36:22 +02:00
Harald Welte
c373448e03
fix various compiler warnings across the code
...
this deals with unused cocde, unused variables and undeclared symbols in
various places.
2011-09-19 20:46:51 +02:00
Harald Welte
7899dc5fcf
sysmobts: fix initial codec mode computation
...
There is no off-by-one between osmocom and L1 definitions...
2011-09-09 23:55:39 +02:00
Harald Welte
215d9eecdd
sysmobts: channel activation changes for v2.4 L1 DSP firmware
...
We now have to explicitly indicate the tchPlType at channel activation
type, so L1 knows which channel decoder to use (FR, EFR, AMR, ...)
Also, we properly implement the initial codec mode selection as per TS
05.09
2011-09-09 23:30:46 +02:00
Harald Welte
06636b6155
AMR: change definition of amr_get_initial_mode() return value
...
AMR: return AMR_CODEC_MODE (0..3) instead of full range
2011-09-09 23:29:27 +02:00
Harald Welte
9508fb80a4
Introduce new amr.[ch] for AMR related functions
2011-09-09 22:32:45 +02:00
Harald Welte
4ccca1ce36
OML: make sure max_power_red is scaled by 2 to convert from 12.21 to dBm
2011-09-09 22:04:09 +02:00
Harald Welte
a4a3574b1d
update osmo-bts to conform to L1 v2.4 API changes
2011-09-09 15:12:52 +02:00
Harald Welte
2c40d02f27
Inquire DSP/FPGA version at BTS boot and check band compatibility
2011-09-09 14:10:57 +02:00
Harald Welte
16c0ab92c1
add commands to configure RTP jitter buffer
...
there's one global setting for the BTS default value, plus an
interactive command to change the buffer of an active lchan on the fly
2011-09-08 15:21:39 +02:00
Harald Welte
111b8e673b
auto-generate a version
2011-09-07 21:28:27 +02:00
Harald Welte
72b6989ec9
make sure 'band' will correctly parse the crap that libosmocore generates
2011-09-07 20:49:25 +02:00
Harald Welte
f49e3dd3af
store the last SID frame of a given LCHAN so we can repeat it
...
repeating the last SID frame is required during 20ms intervals where we
don't get a new SID update (SID RTP frames are valid up to 160ms)
2011-09-07 12:42:15 +02:00
Harald Welte
e5d082f356
depend on more recent libosmo-trau for polling support
2011-09-07 12:40:50 +02:00
Harald Welte
5355ead9d9
use osmo_ortp in POLLING mode instead of select loop integration
...
This solves a lot of the problems we've been seeing in the context
of large jitter (uRTP) or classic RTP with SID frames
2011-09-07 11:55:08 +02:00
Harald Welte
42f80bc7af
add RTP logging
2011-09-07 11:54:23 +02:00
Harald Welte
82c4d8685c
user DRTP where appropriate, not DL1C
2011-09-06 22:24:31 +02:00
Harald Welte
5fa9d9c18f
RSL: get rid of some compiler warnings
2011-09-06 22:20:51 +02:00
Harald Welte
24713348c4
More comprehensive AMR handling
...
* parse AMR multirate config form 04.08 IE into easier format
* CMR, CMC and CMI on the L1 side are an _index_ into the current
mode array
* Fix conversion of AMR SID frames from RTP -> L1
2011-09-06 22:19:40 +02:00
Harald Welte
a16bcc2cc6
update screenrc; we no longer have the '-B' command line option
2011-09-04 23:23:49 +02:00
Harald Welte
aadb046698
update configure.ac to make sure we have libosmocore-0.3.9
2011-09-04 23:00:20 +02:00