Commit Graph
6243 Commits
Author SHA1 Message Date
Cedric Roux 5db0548af0 bugfix 2017-03-24 16:55:30 +01:00
Cedric Roux b5a03474bf remove asn1 compilation fixes that went to asn1c (IMPORTANT: reinstall asn1c!)
The files NativeInteger.c.diff and constr_SET_OF.c.diff
from asn1c were generating compilation warnings. We had
local patches applied on generated files by asn1c.

A new version of asn1c has been pushed to
https://gitlab.eurecom.fr/oai/asn1c
(commit 224dc1f991b7e7ad705ce92e171b942f87b7b7e7)
making obsolete the fixes we do here.

So we now remove those fixes.

*************************
* IMPORTANT BEGIN       *
*************************

Everyone should update their asn1c installation.

The simplest is to do:

    source oaienv
    cd cmake_targets
    ./build_oai -I

*************************
* IMPORTANT END         *
*************************
2017-03-24 16:46:42 +01:00
Cedric Roux 6448738e9b bugfix/compilation warning removal in ulsim 2017-03-24 15:53:52 +01:00
Cedric Roux 583123e042 bugfix/compilation warning removal in dlsim 2017-03-24 15:49:19 +01:00
Cedric Roux 53bb6a8c2c compilation warning removal 2017-03-24 15:33:51 +01:00
Cedric Roux d296abb8d0 compilation warning removal 2017-03-24 15:24:35 +01:00
Cedric Roux 5345b160fc compilation warning removal 2017-03-24 15:23:43 +01:00
Cedric Roux 045132ba6e compilation warning removal 2017-03-24 15:20:56 +01:00
Cedric Roux 4080a63938 compilation warning removal 2017-03-24 15:18:57 +01:00
Cedric Roux f754e31ead compilation warnings removal 2017-03-24 15:17:13 +01:00
Cedric Roux 7a6709a24e warning removal/bug fixes/adding logs in rb_tool.c 2017-03-24 15:12:52 +01:00
Cedric Roux 676ca5c3a0 compilation warning removal 2017-03-24 14:40:00 +01:00
Cedric Roux dfcbeff0d4 bugfix/warning removal
not sure of this one, to be checked
2017-03-24 14:26:16 +01:00
Cedric Roux 181eb532e1 bugfix 2017-03-24 14:23:11 +01:00
Cedric Roux bc10722013 warnings removal 2017-03-24 14:20:06 +01:00
Cedric Roux 60efa62dc8 compilation warning removal 2017-03-24 13:09:35 +01:00
Cedric Roux 7c7022a198 compilation warning removal 2017-03-24 13:08:45 +01:00
Cedric Roux 89c60dacfd compilation warning removal 2017-03-24 13:07:21 +01:00
Cedric Roux 34c303efb5 compilation warning removal 2017-03-24 13:05:08 +01:00
Cedric Roux e9d88a101d bugfix: array too short for data
6 numbers (2 hexa digits each) separated by ':'
plus ending 0 makes 18 bytes, not 6, let's put 20
2017-03-24 13:02:52 +01:00
Cedric Roux e5c5185eda compilation warning removal 2017-03-24 12:47:00 +01:00
Cedric Roux e268611bec bugfix 2017-03-24 12:45:17 +01:00
Cedric Roux 4a6e433b21 compilation warning removal 2017-03-24 12:41:10 +01:00
Cedric Roux b95ff08295 compilation warning removal 2017-03-24 12:40:11 +01:00
Cedric Roux cfac326c00 compilation warning removal 2017-03-24 12:39:11 +01:00
Cedric Roux c01d9dc1f0 compilation warning removal 2017-03-24 12:34:15 +01:00
Cedric Roux 99b521901c compilation warning removal 2017-03-24 12:33:09 +01:00
Cedric Roux 6977429706 compilation warning removal 2017-03-24 12:32:58 +01:00
Cedric Roux ac437d3d12 compilation warning removal 2017-03-24 12:30:06 +01:00
Cedric Roux d2098da06c fix targets/COMMON/openairinterface5g_limits.h
- LMSSDR was not handled
- bad #if usage
- bad indentation

