osmocom-bb.git
13 years ago[layer23] Adding application to scan/receive and log SYSTEM INFORMATIONS
Andreas.Eversberg [Sun, 24 Oct 2010 13:39:37 +0000 (13:39 +0000)]
[layer23] Adding application to scan/receive and log SYSTEM INFORMATIONS

13 years ago[layer23] Moving sysinfo.c and gps.c (.h) to liblayer23
Andreas.Eversberg [Sun, 24 Oct 2010 13:30:17 +0000 (13:30 +0000)]
[layer23] Moving sysinfo.c and gps.c (.h) to liblayer23

This makes sense, since multiple applications use it.

13 years ago[layer23] Fixed conditions for complete set of SYSTEM INFORMATION
Andreas.Eversberg [Sun, 24 Oct 2010 12:55:31 +0000 (12:55 +0000)]
[layer23] Fixed conditions for complete set of SYSTEM INFORMATION

13 years ago[layer23] Old SYSTEM INFORMATION 5 and 6 must be removed when entering DM
Andreas.Eversberg [Sun, 24 Oct 2010 12:34:53 +0000 (12:34 +0000)]
[layer23] Old SYSTEM INFORMATION 5 and 6 must be removed when entering DM

13 years ago[layer23] Moving decoding of SYSTEM INFORMATION to sysinfo.c
Andreas.Eversberg [Sun, 24 Oct 2010 12:30:37 +0000 (12:30 +0000)]
[layer23] Moving decoding of SYSTEM INFORMATION to sysinfo.c

This way the decoding can be re-used by other applications.

13 years ago[layer23] Added debugging for GPS at logging.c
Andreas.Eversberg [Sun, 24 Oct 2010 12:23:05 +0000 (12:23 +0000)]
[layer23] Added debugging for GPS at logging.c

13 years ago[layer23] Fix of GPS states
Andreas.Eversberg [Sun, 24 Oct 2010 12:20:08 +0000 (12:20 +0000)]
[layer23] Fix of GPS states

13 years agolayer23/lapdm: Properly handle S frame with F=1 when in timer recovery
Sylvain Munaut [Sat, 23 Oct 2010 18:47:26 +0000 (20:47 +0200)]
layer23/lapdm: Properly handle S frame with F=1 when in timer recovery

This is the signal to exit recovery mode !
See GSM 04.06 Section 5.5.7

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
13 years agoMerge commit 'dc0ebdfbdf3b1a381754c6ef4a59b0354eba7705'
Sylvain Munaut [Sun, 24 Oct 2010 10:05:12 +0000 (12:05 +0200)]
Merge commit 'dc0ebdfbdf3b1a381754c6ef4a59b0354eba7705'

13 years agoRemoved solved issues from gsm48-andreas/issues.txt
Andreas.Eversberg [Sun, 24 Oct 2010 11:20:51 +0000 (11:20 +0000)]
Removed solved issues from gsm48-andreas/issues.txt

The remaining issues have only todo with openBSC and should be fixed,
the issues.txt will be obsolete then.

13 years agobitvec: Fix decoding of H / L values
Andreas.Eversberg [Sun, 24 Oct 2010 09:59:33 +0000 (11:59 +0200)]
bitvec: Fix decoding of H / L values

it returns if a given bit in the vector is "high" or "low".
the bitval that represents "high" depends on the bit position.
bitval2mask returns that. so we must check if the bit in the vector
equals the returned bitval.

13 years ago[layer23] Don't request a channel, if SYSINFO 3 is not available
Andreas.Eversberg [Wed, 20 Oct 2010 18:16:12 +0000 (18:16 +0000)]
[layer23] Don't request a channel, if SYSINFO 3 is not available

SI3 is required in order to request a channel the correct way. If not
yet received, the process crashes due to an arithmetic exception.

13 years ago[layer23] Fix of channel request cause "OTHER or SDCCH"
Andreas.Eversberg [Wed, 20 Oct 2010 18:12:44 +0000 (18:12 +0000)]
[layer23] Fix of channel request cause "OTHER or SDCCH"

13 years ago[layer23] Completed GPS reading process
Andreas.Eversberg [Wed, 20 Oct 2010 18:09:31 +0000 (18:09 +0000)]
[layer23] Completed GPS reading process

