Commit Graph

909 Commits

Author SHA1 Message Date
Steve Markgraf f03f74aa7b mtk_hack: This is very experimental code for running "loader" on MT622x-based devices
Since this is just a hack and no proper separation, you have to upload
compal_e88/loader.compalram.bin with osmocom -m mtk
to the phone.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-10-11 00:54:17 +02:00
Andreas.Eversberg 86f4d80b7f [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.
2010-10-05 15:42:29 +00:00
Andreas.Eversberg 6dafb958ba [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.
2010-10-03 21:53:24 +00:00
Andreas.Eversberg 6981756950 [layer23] Fixed emergency call setup 2010-10-03 21:52:56 +00:00
Andreas.Eversberg f0c807a682 [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.
2010-10-03 10:51:31 +00:00
Holger Hans Peter Freyther 813c098ebd misc: Fix the name of the header file for the hexdump... 2010-10-03 03:22:55 +08:00
Holger Hans Peter Freyther ca5e51df44 gsm48_rr.c: Move the access below the parsing (found by clang 2010-10-03 02:45:28 +08:00
Holger Hans Peter Freyther 50d47aeb72 msic: Include osmocom/util.h for the hexdump definition 2010-10-03 02:39:29 +08:00
Holger Hans Peter Freyther 87ef8ec74e sim.c: Fix NULL pointer dereference found by clang. 2010-10-03 02:39:06 +08:00
Holger Hans Peter Freyther bc1e9354f7 osmoload.c: Cast to uint8_t from char* to fix a compiler warning 2010-10-03 02:29:58 +08:00
Holger Hans Peter Freyther ef365cc9ad osmocom.c: rc is not assigned and contains garbage, return 0. 2010-10-03 02:20:32 +08:00
Holger Hans Peter Freyther ef9298d915 osmocon.c: Use C99 inttypes instead of u_intX_t. 2010-10-03 02:16:32 +08:00
Holger Hans Peter Freyther b504f5c8b8 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.
2010-10-03 02:09:35 +08:00
Andreas.Eversberg fe353f1b9f [layer23] Notify user when config change requires restart to take effect 2010-10-02 16:34:04 +00:00
Andreas.Eversberg 66ff1cb347 [layer23] Minimum RX-level is now a configuratio option
The default (if config not yet created/updated), is still taken from
settings.c.
2010-10-01 19:24:34 +00:00
Andreas.Eversberg f867cd2077 [layer23] Remove obsolete function from header file 2010-10-01 19:22:31 +00:00
Andreas.Eversberg bb6ff927da [layer23] Using loglevel to disable heavy debugging on cell selection 2010-10-01 19:21:33 +00:00
Andreas.Eversberg 0da908f3f1 [layer23] Disabled display of SYSINFO message at message handlers
This way the SYSINFO is logged once and not three times.
2010-09-29 13:29:31 +00:00
Andreas.Eversberg 6d2625ce0c [layer23] Added a workarround to ignore the first (invalid) PM result 2010-09-29 13:28:04 +00:00
Andreas.Eversberg 2926896143 [layer23] Disabled the scanning of maximum cells per band
This way all frequencies are scanned, in case they meat the minimum
receive level.
2010-09-29 13:26:34 +00:00
Andreas.Eversberg d2c862a849 [layer23] Disabled may debugging in cell selection process
This way the syncing and cell selection can be reviewed much better.
2010-09-29 13:24:12 +00:00
Andreas.Eversberg 53d8bf0faa [layer23] Added missing state change, if location update is not required. 2010-09-29 13:18:46 +00:00
Dieter Spaar 78704ca3fe target/dsp: Add dsp audio initialization
Written-by: Dieter Spaar <spaar@mirider.augusta.de>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-09-28 08:04:19 +02:00
Dieter Spaar f4bbb30f66 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>
2010-09-28 08:04:19 +02:00
Sylvain Munaut 61fdec01f5 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>
2010-09-28 08:04:19 +02:00
Sylvain Munaut 9257fe53bf l1ctl: Add initial tch_mode value in DM_EST_REQ
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-09-28 08:04:18 +02:00
Sylvain Munaut d227b37f12 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>
2010-09-28 08:04:18 +02:00
Andreas.Eversberg 732f102cc2 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>
2010-09-28 08:04:18 +02:00
Sylvain Munaut 1b6c2593eb 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>
2010-09-28 08:04:18 +02:00
Sylvain Munaut aef1e05d9a fw/layer1: Introduce prim.h for all primitive related things
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-09-28 08:04:18 +02:00
Sylvain Munaut f8d372d7e4 fw/layer1: Fix type of p3 in tdma window setup/cleanup sched items
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-09-28 08:04:18 +02:00
Andreas.Eversberg 167648f2a5 [layer23] Fixed incorrect use of memcpy for frequency list IEs 2010-09-28 06:15:39 +00:00
Andreas.Eversberg bd9cc54ad6 [layer23] Fixed parsing of ASSIGNMENT / HANDOVER (type-value) IEs 2010-09-27 19:46:26 +00:00
Andreas.Eversberg 86c1392af9 [layer23] Fixed debug output in gsm48_rr.c 2010-09-27 18:55:57 +00:00
Andreas.Eversberg e97b7c418c [layer23] Alter simulated-delay via VTY on the fly (active channel) 2010-09-27 18:53:03 +00:00
Andreas.Eversberg e326e81728 [layer23] Handle invalidation of TMSI correctly 2010-09-26 22:30:15 +00:00
Andreas.Eversberg 942bfeab18 [layer23] Cleanup of various 'printf' debugging 2010-09-26 22:02:32 +00:00
Andreas.Eversberg 7e4f54c4ee [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.
2010-09-26 21:08:53 +00:00
Andreas.Eversberg ed342e1673 [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.
2010-09-26 20:14:58 +00:00
Sylvain Munaut 6c6b073f54 Remove the various checks for high TS as those should now work
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-09-26 20:05:23 +02:00
Sylvain Munaut 48d3a7ab4c 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>
2010-09-26 20:05:23 +02:00
Sylvain Munaut 2400d60d0d 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>
2010-09-26 20:05:23 +02:00
Sylvain Munaut daa8630468 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>
2010-09-26 20:05:22 +02:00
Sylvain Munaut 1ca0ce1a5c fw/layer1: Display diff in hwtimer value when lost interrupt is detected
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-09-26 20:05:22 +02:00
Sylvain Munaut 1e75e61001 layer23/lapdm: Fix typos SAMB -> SABM
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-09-26 20:05:22 +02:00
Andreas.Eversberg beccb356d5 [layer23] Do not reject mobile terminated calls with no codec given
Send the list of supported codecs instead.
2010-09-26 18:39:01 +00:00
Andreas.Eversberg b0336cd484 [layer23] Speech codec selection and negotiation with network 2010-09-26 17:08:10 +00:00
Andreas.Eversberg 602dcf4d0d [layer23] Added support for changing TCH mode via L1CTL messages 2010-09-26 17:06:06 +00:00
Andreas.Eversberg 88a578f6c9 [layer23] Minor fixes in lapdm.c
For single burst messages, the length is set from layer2 header.
2010-09-26 17:02:36 +00:00
Andreas.Eversberg 4ed601ae4e [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.
2010-09-26 10:35:46 +00:00