still not very clean, but better
2017-03-24 12:27:46 +01:00
Cedric Roux 71fde41477 compilation warning removal 2017-03-24 12:21:45 +01:00
Cedric Roux b3d9e19899 compilation warning removal 2017-03-24 12:21:04 +01:00
Cedric Roux aaac4894c9 compilation warning removal 2017-03-24 12:17:08 +01:00
Cedric Roux 92ee6017cd compilation warning removal 2017-03-24 12:09:09 +01:00
Cedric Roux 7514e7139a compilation warning removal 2017-03-24 12:08:31 +01:00
Cedric Roux 048f07f67f compilation warning removal 2017-03-24 12:07:51 +01:00
Cedric Roux 3ce5f50755 compilation warning removal 2017-03-24 12:03:56 +01:00
Cedric Roux a3f7ceb395 compilation warning removal 2017-03-24 12:02:08 +01:00
Cedric Roux 1789b3de59 compilation warning removal 2017-03-24 12:00:58 +01:00
Cedric Roux e82c6764f9 compilation warning removal 2017-03-24 12:00:23 +01:00
Cedric Roux bf3a4f6464 compilation warning removal 2017-03-24 12:00:04 +01:00
Cedric Roux d8627b5e3f compilation warning removal 2017-03-24 11:59:27 +01:00
Cedric Roux 2291f4ebec compilation warning removal 2017-03-24 11:58:01 +01:00
Cedric Roux 216cd0bf02 compilation warning removal 2017-03-24 11:56:34 +01:00
Cedric Roux 8dd8a97c34 compilation warning removal 2017-03-24 11:55:32 +01:00
Cedric Roux 11856c6b00 compilation warning removal: allocate_REs set but not used
I removed this variable entirely because it's not used.

Maybe the bug is that it's not used after being set?
To be checked and fixed at some point.
2017-03-24 11:53:34 +01:00
Cedric Roux 774452bbbb compilation warning removal
this variable does not seem to be used, to be removed?
2017-03-24 11:50:56 +01:00
Cedric Roux 4fcb6272f4 RRC Rel14
- import RRC ASN.1 defintions from the specifications
  (file openair2/RRC/LITE/MESSAGES/asn1c/ASN1_files/RRC-e10.asn)
  contrary to rel8/10, all modules have been imported, maybe it's too much
  to refine in case of problems
- deal with rel14 in fix_asn1
- all code that was for Rel10 is now for Rel10/Rel14
- some incompatible changes (mostly in naming) were resolved in favor
  of rel14, see in openair2/RRC/LITE/defs.h
- unsure about the rlc layer, some arrays have changed (values appended),
  I only changed the definition and in tests in the code, I changed
  the index limit, maybe it's not enough

Rel14 is the default compilation mode.
2017-03-23 18:06:40 +01:00
Cedric Roux cff9149920 fix issue 227 - UE IP settings disrupts realtime
see https://gitlab.eurecom.fr/oai/openairinterface5g/issues/227

When the UE connects to the eNodeB and receives its IP address from the
network, it calls system() to set it in the linux kernel world. This call
is not done in a realtime thread, but in the NAS, which uses its own thread,
independent of the realtime processing.

In some situations this totally disrupts realtime processing.

It is difficult to know precisely why that happens, but it seems that calling
fork(), as system() does, in a multi-threaded program is not a good idea. (So
say several people on the internet.) It is not clear why the softmodem is
impacted, but it seems that fork() is really what triggers the disruption.
Several tests lead to that conclusion.

To fix the problem, we create a child background process very early in main()
(before anything else basically). Then instead of calling system(), the main
process sends the string to the background process. The background process
gets the string, passes it to system() and reports the success/failure back
to the main process.

This solution involves a lot of system calls, but calling system() in the
first place is not cheap either. As long as no realtime thread uses this
mechanism, things should be fine. Time will tell.
2017-03-23 12:34:24 +01:00
Cedric Roux 89f747a218 minor fixes 2017-03-23 10:40:47 +01:00