This includes "double" values of logitude and latitude, as well as time
stamp, and if the values are valid or not (GPS fix).

13 years agomsgb: Add non-inlined helper functions to ease with language bindings
Holger Hans Peter Freyther [Mon, 18 Oct 2010 16:22:31 +0000 (18:22 +0200)]
msgb: Add non-inlined helper functions to ease with language bindings

It is easier from languages that dlopen libosmocore to have a function
to access this data than to poke at the bytes of the struct directly. Add
copyright for this method and the reset method I did earlier this year.

13 years agogsm0480: Add method create own number response
Holger Hans Peter Freyther [Mon, 18 Oct 2010 14:56:43 +0000 (16:56 +0200)]
gsm0480: Add method create own number response

13 years ago[layer23] Fixed header handling of some radio ressource SAP msgs
Andreas.Eversberg [Sat, 16 Oct 2010 08:18:31 +0000 (08:18 +0000)]
[layer23] Fixed header handling of some radio ressource SAP msgs

13 years ago[layer23] Support of receiving STATUS at call control
Andreas.Eversberg [Fri, 15 Oct 2010 19:15:59 +0000 (19:15 +0000)]
[layer23] Support of receiving STATUS at call control

13 years ago[layer23] DTMF support
Andreas.Eversberg [Fri, 15 Oct 2010 18:54:57 +0000 (18:54 +0000)]
[layer23] DTMF support

13 years ago[layer23] If the mobile sticks to a cell, RXLEV_MIN is ignored
Andreas.Eversberg [Fri, 15 Oct 2010 18:50:25 +0000 (18:50 +0000)]
[layer23] If the mobile sticks to a cell, RXLEV_MIN is ignored

13 years agocodec: Add bit ordering tables from specs for HR,FR,EFR & AMR
Sylvain Munaut [Fri, 8 Oct 2010 13:09:16 +0000 (15:09 +0200)]
codec: Add bit ordering tables from specs for HR,FR,EFR & AMR

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
13 years agoUpdate .gitignore
Sylvain Munaut [Fri, 8 Oct 2010 13:09:41 +0000 (15:09 +0200)]
Update .gitignore

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
13 years ago[layer23] Adding abbreviated dialing to VTY
Andreas.Eversberg [Thu, 14 Oct 2010 07:37:52 +0000 (07:37 +0000)]
[layer23] Adding abbreviated dialing to VTY

It is possible to store phone numbers with abbreviations now. Dialing these
abbreviation makes testing of mobile originated calls much easier too.

13 years ago[layer23] If SIM is invalid, display that on the VTY
Andreas.Eversberg [Wed, 13 Oct 2010 18:33:16 +0000 (18:33 +0000)]
[layer23] If SIM is invalid, display that on the VTY

13 years ago[layer23] Fix of signal loss handling
Andreas.Eversberg [Wed, 13 Oct 2010 18:30:59 +0000 (18:30 +0000)]
[layer23] Fix of signal loss handling

The cell must be kept "selected" in case of loosing radio link. It is
required to perform reselection of that cell or of the given neighbor
cells.

13 years ago[layer23] Minor fix of debugging message in call control
Andreas.Eversberg [Wed, 13 Oct 2010 18:28:57 +0000 (18:28 +0000)]
[layer23] Minor fix of debugging message in call control

13 years ago[layer23] Fixed cell monitoring output (RR idle mode)
Andreas.Eversberg [Wed, 13 Oct 2010 18:27:15 +0000 (18:27 +0000)]
[layer23] Fixed cell monitoring output (RR idle mode)

13 years ago[layer23] Minor change in paging debugging
Andreas.Eversberg [Wed, 13 Oct 2010 18:26:04 +0000 (18:26 +0000)]
[layer23] Minor change in paging debugging

13 years ago[layer23] Give ARFCN together with "show states <MS_NAME>"
Andreas.Eversberg [Wed, 13 Oct 2010 18:23:20 +0000 (18:23 +0000)]
[layer23] Give ARFCN together with "show states <MS_NAME>"

13 years ago[layer23] Fixed CAUSE information element
Andreas.Eversberg [Tue, 12 Oct 2010 17:41:49 +0000 (17:41 +0000)]
[layer23] Fixed CAUSE information element

Coding standard must be 0x3 = GSM. Otherwise it may generate a protocol error
at the network.

