summaryrefslogtreecommitdiffstats
path: root/src/host/layer23
Commit message (Collapse)AuthorAgeFilesLines
* Fix of wong Classmark 2 when doing CM Service Request.Andreas Eversberg2011-08-063-7/+13
| | | | | | Same reason as the commit below... (3b2b3b09a) Thanx again to Dieter for pointing this out.
* Fix of wong Classmark 1 on Location Updating and IMSI DetachAndreas Eversberg2011-08-041-3/+7
| | | | | | | | | | The reason for the the wrong power capability comes from the fact that "rr->cd_now" is not yet set and so the ARFCN is 0 which causes the GSM900 power capability to be used. It is set to "Class 4" in the configuration file per default, however this value is not defined for GSM1800/1900. Thanx to Dieter Spaar for finding this bug!
* layer23: Add mobile support for sending / receiving voice frame through MNCCAndreas.Eversberg2011-07-2814-38/+330
| | | | | | | Support GSM FR codec only so far. Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* l23/l1ctl: Add default values for audio_modeSylvain Munaut2011-07-281-0/+3
| | | | | | Theses value should simulate the old behavior Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* layer23: Adapt to new logging API: fix calls to log_initAndreas.Eversberg2011-07-282-2/+2
| | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* [mobile] Added missing curly braces, as proposed by HaraldAndreas Eversberg2011-07-171-1/+2
|
* [layer23] Added special return value for invalid MCC/MNC inputAndreas Eversberg2011-07-173-16/+21
| | | | This way an MNC of 000 can be entered.
* [layer23] Correctly report to restart mobile instance after band changeAndreas Eversberg2011-07-171-11/+11
| | | | | Mobile instance must be restarted (shutdown / no shutdown) in order to apply changes to the available ARFCNs.
* [layer23] Fixes and improvements of system information decodingAndreas Eversberg2011-07-172-33/+57
|
* [layer23/mobile] Improvement and fixes of idle mode processAndreas Eversberg2011-07-1713-773/+2626
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces cell re-relection. When camping on a cell, it scanns neighbour cells. If a 'better' cell is found, the cell is selected. If the cell is in a different location area, a location upating is performed under certain conditions. The 'better' cell depends on various informations that are broadcasted on the BCCH of a neihbour cell and of course the RX level. Most operators don't set these informations, so the 'better' cell depend on a better RX level for the same location area, or a much better RX level (6 dBm) at a different location area. There were many issues at the idle mode process that has been fixed. Expecially when moving, the state machines got stuck, so no more cell search was possible, or no further calls / location updating was possible. In order to see the process of cell selection, enter the VTY interface and enable the network monitor: enable monitor network 1 (where '1' is the instance of the MS) In order to see the current state of the processes, enter: show ms
* [mobile] Corrected output value of PCS power classAndreas Eversberg2011-07-171-1/+1
|
* [mobile] Adding option to hide most default values in configAndreas Eversberg2011-07-171-46/+105
| | | | | | | | | | | | | In order to shrink config output, a new config option "[no] hide-default" is added. The config is now easier to read, but does not show all available options, if they are set to default. Newcommers may want to see all available options in config. Therefore all options are show by default. To hide default options, enter: configure terminal hide-default end
* [mobile] Adding PCS band to list of maximum ARFCNs to scan in one bandAndreas Eversberg2011-07-171-0/+1
|
* [mobile] Adding security warning, if default IMEI is not changedAndreas Eversberg2011-07-171-0/+7
|
* [layer23] Adding "neighbour cell" logging category: DNBAndreas Eversberg2011-07-173-2/+9
|
* [layer23] Detach SIM, if reading failsAndreas Eversberg2011-07-171-0/+8
| | | | | This way the mobility management and cell selection process continues as if no SIM has been inserted.
* [layer23] Adding neighbour cell measurement to L1CTL interface.Andreas Eversberg2011-07-173-0/+53
|
* [layer23] Fixed handling of channel 0 in certain loopsAndreas Eversberg2011-07-172-5/+6
| | | | | | | The ARFC counts from 1 to 1023, and then to 0. The index of these loops count from 1 to 1024. The index 1024 stands for ARFCN 0. This also reverses commit eb77945e162ae1968242009372e448b7af51ea50.
* settings.h: IMSI is 15 bytes +1 \0 maximumHarald Welte2011-07-161-2/+2
| | | | | | | | If we use a larger field to store the IMSI, we can create overflows when copying the imsi to other structures that are only 16 bytes in size. Detected by Smatch: src/host/layer23/src/mobile/subscriber.c +195 gsm_subscr_testcard(39) error: strcpy() 'set->test_imsi' too large for 'subscr->imsi' (20 vs 16)
* sysinfo.h: ARFCN can be 0..1024, so we need an array of 1025 entriesHarald Welte2011-07-161-1/+1
| | | | | Detected by Smatch: src/host/layer23/src/mobile/gsm48_rr.c +1658 gsm48_new_sysinfo(23) warn: buffer overflow 's->freq' 1024 <= 1024
* gsm48_rr: Don't overflow array boundaryHarald Welte2011-07-161-1/+1
| | | | | | Detected by Smatch: src/host/layer23/src/mobile/gsm48_rr.c +3021 gsm48_rr_render_ma(89) warn: buffer overflow 'cd->freq_seq_lv' 10 <= 10 src/host/layer23/src/mobile/gsm48_rr.c +3023 gsm48_rr_render_ma(91) error: buffer overflow 'cd->freq_seq_lv' 10 <= 10
* misc: Fix crash in cell_log due missing l1_prim_cbHolger Hans Peter Freyther2011-07-161-0/+1
| | | | | | Commit 3538c38835b9120d7cf062fa533f7657768bf0d3 introduced the l1_prim_cb but the init of the misc apps were not updated, make it us the generic callback that should restore the previous behavior
* lapdm: fix use-after-freeHarald Welte2011-06-271-1/+4
| | | | We cannot msgb_free() the msgb and then later reference msg->l2h!
* lapdm: properly set the msg->l3h to the contents of the RSL L3_INFO IEHarald Welte2011-06-251-0/+3
|
* lapdm: introduce a new lapdm_phsap_dequeue_prim()Harald Welte2011-06-242-31/+56
| | | | | | This function can be called by a TDMA-driven L1 which will never actually want to receive unsolicited/asynchronous PH-DATA.req primitives, but who will simply directly poll the LAPDm transmit queue by calling the abovementioned function
* lapdm: Don't try to send data using a PH-RACH.req, use PH-DATA.reqHarald Welte2011-06-241-5/+5
|
* lapdm: some more error reporting in case strange primitives arrive from L1Harald Welte2011-06-241-6/+12
|
* L1CTL is sending PH-DATA.ind, not PH-DATA.req up to LAPDmHarald Welte2011-06-241-1/+1
|
* introduce LAPDM entity flags for PH-EMPTY_FRAME.req and polllingHarald Welte2011-06-242-20/+48
| | | | | polling means that we never try to proactively generate a PH-DATA.req unless there was a PH-RTS.ind first.
* lapdm: Introduce LAPDM_MODE_{BTS,MS} to run on both sidesHarald Welte2011-06-244-37/+137
| | | | | | | | We also introduce some related functions like lapdm_{entity,channel}_set_mode() lapdm_{entity,channel}_reset() This is all in preparation for the Osmo-BTS Work.
* lapdm: implement RSL CHAN RQD generation from PH-RA.indHarald Welte2011-06-242-2/+30
|
* lapdm: use msgb_tlv_put instead of manual equivalentHarald Welte2011-06-241-6/+2Star
|
* fix some spillage from recent conversionHarald Welte2011-06-242-2/+3
|
* lapdm: remove dependency to osmocom_data.hHarald Welte2011-06-241-1/+1
|
* lapdm: remove get_rsl_name() and use libosmogsm:gsm_rsl_name() insteadHarald Welte2011-06-233-32/+4Star
|
* further decouple lapdm code from osmocom_ms and l1ctlHarald Welte2011-06-2311-54/+239
| | | | | we introduce a new primitive layer betwen PH and DL, enabling the use of the LAPDm code in applications that are not based on L1CTL
* add l1ctl_proto.h #includes to lots of filesHarald Welte2011-06-227-0/+14
| | | | this is apparently a result of no longer including it indirectly via lapdm.h
* remove l1ctl data structure form l2_ph_chan_conf()Harald Welte2011-06-223-8/+6Star
| | | | This brings us one step closer to de-couple LAPDm from L1CTL
* remove l1ctl data structure from l2_ph_data_ind()Harald Welte2011-06-223-11/+8Star
|
* lapdm.c: remove unneeded header file #includesHarald Welte2011-06-211-3/+0Star
|
* layer23: make LAPDm code mostly independent of 'struct osmocom_ms'Harald Welte2011-06-2110-84/+104
| | | | This is one step in the direction of re-using the lapdm code in osmo-bts.
* remove osmocom_ms reference from lapdm_init()Harald Welte2011-06-214-10/+16
| | | | ... yet another step in making lapdm code independent of osmocom_ms
* remove 'osmocom_ms' from struct lapdm_enetityHarald Welte2011-06-212-10/+11
| | | | and replace it with more general l1_ctx nad l3_ctx.
* [layer23] Adding Quadband support and GSM 4x0 supportAndreas.Eversberg2011-05-2913-299/+788
| | | | | | | | This makes it possible to use GSM 850 and PCS 1900 bands, as used in the US. The support relies on the phone hardware. Each band (900, DCS, 850, PCS, 480 and 450) can be enabled and disabled individually for each setting.
* layer23: update to new GSMTAP API in libosmocore >= 0.3.1Harald Welte2011-05-223-23/+23
|
* src: use namespace prefix osmo_* for utilsPablo Neira Ayuso2011-05-155-8/+8
| | | | | | | | | | | | 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
* src: use namespace prefix osmo_wqueue*Pablo Neira Ayuso2011-05-153-5/+5
| | | | | | | | | | 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
* src: use namespace prefix osmo_signal*Pablo Neira Ayuso2011-05-159-23/+23
| | | | | | | | | 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
* src: use namespace prefix osmo_fd* and osmo_select*Pablo Neira Ayuso2011-05-155-17/+17
| | | | | | | | | 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
* src: use namespace prefix osmo_timer*Pablo Neira Ayuso2011-05-1515-107/+107
| | | | | | | | | | | | | | 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