summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-05-15use system-installed libosmo{core,gsm}.alaforge/remove-libosmocoreHarald Welte2-5/+7
Change-Id: I88cb9999abf060f96551172976606ef26b959bf5
2017-05-15remove old, outdated copy of libosmocoreHarald Welte237-52735/+0
Change-Id: I8dc5adc9e9249577bd824a9d85a80003c53949e0
2017-05-15WIP: Attempt to make linker scripts compatible with binutils 2.27Harald Welte2-4/+4
In binutils-2.27, one can no longer have linker sections with overlapping VMA addresses. Let's try to work around this. See https://osmocom.org/issues/1917 for more details.
2017-01-15Support Early Classmark SendingHarald Welte2-1/+7
If SI3 rest octets indicate early CM Sending is allowed, and the 'support' indicates we support it (which we now do by default), then send the classmark change message every time a LAPDm link layer is established.
2017-01-15Fix encoding of padding at end of CLASSMARK 3 IEHarald Welte1-2/+2
Contrary to e.g. SI rest octets, the padding at the end of a CLASSMARK 3 Information Element is padded with zeros, not with L. There is no 0x2b padding in this case.
2017-01-15mobile.c: Don't register 'end' command to CONFIG_NODEHarald Welte1-1/+0
The CONFIG_NODE already has an 'end' command, and recent versions of libosmocore actualyl check for conflicting/duplicate command registrations and make the application crash in this case.
2017-01-15mobile: Finally fix copyright noticeHarald Welte1-2/+2
After 7 years it is about time...
2017-01-15Revert "trf6151: Fix setting of uplink ARFCN"Harald Welte1-1/+1
This reverts commit 17240037376169369b526ee8a8284961b85adbfa. For some reason the "obviously broken" code is working, but the fixed version is not. Let's go back to step 1 and analyze this in more detail, but meanwhile make the code work again.
2017-01-15define 'fprintf(stderr,' as a wrapper around printf(Harald Welte1-0/+1
This is in preparation to work with a more recent version of libosmocore, which wants to print to stderr in some cases.
2017-01-15Add an endian.h file as one step to build against later libosmocoreHarald Welte1-0/+12
2017-01-15Add libosmocore/build-target/include to include pathHarald Welte1-1/+1
Some header files are auto-generated and are thus in the build directory, not in the source directory. A cleaner way to handle this is most likely to install libosmocore to some directory, but I don't want to change the entire build process now.
2017-01-15fix various other compiler warningsHarald Welte3-5/+6
2017-01-15cfi_flash.c: Fix various format string compiler warningsHarald Welte1-6/+6
2017-01-15trf6151: Fix setting of uplink ARFCNHarald Welte1-1/+1
Somebody (me?) wrote exclamation marks instead of pipe symbols. Found by a modern gcc: rf/trf6151.c: In function 'trf6151_set_arfcn': rf/trf6151.c:439:8: warning: comparison is always true due to limited range of data type [-Wtype-limits] arfcn != ~ARFCN_UPLINK; ^ rf/trf6151.c:439:2: warning: statement with no effect [-Wunused-value] arfcn != ~ARFCN_UPLINK; ^
2017-01-15Avoid redefining __{packed,aligned,unused,section}Harald Welte1-0/+10
It seems modern version of newlib define those themselves, so we should avoid re-defining them. Removes tons of compiler warnings when compiling against libnewlib 2.4.0
2016-01-20fw: fix SPCA552 write timingSteve Markgraf1-0/+1
With GCC 4.9.3 the timing was broken and initializing the SPCA552 on the Pirelli DP-L10 did not work. Add a small delay which fixes that. Signed-off-by: Steve Markgraf <steve@steve-m.de>
2016-01-18host/mobile: Improved SAP interface integrationЯницкий Ва дим7-22/+104
1) Now the SAP interface is selectable as SIM source using the 'sim sap' command in VTY. 2) SAP connection starts only if it is configured as SIM source. 3) Fixed sap_socket_path configuration r/w errors. Written-by: Яницкий Ва дим <axilirator@gmail.com> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2016-01-18mobile: Fix for "Added runtime selection of gps device"Яницкий Ва дим1-5/+4
The 'gps host HOST:PORT' line in the config file now is generated correctly. So that it is parsed correctly when loading the config on next startup. Also the gpsd port now is parsed as it should without a colon. Written-by: Яницкий Ва дим <axilirator@gmail.com> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-12-31modernize AM_INit_AUTOMAKEHarald Welte1-3/+2
according to http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
2015-12-31autoconf: Migrate from INCLUDES to AM_CPPFLAGSHarald Welte3-3/+3
2015-12-31cleanup some compile warningsMax6-24/+17
2015-07-21layer1: fix chan_nr2mf_task_mask for TCH/H channelFelix Domke1-1/+2
"multiframe", the frame layout (used to compute neighbor cell monitoring pattern) was uninitialized in TCH/H case. This, in combination with gcc optimizing the "switch(multiframe)"-statement into a LUT without bounds- checking (since using an uninitialized value is undefined behavior) caused neigh_task to be filled with an out-of- bounds value, eventually crashing the TDMA scheduler. Written-by: Felix Domke <tmbinc@elitedvb.net> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-04-28host/mobile: Finish working support for the SAP interfaceSylvain Munaut6-53/+545
Patch mostly written by Nico Golde and some cleanup/testing by Domonkos Tomcsanyi Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2014-09-06layer23: initialize l2h/l3h pointers in rx_l1_rach_confIgor Almeida1-0/+1
Signed-off-by: Igor Almeida <igor.contato@gmail.com> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2014-06-15mobile: Use osmocom auth API instead of direct callsMax3-28/+20
Submitted-by: Max <max.suraev@fairwaves.co> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-12-29fw: tell linker to add init_array to ctor sectionSteve Markgraf5-0/+5
Starting with version 4.8, gcc places functions with __attribute__ ((constructor)) in .init_array instead of .ctors by default. This broke firmware images built with gcc >= 4.8. Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-12-24mobile/SS: Fixed bug in parsing of known supplemenary service codesAndreas Eversberg1-5/+5
Use correct variable to check if supplementary service code is known or not.
2013-09-26Fix wrong msgb_pull usageSylvain Munaut2-4/+4
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-06-19osmocon: Improve performance by handling several serial bytes at a timeAndreas Eversberg1-8/+19
2013-05-23host/mobile: Add 'extern' qualifier to config_dir in app_mobile.hBhaskar1-1/+1
This prevents duplication definition with main.c From: Bhaskar <niceguy108@gmail.com> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-05-23host/mobile: Fixup in error checking path of l23_app_initBhaskar1-3/+6
From: Bhaskar <niceguy108@gmail.com> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-05-23host/osmocon: fix some printf format specifier in handle_write_dnloadBhaskar1-1/+1
From: Bhaskar <niceguy108@gmail.com> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-05-23host/mobile: Fix trans_assign_trans_id() users error checkingSylvain Munaut2-2/+2
The returned value of trans_assign_trans_id() must be stored into a 'int' rather than uint8_t to allow proper testing of negative return values (errors). Thanks to Bhaskar <niceguy108@gmail.com> for the original patches. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-05-23gsm48_mm.h: Added get_mm_name() to headerBhaskar1-0/+1
2013-05-23gsm48_mm.c: Bugfix: payload_len should be signed intBhaskar1-1/+1
As we later check if payload_len < 0, it should be signed, not unsigned.
2013-05-23osmoload: Fix fall-out from msgb_get() / msgb_pull() transitionBhaskar1-1/+1
Bugfix in Osmoload.c: Assigning correct value to data pointer in LOADER_MEM_READ. Wrong value was introduced in last update when msgb_get() was replaced by msgb_pull() which returns end of data instead of start of data.
2013-04-14host/mobile: Remove duplicate A5/1 support indication in vty 'show support'Sylvain Munaut1-1/+0
Patch-by: Martin Hauke <mardnh@gmx.de> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-04-14host/mobile: Fix comment typoSylvain Munaut1-1/+1
Patch-by: Martin Hauke <mardnh@gmx.de> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-04-13doc: Fix build readme with system-wide libosmocore detailsSylvain Munaut1-4/+12
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-04-07fw: remove deprecated chainload appSteve Markgraf2-56/+1
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-04-07osmocon: embed chainloaderSteve Markgraf1-44/+65
This allows to directly load highram-images on compal phones with the commandline-switch -c. Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-03-07support.c: fix typo in commentHarald Welte1-1/+1
2013-01-13layer23: Be sure to close mncc socket on exit of mobile instanceAndreas Eversberg1-5/+5
2013-01-12layer23: Send SIM APDUs via GSMTAP, if enabledAndreas Eversberg1-1/+18
2013-01-10mobile: 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-08misc: Fix typosDario Lombardo2-2/+2
2013-01-08mobile: Fixed ignoring of MDL-ERROR-INDAndreas Eversberg1-0/+1
Some MDL-ERROR causes must not lead to link failure. The missing "return 0" causes all errors to be ignored which are not listed inside switch/case statement.
2013-01-08fix: Use only single CCCH block to determine path lossAndreas Eversberg1-0/+7
The downlink singalling failure counter DSC is decremented by 4 in case of unsuccessfull decoding of CCCH block and incremented by 1 in case of successfull decoding of CCCH block. The initial and maximum value of 90 requires to check the signal only once per 51 multiframe. If DRX would be supported, only a subset of 51 multiframes are received, so the initial / maximum value of 90 must be reduced accordingly.
2013-01-07mobile: Allow test card to be maked as already attachedAndreas Eversberg5-16/+73
This way it is possible to use test card without making attachment to the network, if the LAI matches. It can be used to do faster testing.
2013-01-07mobile: Improved exit of mobile process, reset phoneAndreas Eversberg3-19/+62
If mobile phone has started, it is reset after shutdown. This ensures that the phone is not transmitting anymore, especially while shutting down in dedicated mode. Using CTRL+c: The first signal causes initiating of shutdown with detach procedure. The second signal causes initiating of shutdown without detach procedure. The third signal will exit process immidiately. (in case it hangs) Using CTRL+z: The first signal causes initiating of shutdown without detach procedure. A subsequent CTRL+c would exit process immidiately.