summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2013-01-14mobile: addition to 47f05aefdf4eac7332aa4aa32238225e1c98aedbjolly/useruserAndreas Eversberg2-0/+21
Fix for user-user message during call. If not delivered, the network sends a status message with cause 43. This is now indicated to sending user.
2013-01-14mobile: Fixed CLIR invokation / suppressionAndreas Eversberg1-2/+4
If "clip" is given at vty, CLIR must be suppressed, which results in presentation of caller ID digits, even if suppressed by network. If "clir" is given at vty, CLIR must be invoked, which results in restriction of caller ID digits, even if not suppressed by network. Note: This only work for outgoing caller ID. Incomming caller ID restriction cannot be suppressed.
2013-01-06mobile: Add user-user message transmission to call controlAndreas Eversberg4-6/+146
If a user-user message is received, it is displayed via VTY. If a user-user message is defined with "call <ms> set-useruser <text>", it will can be transmitted with "call <ms> useruser" while there is an active call. After transmission, the message is cleared. If defined, it will be transmitted with next setup/alerting/connect/disconnect/release message also.
2013-01-06mobile: Fix user-info message transcodingAndreas Eversberg1-3/+8
A setup message may only contain up to 32 digits. The presence of user information must be checked after parsing user-info message.
2013-01-06mobile: Display progress message, if receivedAndreas Eversberg1-0/+45
2013-01-06mobile: Release call, if a reject (early release complete) is receivedAndreas Eversberg1-0/+1
2013-01-06l1: add CBCH flag to dedicated modeAlex Badea8-14/+39
Add a .dm_flags member to struct l1ctl_dm_est_req. Define a flag bit to indicate CBCH mode. If set, this instructs L1 to use the CBCH variant of SDCCH for dedicated mode (no uplink, no SACCH). Add the new dm_flags field to l1ctl_tx_dm_est_req* API calls. Clear it everywhere, except for app_cbch_sniff which requests CBCH. Signed-off-by: Alex Badea <vamposdecampos@gmail.com>
2013-01-05[WIP] Ugly hack to compensate lost time on TS change (high TS -> low TS)Sylvain Munaut1-0/+22
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-05fw: pirelli_dpl10: initialize address line 22 for flash accessSteve Markgraf1-0/+6
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-01-05fw: apps/loader: initialize framebuffer and show somethingSteve Markgraf1-0/+23
Since we now initialize the display for all apps, it otherwise just shows the last content of the display ram, which is weird. Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-01-05fw: keypad driver overhaul, support for different keymapsSteve Markgraf10-80/+90
Now the Pirelli DP-L10 keymap is supported. Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-01-05fw: introduce per-board uart mappingSteve Markgraf17-65/+123
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-01-05fw: introduce with_irq parameter for board_init()Steve Markgraf15-64/+53
So far the loader-app used to do the init on its own, which brought a lot of problems for board- specific initialization. Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-01-05osmocon: make romloader output much less verboseSteve Markgraf1-20/+5
Most of the output was only for debug purposes anyway. Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-01-02target: Add support for IQ swap when requiredSylvain Munaut12-8/+82
Operation in GSM850 band requires IQ swap because of the offset PLL used in the TRF causing spectrum reversal. Thanks to Dieter Spaar for noticing the issue and the original patch Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02fw: Fix link scripts to represent reality more accuratelySylvain Munaut2-17/+16
Previously they were hacks to allow build ... Not needed now. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02fw/build: Allow applications to filter environmentsSylvain Munaut3-1/+47
We use an external python script to solve which env to build, to mix board and app env list Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02fw/build: Add ENV_ APP_ BOARD_ prefix to variables to cleanup namespaceSylvain Munaut6-49/+49
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02fw/build: Group env / boards / applicationsSylvain Munaut1-42/+66
No functional changes, just moving things around Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02fw/build: The app/board/env combo macro need to be lastSylvain Munaut1-5/+5
The app template will create the list of app specific objs so that needs to be before Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02fw/build: Include app / board / env specific objs during buildSylvain Munaut1-2/+2
Just put the env with the rest and not manifest and also allow app additional files Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02fw/build: Add a silent rule for the 'size' call as wellSylvain Munaut1-1/+2
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02mobile/gsm411: Fix printf format warningSylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02mobile/gsm411: Adapt to new libosmocore API for SMC/SMR by adding idSylvain Munaut1-8/+8
Here we just use the transaction ID Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02build: Use the system wide libosmocore for host applicationsSylvain Munaut1-31/+9
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02host/cell_log: Prevent buffer overflow when displaying arfcn rangeSylvain Munaut1-5/+4
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02host/l23: Added custom frequecy range to cell_log.Dario Lombardo2-5/+59
Written-by: Dario Lombardo <lomato@libero.it> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02l23 sysinfo: defer SI4 CBCH mobile allocation until SI1 is receivedAlex Badea1-0/+1
When parsing SI4, there's a check and a log message saying that CBCH MA is ignored until SI1 is received. Then the MA is decoded anyway -- incorrectly -- such that it remains incorrect even after receiving the next SI1. Fix that with an "else". Signed-off-by: Alex Badea <vamposdecampos@gmail.com> Signed-off-by: Andreas Eversberg <jolly@eversberg.eu>
2012-12-29Fix: Check if cell is barred, before performing location updatingAndreas Eversberg1-0/+9
If not checked, the MM process will crash, due to an endless loop of trying to do location updating to barred cell.
2012-11-22Rename various "rxlev" variable to "rxlev_dbm" and correct their signessAndreas Eversberg10-47/+47
All levels in range of 0..63 are now uint8_t and use "rxlev" as variable name. All levels in range of -110..-47 are now int8_t and use "rxlev_dbm" as variable name.
2012-11-22fix previous commit: use dbm2rxlev()Harald Welte2-2/+2
As andreas points out, there are structure members that are called 'rxlev' but which don't use the scaling (0..63) of the GSM specs, but which are already a signed type and in dBm. So they need to be converted. TODO: Rename those structure members to rxlev_dbm or something that explicitly states it is _not_ an 'RXLEV' value in terms of GSM.
2012-11-20Tell L1CTL_FBSB_REQ the expected received signal levelHarald Welte9-8/+14
As Dieter points out, this drastically improves the resiliance to high receive levels on the C155. We cannot blindly assume a received signal level of -85 dBm if the BTS is 2m away and we actually receive -40 dBm. This patch extends the L1CTL_FBSB_REQ data structure in layer 1 with the respective field, as well as the l1ctl_tx_fbsb_req() API function called from the various layer23 apps. "mobile" and "bcch_scan" already did a PM request and thus know the expected signal power. "ccch_scan" and "cbch_sniff" apparently don't do, so the -85 dBm constant is now hardcoded into the host-side source code there, and should probably be fixed in a follow-up patch.
2012-11-16Fix wrong print of scan freq when using gsm_print_arfcn twice for the same ↵Pavel Baturko1-4/+12
log message
2012-11-15Fix: Correctly convert ARFCN to index.Joshua Lackey1-1/+4
If you enable PCS, you'll never make it out of power-measurement without this patch.
2012-11-14Merge commit '5905d5be60249b2d9ca9abce4c801bc3bceed6d9'Sylvain Munaut16-24/+48
2012-11-14msgb: fix msgb_pull_u*()Steve Markgraf1-3/+3
msgb_pull returns a pointer to the new begin of the buffer, unlike msgb_get(), where those functions were originally taken from. Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-11-14fw/comm: remove unused, outdated copy of msgb.hSteve Markgraf1-161/+0
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-11-14smc: Fix a typo in the smc codeHolger Hans Peter Freyther1-1/+1
2012-11-14smc: Make it possible to include gsm0411_smc.h as first header fileHolger Hans Peter Freyther1-0/+1
The code embeds the timer so one needs to include the header file.
2012-11-11smc: Print the current state of the SMSHolger Hans Peter Freyther1-1/+3
When the connection may not released print the name of the current state to ease with debugging and verification that this is not a valid state transition.
2012-11-11sms: Remove the commented out code that was the default in OpenBSCHolger Hans Peter Freyther1-1/+0
This code got copied from OpenBSC and we used the network specific and private numbering plan. Remove it as it can be easily set.
2012-11-11sms: Reduce the logging level to debugHolger Hans Peter Freyther1-3/+3
<001c> gsm0411_smr.c:175 TX: MNSMS-REL-REQ adds little value so I am reducing it to a debug statement.
2012-11-06debian: Create a git-buildpackage based 0.5.3Holger Hans Peter Freyther2-1/+7
2012-11-05debian: Testing was disabled because of a funny x86 compiler issue caused by usHolger Hans Peter Freyther1-5/+0
The bits test will fail on Debian Stable for x86. Somehow the load of a static const array is ending up accessing random memory. This only happens when not using any -OX options and this is caused by us. Do not override the default debian CFLAGS.. and the tests will pass on debian stable.
2012-11-05GSM48: Avoid unaligned access in gsm48_construct_raAndreas Eversberg1-1/+3
This avoids an unaligned access on platforms that don't support them, such as ARMv4/ARMv5.
2012-10-30Fix: Change T200 of LAPDm if SAPI 0 and SAPI 3 share bandwidth on SDCCHAndreas Eversberg3-0/+42
We use 1 second on FACCH and 2 seconds on SACCH when SMS is transfered during a call on TCH. There is no impact on bandwidth, because SAPIs use differen channels. In order to correctly transfer SMS during SDCCH, the T200 must be raised from 1 (SAPI 0) to 2 (SAPI 0 and 3), so T200 will not timeout before receiving acknowledge from BTS. This is because both SAPIs share the same ressource on SDCCH. After release of SAPI 3, T200 is lowered back to 1.
2012-10-30Fixed decoding of hexadecimal LAI componentsAndreas Eversberg6-27/+44
libosmocore has changed its LAI decoding from hex to decimal. This caused wrong decoding of MCC and MNC. In order to provide required hex transcoding, special hex encoding and decoding function are added to mobile/sysinfo.c.
2012-10-27Add "extern" keywordsTobias Engel1-5/+5
Without the "extern" keyword the variables in this header file will be seen as empty definitions when compiled on OSX.
2012-10-27Do not use --version-script linker flag on OSXTobias Engel3-2/+14
Add a check to not use --version-script linker flag if compiled on OSX since it doesn't exist there
2012-10-27Define struct iphdr for OSXTobias Engel1-1/+1
Use FreeBSD struct iphdr definition for OSX also. From the commentary in the source file: On BSD the IPv4 struct is called struct ip and instead of iXX the members are called ip_XX. One could change this code to use struct ip but that would require to define _BSD_SOURCE and that might have other complications. Instead make sure struct iphdr is present on FreeBSD.