13 years ago[layer23] Fixed ASSIGNMENT / HANDOVER failure handling
Andreas.Eversberg [Tue, 12 Oct 2010 11:26:51 +0000 (11:26 +0000)]
[layer23] Fixed ASSIGNMENT / HANDOVER failure handling

13 years ago[layer23] Reconnect of layer 2 link must be performed in idle mode also
Andreas.Eversberg [Tue, 12 Oct 2010 11:19:06 +0000 (11:19 +0000)]
[layer23] Reconnect of layer 2 link must be performed in idle mode also

13 years ago[layer23] Call control is disabled when mobile is set to SDCCH only
Andreas.Eversberg [Tue, 12 Oct 2010 09:40:05 +0000 (09:40 +0000)]
[layer23] Call control is disabled when mobile is set to SDCCH only

On SDCCH only mobiles, incomming calls must be rejected by a minimal call
control implementation, even if basic calls are not supported.

13 years ago[layer23] Fixed resume of datalink (after assignment or handover)
Andreas.Eversberg [Tue, 12 Oct 2010 09:03:34 +0000 (09:03 +0000)]
[layer23] Fixed resume of datalink (after assignment or handover)

In order to resume correctly, the first message (ASSIGNMENT COMPLETE or
HANDOVER COMPLETE) must be sent after the link is resumed. Therefore it
must be given with the resume command. Unacknowledged messages are
transmitted afterwards, if any.

13 years ago[layer23] FACILITY message is handled now, but not decoded
Andreas.Eversberg [Tue, 12 Oct 2010 08:53:40 +0000 (08:53 +0000)]
[layer23] FACILITY message is handled now, but not decoded

13 years ago[layer23] Bugfix: Loosing CCCH signal must cause unselection of cell.
Andreas.Eversberg [Tue, 12 Oct 2010 08:48:08 +0000 (08:48 +0000)]
[layer23] Bugfix: Loosing CCCH signal must cause unselection of cell.

13 years ago[layer23] Adding some debugging output
Andreas.Eversberg [Tue, 12 Oct 2010 08:44:18 +0000 (08:44 +0000)]
[layer23] Adding some debugging output

13 years ago[layer23] Implementation of signal loss criteria as defined in TS 05.08
Andreas.Eversberg [Tue, 12 Oct 2010 08:26:48 +0000 (08:26 +0000)]
[layer23] Implementation of signal loss criteria as defined in TS 05.08

There are two criterions for lossing a signal, idle mode and dedicated mode.
A counter counts down when a frame is dropped, and counts up when a valid
frame is received on  certain channel. The loss criterion is reached, if the
counter reaches 0. The values added to / removed from the counter and the
limits depend on the process.

13 years agoussd: gsm_7bit_decode will null terminate the string
Holger Hans Peter Freyther [Mon, 11 Oct 2010 07:28:23 +0000 (09:28 +0200)]
ussd: gsm_7bit_decode will null terminate the string

13 years agoussd: Make sure that we at least have 8 bytes when decoding the string
Holger Hans Peter Freyther [Mon, 11 Oct 2010 07:23:50 +0000 (09:23 +0200)]
ussd: Make sure that we at least have 8 bytes when decoding the string

The actual gsm_7bit_decode can still cause a buffer overrun
but at least we are safe until this point.

13 years agoussd: Add size checks to the parse_ss_invoke calls
Holger Hans Peter Freyther [Mon, 11 Oct 2010 07:12:33 +0000 (09:12 +0200)]
ussd: Add size checks to the parse_ss_invoke calls

Make sure that the mandatory and optional part fits.

13 years agoussd: Make sure the component fits.
Holger Hans Peter Freyther [Mon, 11 Oct 2010 07:07:50 +0000 (09:07 +0200)]
ussd: Make sure the component fits.

Use a while() {} to check offset +2 <= length on the first
iteration of the loop. Once we have the component length
check that it is going to fit into the given length.

13 years agoussd: Work with uint16_t for the length
Holger Hans Peter Freyther [Mon, 11 Oct 2010 07:06:47 +0000 (09:06 +0200)]
ussd: Work with uint16_t for the length

Work with uint16_t for the length all the way.

