Commit Graph

4492 Commits

Author SHA1 Message Date
David Rupprecht d580a94dab Add EIA3 and test case 2019-09-10 13:46:21 +02:00
David Rupprecht 7e13860dd5 Add decryption function and all tests for enc 2019-09-10 13:46:21 +02:00
David Rupprecht 0841d837de Make ZUC state ful no global vars 2019-09-10 13:46:21 +02:00
David Rupprecht ef4cf7aa52 First ZUC working test case 2019-09-10 13:46:21 +02:00
Andre Puschmann 8da610d68b fix gcc (<= 5) warning with type-limits by casting vr_r to a signed type
this warning is a bit annoying as it is really safe to do
that kind of comparision, it's just that for vr_r==0, any other
unsigned number is >= 0.
2019-09-10 13:43:57 +02:00
Andre Puschmann 513c7b12e3 remove warning and replace with pragma message 2019-09-09 17:28:53 +02:00
Andre Puschmann 49279c89d8 send DL-DCCH on SRB2 after it has been established 2019-09-09 17:16:22 +02:00
Pedro Alvarez 6b468b25f6 Added script to help with the packaging 2019-09-09 17:08:49 +02:00
Pedro Alvarez 8d808d3fd8 Update the debian changelog to package srsLTE 19.06 for Ubuntu Disco 2019-09-09 17:08:49 +02:00
Pedro Alvarez 6a17eefd75 Update the debian changelog to package srsLTE 19.06 for Ubuntu Cosmic 2019-09-09 17:08:49 +02:00
Pedro Alvarez 68119c7730 Update the changelog to package srsLTE 19.06 for Bionic 2019-09-09 17:08:49 +02:00
Pedro Alvarez 53e1616d0b Update the changelog to package srsLTE 19.06 for Xenial 2019-09-09 17:08:49 +02:00
Pedro Alvarez be92e8d30b Adding Ubuntu Xenial to packaging changelog 2019-09-09 17:08:49 +02:00
Pedro Alvarez 6f722b5f8c Adding Ubuntu Disco to packaging changelog 2019-09-09 17:08:49 +02:00
Pedro Alvarez c9505b1ceb Adding Ubuntu Cosmic to packaging changelog 2019-09-09 17:08:49 +02:00
Pedro Alvarez 2ea800965f Modified change log to update the naming convention of packages. Changed maintainer name to sign the package. 2019-09-09 17:08:49 +02:00
Andre Puschmann e93b4b0e10 fix install configs and use SUDO_GID
flagged by alex-orange
2019-09-09 17:00:02 +02:00
Harald Welte 2e426948fe [ENB] Add CFSB support
This commit introduces CSFB (circuit switched fall-back) capabilities to
srsLTE.  Actually, all the eNB has to do is to send a
RrcConnectionRelease with the RedirectedCarrierInfo IE.

The MME triggers this by the S1AP CS Fallback Indicator IE, which may
be present either in the Initial Context Setup Requst or in the
UE Context Modification Request.

As srsLTE has no support for the UE Context Modification Request at all
yet (!), basic support for this message is introduced in this patch.

Both Mobile Originated and Mobile Terminated CSFB with a coupel of
different UE models have been verified using this patch in a setup
consisting of srsENB attached to an undisclosed EPC connected via SGsAP
to a complete  Osmocom 2G network.

Closes: #358
Closes: #363
2019-09-09 16:59:00 +02:00
Andre Puschmann d9577f0e1e suppress type-limit warning issued by some compilers by making var signed
Used to happen with older gcc giving:

