Commit Graph

3719 Commits

Author SHA1 Message Date
Andre Puschmann 2590ebd10b fix bugs reported by coverity 2019-01-15 15:59:38 +01:00
Andre Puschmann 04f6569113 fix missing newline in RLC log 2019-01-14 14:38:41 +01:00
Andre Puschmann 0abc7d4dbd fix bug when stopping ringbuffer 2019-01-11 13:28:32 +01:00
Andre Puschmann e328681343 add decode/encode when printing CB misconfig 2019-01-11 13:28:27 +01:00
Andre Puschmann 3f63663a31 add mutex to csv metrics
this fixes and issue when closing the csv that left
half a new line in buffer
2019-01-10 12:35:45 +01:00
Andre Puschmann d34ecaaa5e adding RI to DL metrics 2019-01-10 12:35:38 +01:00
Andre Puschmann 53850e5353 delete MRB bearer during PDCP destruction 2018-12-30 22:58:41 +01:00
Andre Puschmann 98780c1af5 free mem for UHD handler if no UHD device was found 2018-12-30 22:35:37 +01:00
Pedro Alvarez d7b92b8f77 Small commit to fix PDCP SN packing in liblte_s1ap 2018-12-18 12:13:56 +00:00
Andre Puschmann 955f5dd37a add mutex in pdcp entity
write_sdu and write_pdu are not re-entrant because all functions
that deal with the counters, e.g. integrity check and generate,
must be protected because MAC threads may call them at the same time.