13 years agoussd: Verify that parsing is stil working and print the decoded text.
Holger Hans Peter Freyther [Mon, 11 Oct 2010 06:49:27 +0000 (08:49 +0200)]
ussd: Verify that parsing is stil working and print the decoded text.

13 years agoussd: Add next test that show that we access the data out of bounds
Holger Hans Peter Freyther [Mon, 11 Oct 2010 06:21:00 +0000 (08:21 +0200)]
ussd: Add next test that show that we access the data out of bounds

This test is showing that the internal ASN1 code is not checking
the size properly.

13 years agoussd: Check the structure of the IE.
Holger Hans Peter Freyther [Mon, 11 Oct 2010 06:08:58 +0000 (08:08 +0200)]
ussd: Check the structure of the IE.

This is fixing the current crashes. Next we will need to
manipulate the content...

13 years agoussd: Add a test case, switch parsing to use a gsm48_hdr and len
Holger Hans Peter Freyther [Mon, 11 Oct 2010 05:56:06 +0000 (07:56 +0200)]
ussd: Add a test case, switch parsing to use a gsm48_hdr and len

The current USSD code is not doing any size checks, add a test
case to find out how easily we access the data out of bounds.
Begin to use the length in some places.

13 years agogsm0480: Move the USSD parsing code to libosmocore
Holger Hans Peter Freyther [Fri, 8 Oct 2010 17:47:15 +0000 (01:47 +0800)]
gsm0480: Move the USSD parsing code to libosmocore