"rlc_am.cc:1791:22: error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits]"
2019-09-09 16:30:48 +02:00
Andre Puschmann a9bea7e30c add -Werror to compile flags 2019-09-09 16:30:48 +02:00
Ismael Gomez 4f95822c06 Reestablish RLC before waiting for uplink 2019-09-07 22:59:57 +02:00
Ismael Gomez cbb1bbfaa1 Fix multiple PRACHs after SR fail and a minor issue in HO 2019-09-07 22:59:57 +02:00
Xavier Arteaga 4bd0d2da6d UE RRC: Fixed minor variable overlap and clang tidy warning in UE capabilities 2019-09-04 22:36:03 +02:00
Ismael Gomez bfddc55148
RRC-PHY interface (#639)
RRC-PHY interface refactor. Moved RRC-MAC interface to rrc_asn1_utils and created RRC-PHY interface also in rrc_asn1_utils. All ASN1 includes should be made from rrc_asn1_utils only keeping ue_interfaces clean of ASN1

Tested with different common and dedicated configurations (64QAM UL, 256QAM, CA, SRS enabled/disabled, etc)
2019-09-04 16:59:10 +02:00
Merlin Chlosta 2079c1324c UHD: Wait for `lo_locked` after frequency change (#635)
* UHD: clang-tidy rf_uhd_imp.c
* UHD: wait for LO_lock after frequency change
2019-09-04 16:51:02 +02:00
Ismael Gomez c92c61d560
Optimized front-end logging processing (#641)
Avoid memory allocation and stringstream in log frontend calls (executed from worker threads). Uses a buffer pool of fixed buffer and vsnprintf
2019-09-04 15:32:29 +02:00
Francisco Paisana 67d6a25194 Moving mac timers to stack timers (#638)
* first step towards moving MAC timers to stack. Mac is still using its own timers. srslte::timers class can be restructured.

* moved timers out of the UE MAC
2019-09-04 15:28:09 +02:00
Ismael Gomez 69edee4e6c
Fix issues in uplink QoS (#636)
Fix bugs in Long BSR and Truncated BSR and added unit tests
2019-09-02 22:48:41 +02:00
Francisco Paisana ef61f0408c fix asn1 version separator string 2019-09-02 20:21:54 +02:00
Francisco Paisana ad64207a32 added test for unknown group extensions, and the asn1 lib version in its generated files 2019-09-02 20:21:54 +02:00
Francisco Paisana 939c8905cb now the unknown group exts are also consumed 2019-09-02 20:21:54 +02:00
Francisco Paisana 116dc0a57b fixed group extensions, removed extra presence flag for copy_ptr<T> types as it was just a source of bugs. 2019-09-02 20:21:54 +02:00
Robert Falkenberg bf35f83a5e Fixed inverted interpretation of new data indication (ndi) field in dci_format1As_pack() function 2019-08-29 20:49:24 +02:00
Robert Falkenberg c75f314c3f Fixed incorrect DCI location assignment in pdsch_enodeb.c example 2019-08-29 20:49:16 +02:00
Mark Rohrbacher 4a76801459 Fixed duplex spacing for bands 65 to 70 2019-08-29 20:49:10 +02:00
Robert Falkenberg 3cf4431c66 Fixed inverted handling of fseek result value in srslte_filesource_seek 2019-08-29 20:48:57 +02:00
Igor Kim dd613c1514 Fix TBS table with auto-generated one (#368) 2019-08-29 20:47:07 +02:00
Harald Welte 756374419f SRSENB: Add SIB7 (GERAN neighbor) support
This adds the required missing bits to the eNB config file parser
to enable minimalistic support of parsing SIB7 configuration.

SIB7 contains GERAN (GSM) neighbor cell information, which is important
if you are operating a combined 2G+4G netowrk and want to assist the UEs
to reselect GSM cells once they move out of LTE coverage.

An example SIB7 section looks as follows:

sib7 = {
    t_resel_geran = 1;
    carrier_freqs_info_list =
    (
        {
            cell_resel_prio = 0;
            ncc_permitted = 255;
            q_rx_lev_min = 0;
            thresh_x_high = 7;
            thresh_x_low = 7;

            start_arfcn = 871;
            band_ind = "dcs1800";
            explicit_list_of_arfcns = ( 873, 875, 877 );
        }

    );
};

Closes: #357
2019-08-29 20:47:02 +02:00
Paul Sutton 2f14b7a2a2 Fix for [gw] parameter names 2019-08-08 13:37:16 +01:00
Andre Puschmann ada4e6644f fixing various issues in NB-IoT sync code detected by Coverity and clang-tidy 2019-08-08 11:12:49 +02:00
Francisco Paisana c9d3b61038 added resumable procedures to make RRC and NAS non-blocking 2019-08-08 10:56:54 +02:00
Andre Puschmann e42449532b fix wrong namespace definition in various places 2019-08-07 15:32:49 +02:00
Andre Puschmann 343c30be4a fix RF metrics/logging in eNB 2019-08-07 14:12:57 +02:00
Harald Welte 44977bcdec [ENB] enb.conf.example: Mention WRITE_SIB_PCAP
The documentation talks about a MAC protocol trace, but in fact
it is only a protocol trace of dedicated channels.  There's a related
define in the source code, but that's not documented.

Let's at least make the user aware that the MAC pcap trace is
for dedicated channels only, unless he uses that #define.
2019-08-05 11:24:55 +02:00
Harald Welte d01dd7fb91 [ENB] Fix builds with #define WRITE_SIB_PCAP
Building with WRITE_SIB_PCAP was broken in April 2019 in commit
7780b1aba5.  Let's make it work again.
2019-08-05 11:24:48 +02:00
Harald Welte 844994f2cd [ENB] Fix enabling of MAC pcap file
when using

[pcap]
enable = true
filename = /tmp/enb.pcap

in enb.conf, there is no pcap file created.

The problem is somewhere in the way how arguments are handled.
pcap.enable is properly parsed into args.pcap.  However, later on,
lte_stack->init(args.stack, rrc_cfg, lte_phy.get()) only passes
args.stack down the road, not args.pcap.  enb_stack_lte::init() then
basically uses args.stack.pcap and not args.pcap, and the latter appears
always false.

Let's remove pcap_args_t from all_args and only use the instance in
stack_args_t.

Closes: #359
2019-08-05 11:24:41 +02:00
Digicrat 86ec3101e0 Fix bug wherein blank lines or trailing newlines causes parsing of user_db.csv to fail. 2019-08-05 11:16:41 +02:00
Dottore Spina 635752c42e Fix call to CHECK_LIBRARY_EXISTS in FindbladeRF
An invalid call to the CMake macro CHECK_LIBRARY_EXISTS() in
cmake/modules/FindbladeRF.cmake prevents srsLTE to enable
support for the bladeRF driver when:
 * libbladeRF is installed to the same custom prefix we use to build
srsLTE, as with cmake -DCMAKE_INSTALL_PREFIX=/path/to/custom/prefix
 * libbladeRF is installed to /usr/local/lib BUT the linker does not
search this path by default

This trivial patch makes FindbladeRF.cmake provide the linker with the path
libbladeRF is actually installed to.
2019-08-05 11:15:43 +02:00
Andre Puschmann deb3cbec28 soapy: start rx stream without extra flags and print error if not successful 2019-08-05 11:11:04 +02:00
Andre Puschmann 80655db4a4 fix missing include in filesink 2019-08-05 11:11:04 +02:00