this addresses issue #254
2018-12-18 11:54:54 +01:00
Andre Puschmann bdbdef41c0 fix compiler warning in pdsch_ue 2018-12-18 11:53:16 +01:00
Andre Puschmann db3ce8ade9 remove clang-tidy execution for srslte_upper 2018-12-18 11:53:12 +01:00
Andre Puschmann 9abb36e7ab add basic travis.yml 2018-12-18 11:53:09 +01:00
Andre Puschmann 0e7512f349 fix RLC UM params for eMBMS 2018-12-17 17:47:27 +01:00
Andre Puschmann 59d9a78869
add eia1 tests and fix sib2 bug (#311)
* Starting to add EIA1 tests.

* Initial tests for EIA1

* Bit shifted bearer by 27. Test case 1 and 4 are passing now.

* Adding EIA test case 7.

* Making sure the test is called.

* Fixed double initialization of msg_len_bits.
2018-12-17 16:33:11 +01:00
Andre Puschmann 192fcd726e Merge branch 'service_reject' into next 2018-12-17 12:35:57 +01:00
Andre Puschmann d14c65b7c2 move DL EARFCN list handling before RF init and fix formating 2018-12-17 12:31:33 +01:00
Joseph Giovatto af6de04806 added dl_earfcn_list to ue config
dl_earfcn_list = 2100,2200,3400
2018-12-17 12:14:49 +01:00
Andre Puschmann b2bcfca074 add service reject handler 2018-12-17 12:05:22 +01:00
Pedro Alvarez a5a7eb02d2 Merge branch 'next' of github.com:softwareradiosystems/srsLTE into next 2018-12-14 17:16:41 +00:00
Andre Puschmann 652d5c5942 fix typo 2018-12-14 16:57:58 +01:00
Andre Puschmann df7ab7ffe8 Merge branch 'master' into next 2018-12-14 16:54:46 +01:00
Pedro Alvarez 60fdc9ebe2 Small commit. 2018-12-14 14:45:40 +00:00
Pedro Alvarez ac0aa76afc Small print changes on NAS. 2018-12-14 14:42:24 +00:00
Pedro Alvarez 9380d56bbf Changing prints in S1AP and SPGW. 2018-12-14 14:28:25 +00:00
Pedro Alvarez 7fd6ae4c40 Changing NAS printing. 2018-12-14 14:16:41 +00:00
Pedro Alvarez 983ba4a3ab Strating to change prints in the HSS. 2018-12-14 14:10:49 +00:00
yagoda 94ec379f68 Small commit to test changes in prints. 2018-12-14 13:37:08 +00:00
Igor Kim 9def82d15b add error handling on binding s1c socket (#267) 2018-12-14 12:02:25 +01:00
Eric Schreiber 46d41a5dc5 Remove undefined increment of an erased iterator. (#274) 2018-12-14 12:01:44 +01:00
David Rupprecht a9032bb91a Fix problems when TA timer is set to infinity 2018-12-14 11:35:28 +01:00
Andre Puschmann 22503541b1 disable clang tidy by default during build 2018-12-13 11:06:57 +01:00
Andre Puschmann 463b00d82d check sys_info_change flag in paging message 2018-12-13 10:54:51 +01:00
Pedro Alvarez 3205121015 M2 interface packing/unpacking (#305)
* Starting to add M2AP serialization structures.

* Added M2AP procedure ids.

* Added some M2AP max values.

* Removing m2ap.cc for now.

* Adding cause IE.

* Adding dummy m2ap.cc to check correct compilation of m2ap.h

* Fixed compilation issues in m2ap.h

* Adding Cell Information IE.

* Added Criticality diagnostics IE.

* Adding eNB-MBMS-ConfigurationDataItem.

* Adding MBMS-Service-Area-Id-List

* Added MBMS Service Area Id.

* Added Global eNB Id IE.

* Added Global MCE id IE.

* Added MBMS-Service-associatedLogicalM2-ConnectionItem IE.

* Added MBSFN_SUBFRAME_CONFIGURATION IE

* Added MCCHrelatedBCCH-ConfigPerMBSFNArea IE.

* Added MCH scheduling period IE.

* Added PMCH-Configuration IE.

* Added Time-to-Wait IE.

* Added TNL-Information IE.

* Starting to add M2SetupRequest msg.

* Adding M2 Setup Request message.

* Fixed up enums related to initiating messages, successful outcome and unscesseful outcome.

* Starting to add m2ap apck/unpack PDU functions.

* Started to add a test for M2 Setup Request Pack/Unpack.

* Filling in M2SetupRequest structure.

* Adding packing of more IEs in the M2SetupRequest.

* Starting to add unpacking functions to M2SetupRequest.

* Continuing to unpack M2SetupRequest. Unpacking PLMN Identity correctly now.

* Fixed up enb_id unpacking. eNB Id and eNB name unpacking correctly now.

* Starting to add unpacking for dataconfiguration item.

* Adding support for eCGI unpacking.

* Adding MBSFN Synchronization Area id Unpacking.

* Adding service area unpacking.

* Added unpacking functionality to the rest of the IEs in the M2 Setup Request. Unpacking the M2 Setup Request is passing unit test.

* Fized mistake in packing eNB Id. Starting to add packing to eCGI.

* Starting to pack value in ENB MBMS Configuration item.

* Fixed packing of ENB MBMS configuration item header.

* Packing of M2 Setup request is now passing the unit test.

* Starting to add M2setup response.

* Starting to add packing/unpacking succeful outcome.

* Starting to add M2SetupResponse to test.

* Continue to add testing to setup response. Choice type seems OK.

* Starting to add unpacking to MCE Id.

* Adding MCEname packing/unpacking.

* Continue to unpack m2setupresponse.

* Adding MBMS Area Id unpacking

* Added pddch length unpacking.

* Adding more IE unpacking.

* Adding more code to unpack M2 Setup response.

* Added M2 Setup response unpacking.

* Added M2 response packing. Fixed mistake on eCGI packing/unpacking, which broke M2 Setup request.

* M2 setup request and response pack and unpacking seems to work.

* Starting to add MBMS Session Start Request.

* Continue to unpack MBMS session start request.

* Added TMGI unpacking.

* Continue to add unpacking to MBMS session start request

* Starting to add TNL Information unpacking

* Added unpack for MBMS session start request.

* Strating to add MBMS session start request packing.

* Adding MCE MBMS M2AP Id packing.

* Added MBMS Session Start Reqeust pack and unpack.

* Added MBMS Session start response packing/unpacking.

* Starting to add unpacking of MBMS Scheduling information.

* Adding MCCH Update time Unpacking.

* Adding MBSFN Area Configuration List Unpacking.

* Starting to add unpack PMCH configuration Item.

* Adding AllocatedSubframesEnd unpack

* Fixed multiple mistakes in unpacking PMCH configuration.

* Unpacking MCH Scheduling Period

* Continue to unpack MBMS Session List Per PMCH Item.

* Added unpacking of PMCH Configuration List. Starting to add unpacking of MBSFN Subframe Configuration List.

* Adding radioframe allocation period and offset unpacking.

* Added unpacking of MBMS Scheduling Information (needs testing.)

* Added more testing to MBMS Scheduling Info.

* Small commit.

* Added more testing to the unpacking of MBMS Scheduling Information. Unpacking correctly now.

* Continue to pack MBMS Scheduling information. Packing PMCH Configuration.

* Fixed mistach in packing PMCH configuration list.

* Adding more packing to MBMS scheduling info message.

* Fixed more mistakes in MBMS Scheduling information packing. Passing tests now.

* Added MBMS Scheduling Information Response.

* Remove debug prints.
2018-12-12 15:22:35 +01:00
Ismael Gomez a8a0c3ebe7 Fixed compilation in zynq 2018-12-12 14:34:13 +01:00
Ismael Gomez 8f541cf4e1 Merge branch 'next' into neon_windowed_tdec 2018-12-12 11:47:50 +01:00
yagoda 3762738bc1 adding windowed neon turbodecoder (can be further optimized) 2018-12-12 11:27:07 +01:00
Andre Puschmann 571963b53d update install config script to allow installation to /etc 2018-12-11 20:50:36 +01:00
Andre Puschmann c88cc35fdf try to load config files from /etc/srslte before checking users's home 2018-12-11 17:40:48 +01:00
Andre Puschmann 59435c2c34 add own cpuid helper to detect avx2 support
the cpuid.h version caused issues with older GCC 5.4
2018-12-10 22:16:13 +01:00
Pedro Alvarez 21e1573152 Clang-format style guide. (#296)
* Added initial clang-format style guide.

* Added Inline exception for single-line functions. Changed pointer alignment to left. Changed AlignConsecotiveDeclaration to true.

* Changed BreakTemplateDeclarations to true. Changed Standard to Cpp03

* Changed break after class, inheritance list breaks and constructor initializers list.

* Changed Case indentation to have space. Changed the options for inheritance lists / contructor initializer lists.

* Removed comment.
2018-12-10 17:55:55 +01:00
Andre Puschmann 96f057d34b typo in phch_worker 2018-12-10 17:48:52 +01:00
Andre Puschmann 34f552fae9 add universal executable to select binary based on current ISA
- using cpuid to check x86 features
- using hwcap on ARM to check for NEON
2018-12-10 17:48:52 +01:00
Andre Puschmann d7ab2b8d66 add stop_timers function to RRC and call it in rrc::stop()
- this solves an issue with shutting down RRC when the UE
  just sent a connection request (and activated timer T300)
  and stop was called.
2018-12-10 17:48:52 +01:00
Andre Puschmann 2bc4d70199 reset TA before sending PRACH (fixes #285)
as suggested by Xavier in phch_recv.cc
2018-12-10 17:48:52 +01:00
Andre Puschmann d6196ba234 simplify RRC-NAS interface and only have msg as param (RRC selects LCID) 2018-12-10 17:48:52 +01:00
Andre Puschmann c9857fe4ad add handler for EMM status message 2018-12-10 17:48:52 +01:00
Andre Puschmann e02ed62d02 update tx adv nsamples calibrated with UXM 2018-12-10 17:48:52 +01:00
Andre Puschmann d52ea8b602 decrease threshold for DL scheduler to allocate SDU
since the RLC buffer state now returns the actual number of
bytes, which may be as low as 2B for a single RLC AM status PDU waiting
to be transmitted, the current DL scheduler wasn't allocating the
PDU even though it was given a grant
2018-12-10 17:48:52 +01:00
Andre Puschmann c3441046c9 simplify RLC buffer status query procedures
- add a simple and low-overhead has_data() method to check whether
  an RLC entity has data to transmit or not
- use this method for all calls that are actually not interested
  in the amount of data to send
- use the more expensive get_buffer_state() for all cases where
  the actual size of the buffer is of importance
2018-12-10 17:48:52 +01:00