- Change u_int8 to uint8
- Change DEBUGP to LOGP
- Change fprintf(stderr, to LOGP(0, LOGL_DEBUG
- We should define log areas used inside libosmocore

13 years agomsgfile: Add a file parser for a simple file format
Holger Hans Peter Freyther [Wed, 6 Oct 2010 16:00:15 +0000 (00:00 +0800)]
msgfile: Add a file parser for a simple file format

This file format will be used to store per country code,
per network code messages. This will be used for various
things ranging from access control, to messages...

13 years ago[layer23] Increase sync tollerance by increasing freq_err_thresh1
Andreas.Eversberg [Tue, 5 Oct 2010 15:42:29 +0000 (15:42 +0000)]
[layer23] Increase sync tollerance by increasing freq_err_thresh1

This is a quick workarround to make synchronizing to a cell more reliable.
Without it, just a few cells will sync. When network search is restarted, no
more sync happens.  By increasing the freq_err_thresh1 to 10000, many cells
sync, even after the first network search.

13 years ago[layer23] Fixed ACCH reception of TCH channels
Andreas.Eversberg [Sun, 3 Oct 2010 21:53:24 +0000 (21:53 +0000)]
[layer23] Fixed ACCH reception of TCH channels

Without it, the indicated TA and power never get received by layer23.
This may cause a release duing TCH on certain networks. Also it
is required to apply timing advance and transmit power during movement.

13 years ago[layer23] Fixed emergency call setup
Andreas.Eversberg [Sun, 3 Oct 2010 21:52:56 +0000 (21:52 +0000)]
[layer23] Fixed emergency call setup

13 years ago[layer23] Rework of "support"-features, features can be disabled now
Andreas.Eversberg [Sun, 3 Oct 2010 10:51:31 +0000 (10:51 +0000)]
[layer23] Rework of "support"-features, features can be disabled now

Supported features of hardware (support.c) can be disabled by config.
This way the full featured mobile can be downgraded to indicate less
features to the network, like disabling speech support or crypto support.

13 years agomisc: Fix the name of the header file for the hexdump...
Holger Hans Peter Freyther [Sat, 2 Oct 2010 19:22:55 +0000 (03:22 +0800)]
misc: Fix the name of the header file for the hexdump...

13 years agogsm48_rr.c: Move the access below the parsing (found by clang
Holger Hans Peter Freyther [Sat, 2 Oct 2010 18:45:28 +0000 (02:45 +0800)]
gsm48_rr.c: Move the access below the parsing (found by clang

13 years agomsic: Include osmocom/util.h for the hexdump definition
Holger Hans Peter Freyther [Sat, 2 Oct 2010 18:39:29 +0000 (02:39 +0800)]
msic: Include osmocom/util.h for the hexdump definition

13 years agosim.c: Fix NULL pointer dereference found by clang.
Holger Hans Peter Freyther [Sat, 2 Oct 2010 18:39:06 +0000 (02:39 +0800)]
sim.c: Fix NULL pointer dereference found by clang.

13 years agoosmoload.c: Cast to uint8_t from char* to fix a compiler warning
Holger Hans Peter Freyther [Sat, 2 Oct 2010 18:29:58 +0000 (02:29 +0800)]
osmoload.c: Cast to uint8_t from char* to fix a compiler warning

13 years agoosmocom.c: rc is not assigned and contains garbage, return 0.
Holger Hans Peter Freyther [Sat, 2 Oct 2010 18:20:32 +0000 (02:20 +0800)]
osmocom.c: rc is not assigned and contains garbage, return 0.

13 years agoosmocon.c: Use C99 inttypes instead of u_intX_t.
Holger Hans Peter Freyther [Sat, 2 Oct 2010 18:16:32 +0000 (02:16 +0800)]
osmocon.c: Use C99 inttypes instead of u_intX_t.

13 years agosercomm.c: Avoid unused variable compiler warning
Holger Hans Peter Freyther [Sat, 2 Oct 2010 18:09:35 +0000 (02:09 +0800)]
sercomm.c: Avoid unused variable compiler warning

For the host build the local_irq_save/_restore is a NOOP
and the compiler warns about the unused flags variable. Cast
it to void to avoid compiler warning.

13 years ago[layer23] Notify user when config change requires restart to take effect
Andreas.Eversberg [Sat, 2 Oct 2010 16:34:04 +0000 (16:34 +0000)]
[layer23] Notify user when config change requires restart to take effect

13 years ago[layer23] Minimum RX-level is now a configuratio option
Andreas.Eversberg [Fri, 1 Oct 2010 19:24:34 +0000 (19:24 +0000)]
[layer23] Minimum RX-level is now a configuratio option

The default (if config not yet created/updated), is still taken from
settings.c.

13 years ago[layer23] Remove obsolete function from header file
Andreas.Eversberg [Fri, 1 Oct 2010 19:22:31 +0000 (19:22 +0000)]
[layer23] Remove obsolete function from header file

13 years ago[layer23] Using loglevel to disable heavy debugging on cell selection
Andreas.Eversberg [Fri, 1 Oct 2010 19:21:33 +0000 (19:21 +0000)]
[layer23] Using loglevel to disable heavy debugging on cell selection

13 years agogsm0480: Add USSD format functions to libosmocore
Holger Hans Peter Freyther [Thu, 30 Sep 2010 10:30:41 +0000 (18:30 +0800)]
gsm0480: Add USSD format functions to libosmocore

These routines come from OpenBSC, the msgb_wrap_* functions
belong to Mike Haben, the rest is mine. The msgb allocation
is compatible to the GSM48 allocation in OpenBSC.

13 years ago[layer23] Disabled display of SYSINFO message at message handlers
Andreas.Eversberg [Wed, 29 Sep 2010 13:29:31 +0000 (13:29 +0000)]
[layer23] Disabled display of SYSINFO message at message handlers

This way the SYSINFO is logged once and not three times.

13 years ago[layer23] Added a workarround to ignore the first (invalid) PM result
Andreas.Eversberg [Wed, 29 Sep 2010 13:28:04 +0000 (13:28 +0000)]
[layer23] Added a workarround to ignore the first (invalid) PM result

13 years ago[layer23] Disabled the scanning of maximum cells per band
Andreas.Eversberg [Wed, 29 Sep 2010 13:26:34 +0000 (13:26 +0000)]
[layer23] Disabled the scanning of maximum cells per band

This way all frequencies are scanned, in case they meat the minimum
receive level.

13 years ago[layer23] Disabled may debugging in cell selection process
Andreas.Eversberg [Wed, 29 Sep 2010 13:24:12 +0000 (13:24 +0000)]
[layer23] Disabled may debugging in cell selection process

This way the syncing and cell selection can be reviewed much better.

13 years ago[layer23] Added missing state change, if location update is not required.
Andreas.Eversberg [Wed, 29 Sep 2010 13:18:46 +0000 (13:18 +0000)]
[layer23] Added missing state change, if location update is not required.

13 years agotarget/dsp: Add dsp audio initialization
Dieter Spaar [Fri, 17 Sep 2010 19:49:29 +0000 (21:49 +0200)]
target/dsp: Add dsp audio initialization

Written-by: Dieter Spaar <spaar@mirider.augusta.de>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
13 years agotarget/dsp: Adjust dsp parameters for TCH FR Codec
Dieter Spaar [Fri, 17 Sep 2010 19:47:54 +0000 (21:47 +0200)]
target/dsp: Adjust dsp parameters for TCH FR Codec

Written-by: Dieter Spaar <spaar@mirider.augusta.de>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
13 years agofw/layer1: Process the tch_mode and store it for later use
Sylvain Munaut [Sun, 26 Sep 2010 21:03:18 +0000 (23:03 +0200)]
fw/layer1: Process the tch_mode and store it for later use

Currently unused since no TCH support ...
Will be used by future commits.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
13 years agol1ctl: Add initial tch_mode value in DM_EST_REQ
Sylvain Munaut [Sun, 26 Sep 2010 20:55:02 +0000 (22:55 +0200)]
l1ctl: Add initial tch_mode value in DM_EST_REQ

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
13 years agofw/layer1: Add support for proper meas. report (and use in prim_tx_nb)
Sylvain Munaut [Sun, 26 Sep 2010 20:00:16 +0000 (22:00 +0200)]
fw/layer1: Add support for proper meas. report (and use in prim_tx_nb)

Rewritten based on an original patch by Andreas.Eversberg.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
13 years agofw/layer1: Add support for measurement messages from layer2/3
Andreas.Eversberg [Sun, 26 Sep 2010 09:50:56 +0000 (11:50 +0200)]
fw/layer1: Add support for measurement messages from layer2/3

Written-by: Andreas.Eversberg <jolly@eversberg.eu>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
13 years agofw/layer1: Introduce prim_utils.c for shared helper betwee primitives
Sylvain Munaut [Sun, 26 Sep 2010 19:50:00 +0000 (21:50 +0200)]
fw/layer1: Introduce prim_utils.c for shared helper betwee primitives

Currently only share the idle frame pattern.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
13 years agofw/layer1: Introduce prim.h for all primitive related things
Sylvain Munaut [Sun, 26 Sep 2010 19:29:23 +0000 (21:29 +0200)]
fw/layer1: Introduce prim.h for all primitive related things

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
13 years agofw/layer1: Fix type of p3 in tdma window setup/cleanup sched items
Sylvain Munaut [Sun, 26 Sep 2010 20:30:30 +0000 (22:30 +0200)]
fw/layer1: Fix type of p3 in tdma window setup/cleanup sched items

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
13 years ago[layer23] Fixed incorrect use of memcpy for frequency list IEs
Andreas.Eversberg [Tue, 28 Sep 2010 06:15:39 +0000 (06:15 +0000)]
[layer23] Fixed incorrect use of memcpy for frequency list IEs

13 years ago[layer23] Fixed parsing of ASSIGNMENT / HANDOVER (type-value) IEs
Andreas.Eversberg [Mon, 27 Sep 2010 19:46:26 +0000 (19:46 +0000)]
[layer23] Fixed parsing of ASSIGNMENT / HANDOVER (type-value) IEs

13 years ago[layer23] Fixed debug output in gsm48_rr.c
Andreas.Eversberg [Mon, 27 Sep 2010 18:55:57 +0000 (18:55 +0000)]
[layer23] Fixed debug output in gsm48_rr.c

13 years ago[layer23] Alter simulated-delay via VTY on the fly (active channel)
Andreas.Eversberg [Mon, 27 Sep 2010 18:53:03 +0000 (18:53 +0000)]
[layer23] Alter simulated-delay via VTY on the fly (active channel)

13 years ago[layer23] Handle invalidation of TMSI correctly
Andreas.Eversberg [Sun, 26 Sep 2010 22:30:15 +0000 (22:30 +0000)]
[layer23] Handle invalidation of TMSI correctly

13 years ago[layer23] Cleanup of various 'printf' debugging
Andreas.Eversberg [Sun, 26 Sep 2010 22:02:32 +0000 (22:02 +0000)]
[layer23] Cleanup of various 'printf' debugging

13 years ago[layer23] VTY command for changing LAI on SIM card
Andreas.Eversberg [Sun, 26 Sep 2010 21:08:53 +0000 (21:08 +0000)]
[layer23] VTY command for changing LAI on SIM card

This speed up network selection process, because no manual network search
is required to change a network.

13 years ago[layer23] Use correct IE for timing advance
Andreas.Eversberg [Sun, 26 Sep 2010 20:04:54 +0000 (20:04 +0000)]
[layer23] Use correct IE for timing advance

This patch has no effect, only the definition for timing advance IE is
changed to RSL_IE_TIMING_ADVACE.

13 years agoRemove the various checks for high TS as those should now work
Sylvain Munaut [Mon, 20 Sep 2010 18:56:06 +0000 (20:56 +0200)]
Remove the various checks for high TS as those should now work

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
13 years agofw/layer1: New TPU window sync method
Sylvain Munaut [Mon, 20 Sep 2010 18:55:09 +0000 (20:55 +0200)]
fw/layer1: New TPU window sync method

This is Dieter's sync method adapted to the new TPU stuff.
Not perfect, but should work for TS[0:7] as long as you
leave a free frame between each TS changes ...

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
13 years agofw/layer1: Fix RX TPU window - no TA dependency
Sylvain Munaut [Mon, 20 Sep 2010 18:53:25 +0000 (20:53 +0200)]
fw/layer1: Fix RX TPU window - no TA dependency

Cut & paste errror ... the TA has nothing to do in RX

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
13 years agotarget/layer1: Implement host-driven Tx power control
Sylvain Munaut [Wed, 22 Sep 2010 20:22:18 +0000 (22:22 +0200)]
target/layer1: Implement host-driven Tx power control

It's up to L23 to change the parameters using the appropriate
L1CTL call.

This is a mix between Harald's version and Dieter's version of
the TX control code.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
13 years agofw/layer1: Display diff in hwtimer value when lost interrupt is detected
Sylvain Munaut [Thu, 23 Sep 2010 19:01:39 +0000 (21:01 +0200)]
fw/layer1: Display diff in hwtimer value when lost interrupt is detected

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
13 years agolayer23/lapdm: Fix typos SAMB -> SABM
Sylvain Munaut [Wed, 22 Sep 2010 18:57:16 +0000 (20:57 +0200)]
layer23/lapdm: Fix typos SAMB -> SABM

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
13 years ago[layer23] Do not reject mobile terminated calls with no codec given
Andreas.Eversberg [Sun, 26 Sep 2010 18:39:01 +0000 (18:39 +0000)]
[layer23] Do not reject mobile terminated calls with no codec given

Send the list of supported codecs instead.

13 years ago[layer23] Speech codec selection and negotiation with network
Andreas.Eversberg [Sun, 26 Sep 2010 17:08:10 +0000 (17:08 +0000)]
[layer23] Speech codec selection and negotiation with network

13 years ago[layer23] Added support for changing TCH mode via L1CTL messages
Andreas.Eversberg [Sun, 26 Sep 2010 17:06:06 +0000 (17:06 +0000)]
[layer23] Added support for changing TCH mode via L1CTL messages

13 years ago[layer23] Minor fixes in lapdm.c
Andreas.Eversberg [Sun, 26 Sep 2010 17:02:36 +0000 (17:02 +0000)]
[layer23] Minor fixes in lapdm.c

For single burst messages, the length is set from layer2 header.

13 years ago[layer23] Adding application generated measurement report
Andreas.Eversberg [Sun, 26 Sep 2010 10:35:46 +0000 (10:35 +0000)]
[layer23] Adding application generated measurement report

The cell provides SYSTEM INFORMATION 5* and 6. These are used to create a
list of neighbor cells to monitor. Because there is no neighbor cell
monitoring supported by layer1, the list has no valid results yet.

Currently the average RX level of received frames are used to generate a new
report every second. The report is transmitted to layer1 and used there
whenever a measurement report has to be transmitted.

The timing advance and the current transmit power (as requested by network),
is included with every report.

13 years ago[layer23] LAPDm handles UNIT DATA requests correctly
Andreas.Eversberg [Sun, 26 Sep 2010 10:28:03 +0000 (10:28 +0000)]
[layer23] LAPDm handles UNIT DATA requests correctly

Optionally RSL_IE_ACCESS_DELAY and RSL_IE_MS_POWER can be given with a
message. They will be used to fill the first two bytes of the SACCH uplink
frame. The format equals to the UNIT DATA indication.