Andre Puschmann
e7c10270fa
ttcn3_ss: fix security activation for PDCP
2020-03-01 18:26:45 +01:00
Andre Puschmann
5a03eaed2b
ss: move timing_info_t to ttcn3_helpers, fix PDCP count handling
2020-03-01 18:26:45 +01:00
Andre Puschmann
72c5b381e4
fix bug when parsing cipher algo config for SS
2020-03-01 18:26:45 +01:00
Andre Puschmann
8a69772ebc
rewrite packing of DL PDU in SS
...
the new algo tries to write more than just one RLC PDU inside a MAC PDU
if this is possible
2020-03-01 18:26:45 +01:00
Andre Puschmann
e919c57a32
add handling of FollowOnFlag from tester
2020-03-01 18:26:45 +01:00
Andre Puschmann
89d5876470
add TimingInfo support for remaining SS commands
2020-02-28 18:09:21 +01:00
Francisco Paisana
e859d622c7
added logref class to forbid logmap pointer invalidation. Created a test for the logref, and introduced it in the scheduler, rrc and nas
2020-02-28 11:33:26 +00:00
Andre Puschmann
81e28aa9dc
add basic support for TimingInfo field from tester
...
this fixes an issue where commands are received out of
order and we are therefore applying configs incorrectly. if
commands include a timinginfo we are now putting the command
on a queue that the SS reads after the start of a new TTI.
the security and cell reconfig commands will be added in another
PR after the AS_security command has been fixed.
2020-02-27 21:27:43 +01:00
Andre Puschmann
55a5947df7
add default init to TTCN3 syssim to prevent segfault when tc_start isn't received
2020-02-26 12:20:23 +01:00
Andre Puschmann
39f2011699
fix issue in SS where Msg4 wouldn't be sent because ConnectionSetup is provided too late
2020-02-25 21:28:15 +01:00
Andre Puschmann
b88e877b4c
ttcn3: make SS single threaded and use SCTP for test ports
...
- remove all threading from SS
- use epoll to handle test port connections, signals, and timers
- convert testport interface to SCTP
2020-02-25 21:28:15 +01:00
Francisco Paisana
c29f08d8d5
refactored si acquisition procedure to use stack timers. Also created an interface that is going to be used for the task/timer handling
2020-02-20 20:48:36 +01:00
Xavier Arteaga
f8165383f6
Neighbour SCell measurement test waits for final measurement before exiting-xx
2020-02-18 21:26:20 +01:00
Francisco Paisana
22f51bb30b
made cell select non-blocking using background threads
2020-02-18 09:47:33 +01:00
Ismael Gomez
4fb83ae26d
Run configure_prach_params as a background task
2020-02-16 21:27:24 +01:00
Andre Puschmann
701e4aa6be
fix bug causing segfault when UE wasn't initialized
2020-02-15 19:33:25 +01:00
Andre Puschmann
b15cd3fdaa
add error handling to TTCN3 socket handlers
2020-02-15 19:33:25 +01:00
Andre Puschmann
42920d508f
fix SS debug output
2020-02-15 19:33:25 +01:00
Xavier Arteaga
6672f6df0f
Minor aesthetic changes in intra measure class and changed scell_search test arguments
2020-02-13 14:25:00 +01:00
Xavier Arteaga
344016ef0a
Refactored and commented SRSUE's Intra measure component
2020-02-13 14:25:00 +01:00
Xavier Arteaga
8f6dd184be
SRSUE: neighbour cell measurement test defined
2020-02-13 14:25:00 +01:00
Andre Puschmann
0e337a01c3
fix SRB2 security handling in SS
2020-02-07 10:20:12 +01:00
Andre Puschmann
9720449cbb
fixing RRC measurement test after logmap refactor
2020-02-03 12:51:46 +01:00
Andre Puschmann
3d7598a4cb
rewrite cell handling in TTCN3 PHY and SS
2020-02-03 12:51:46 +01:00
Andre Puschmann
bbacc35e24
move configuration of default logger to main
...
this prevents the case where a layer requests a new log_filter
before the default logger has been configured
2020-02-03 12:51:46 +01:00
Xavier Arteaga
66bb7d6f82
SRSUE: fix TTCN3 compile
2020-02-03 12:51:46 +01:00
Xavier Arteaga
f8294fb9df
SRSUE: RRC measurements refactor and more fixes
2020-02-03 12:51:46 +01:00
Ismael Gomez
52716f8716
Process HO complete in the background to avoid heap-after-use bug when PHY measurements are reported during a HO
...
rrc_meas refactor. Need to split commit
Fix typo
Temporal commit
Apply rx_gain_offset to neighbour cell measurements
srsLTE: modify TESTASSERT Macro to follow codeline
SRSUE: prevent RRC from having serving cell in neighbour list
SRSUE: DL HARQ does not need Time Aligment Timer. UL is disabled using PUCCH resources release
SRSUE: extend intra-frequency to CA SCell
SRSUE: fix confusing/ambiguous code in the RRC measurements and fix concurrency issue
SRSUE: remove RRC measurement report triggers when measurements are modified or HO succesful
SRSUE: fix compilation issues and Reest SIB indexes
Fixes sync using incorrect cell configuration when search cell does not find a correct cell
Small refactor to remove measurement report triggers always after removing measurement
SRSUE: Removed SIC PSS from UE
SRSUE: fix inter-frequency reestablishment and added more traces
SRSUE: Fix compilation issue
2020-02-03 12:51:46 +01:00
Francisco Paisana
ea777d92e8
applied new logmap class to nas
2020-01-29 14:20:43 +00:00
Ismael Gomez
cc7dfefa1a
Fix logic for UL HARQ retx causing Msg3 adaptive retx to be identified as a new transmission
2020-01-28 21:33:10 +01:00
Francisco Paisana
5ae3afd2b8
created cbit_ref for unpacking const buffers
2020-01-23 12:22:19 +00:00
Andre Puschmann
bc6aa1a166
fixing PDCP call in TTCN3 SS
...
this fixes an issue introduced in 6ec573987a
2020-01-07 11:05:20 +01:00
Andre Puschmann
e24d33562a
disabling ue_phy_test temporarily
2019-12-30 00:16:59 +01:00
Andre Puschmann
e5609e299d
fix UE PHY test compilation on 32 bit systems
2019-12-23 23:06:52 +01:00
Xavier Arteaga
36b2102de8
SRSUE: avoid testing ue_phy_test
2019-12-23 22:57:37 +01:00
Xavier Arteaga
11eafa8ab4
srsLTE: FFTW wisdom gets loaded and saved by default
2019-12-23 22:57:37 +01:00
Xavier Arteaga
c92dce71b7
srsLTE: AGC only uses boundaries for requesting gain to Radio
2019-12-23 22:57:37 +01:00
Pedro Alvarez
6d4303cd94
Added option to force 32bit compilation (useful for debug). Fixed various warnings when compiling in a 32 bit arch.
2019-12-20 17:33:55 +01:00
Xavier Arteaga
089a5e21dc
Label test that memcheck is excessively long
2019-12-19 13:01:05 +01:00
Xavier Arteaga
ad46fc006f
srsLTE: Fix thread memory leak. Moved test. Fix CLang warnings.
2019-12-19 13:01:05 +01:00
Xavier Arteaga
447ede327c
srsLTE: removed unused argument
2019-12-19 13:01:05 +01:00
Xavier Arteaga
384c420c7c
SRSUE: fix phy workers concurrency issue
2019-12-19 13:01:05 +01:00
Xavier Arteaga
dc7ac0a8d6
SRSUE: Updated PHY test
2019-12-19 13:01:05 +01:00
Xavier Arteaga
6895bfa70a
SRSUE initial PHY worker test
2019-12-19 13:01:05 +01:00
Andre Puschmann
476f970ee1
replace FIXME with TODO
2019-12-18 11:25:56 +01:00
Pedro Alvarez
c5979f59eb
Clang format UE, eNB and lib ( #850 )
...
* Clang-formated UE, eNB and lib.
* Fixed compiling errors from clang-format.
* Fix linking issues introduced by clang-format
* Fix poor formating in initializing arrays of arrays.
* Fix mistake in conflict resolution on rm_turbo.c
* Re-apply clang format to gtpc_ies.h
2019-12-16 16:04:22 +01:00
Xavier Arteaga
bcde542111
SRSUE: fix typo
2019-12-12 12:04:36 +01:00
Pedro Alvarez
e68956bcf6
Adding discard timer timeout to PDCP config.
2019-12-04 18:21:14 +01:00
Pedro Alvarez
2e7ddef038
Continue to add discard_sdu to RLC interfaces.
2019-12-04 18:21:14 +01:00
Xavier Arteaga
b48bb0d754
Removed atof, atoll and atoi calls
2019-12-02 09:47:22 +01:00
Xavier Arteaga
8dd1c59e18
Added amplitude and power conversions to dB and viceversa
2019-12-02 09:47:22 +01:00
Pedro Alvarez
c6ddada488
Fix compilation issue when enabling TTCN3
2019-11-21 13:18:30 +01:00
Andre Puschmann
2f00fd62ec
fix PDCP config in TTCN3 SS
2019-11-07 14:12:08 +01:00
Francisco Paisana
8440126d35
removal of srslte::timers class
2019-10-23 19:33:25 +01:00
Francisco Paisana
d2c56caf7e
applied new timer class to the whole code base
2019-10-23 19:33:25 +01:00
Francisco Paisana
b254bdbb93
typedefed the proc_result_t<void> to become proc_state_t
2019-10-23 18:19:25 +02:00
Francisco Paisana
f2d88e5a5b
simplified NAS rrc connection request procedure
...
move non-type-specific methods of proc_t to its base class.
procedure state machine was simplified via a future-type. Now procedures dont get stuck until the user reads the procedure outcome.
made the NAS procedures more event trigger/reaction-based.
2019-10-23 18:19:25 +02:00
Andre Puschmann
44dcfbe5c2
use info_long to print full message rxed on SYS interface
2019-10-18 16:38:55 +02:00
Andre Puschmann
755a0599c4
rework cell list and SIB handling in SS
2019-10-18 16:38:55 +02:00
Andre Puschmann
891a66a2e5
make the establishment cause a paramter when sending a connection request
...
needed to signal a mo_sig establishment cause after a RLF
2019-10-18 16:38:55 +02:00
Francisco Paisana
e94755c471
revert nas_test fix
2019-10-18 12:36:17 +02:00
Francisco Paisana
9bcb268421
added for-range loop and bool decay checks to clang-tidy. Applied some of the recommendations of clang-tidy to nas.cc
2019-10-18 12:36:17 +02:00
Andre Puschmann
4d688bce98
fixing nas test
2019-10-16 10:35:24 +02:00
Andre Puschmann
487fdd5616
ttcn3: split SS interface and protect SS main thread properly
...
the SS main thread and the provided interaces weren't protecting members
correctly
2019-10-14 15:21:18 +02:00
Andre Puschmann
c5f52adfba
nas: fix issue in which NAS wouldn't allow to attach once it failed
...
the main issue was the plmn_selected variable. the solution
was to create a function to enter the deregistered state that resets the variable
and performs all other actions that need to be performed, like clearing
EPS bearers.
The patch also extends the SS to support AT commands to enable/disable
data services and now succesfully passes TC_9_2_2_1_7
2019-10-09 11:34:49 +02:00
Andre Puschmann
a166b3c2d9
fix PHY-MAC interface in TTCN3 PHY
2019-10-04 16:25:02 +02:00
Andre Puschmann
08418b17ce
fix concurrency issue in TTCN3 PHY
2019-10-04 16:25:02 +02:00
Francisco Paisana
6db0e474be
moved RA waiting procedure to a background task of the stack thread pool
2019-10-02 11:04:47 +02:00
Xavier Arteaga
665f899a74
Fixed some coverity and Clang tidy warnings
2019-10-02 11:03:03 +02:00
Francisco Paisana
fc9bb3c934
removed rrc asn1 header include from the ue_interfaces and phy
2019-09-30 21:05:32 +02:00
Andre Puschmann
db4cc71240
minor changes to TTCN3 dut to make reading logs easier
2019-09-24 12:32:26 +02:00
Xavier Arteaga
3c25e2b16c
SCell Search Test: Return success always if test is finished
2019-09-20 16:20:31 +02:00
Xavier Arteaga
9ee8cc0ad2
CRS SCell searcher: Fixed memory leaks
2019-09-20 16:20:31 +02:00
Xavier Arteaga
91a7bbf2b6
SCell search test: removed basic_string header
2019-09-20 16:20:31 +02:00
Xavier Arteaga
4c85b99ec5
SRSUE: Added intra frequency SCell search test
2019-09-20 16:20:31 +02:00
Xavier Arteaga
35f85c651c
SRSUE: Added SCell synchronizer and measurements based on reference signals
2019-09-20 16:20:31 +02:00
Xavier Arteaga
8e17aba5d8
Improved SSS decoding and improved scell_search_test
2019-09-20 16:20:31 +02:00
Xavier Arteaga
368690ea6b
SRSUE: Added intra frequency SCell search test
2019-09-20 16:20:31 +02:00
Francisco Paisana
0f166ce739
fixed mac_test
2019-09-19 10:19:46 +02:00
Francisco Paisana
946ead06e8
using an interface between the stack and lower mac to process demux pdus.
2019-09-19 10:19:46 +02:00
Andre Puschmann
9e1c46dfb0
add initial TTCN3 code
2019-09-17 21:56:47 +02:00
Pedro Alvarez
004db4a067
Applied clang-format to zuc_support PR.
2019-09-10 13:46:21 +02:00
David Rupprecht
4ff70b6008
reconfigured test case for eia sec matching
2019-09-10 13:46:21 +02:00
David Rupprecht
06ac8143a4
NAS test working again due to replayed sec caps mismatch
2019-09-10 13:46:21 +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
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
c9d3b61038
added resumable procedures to make RRC and NAS non-blocking
2019-08-08 10:56:54 +02:00
Pedro Alvarez
1944bf9a80
Continue to split pdcp_entity_lte and pdcp_entity_nr. Compiling now.
2019-07-30 15:01:50 +02:00
Andre Puschmann
2e9a981a8a
fix home plmn extraction for PCSC USIM module
2019-07-19 18:16:58 +02:00
Ismael Gomez
b81d4c5c9c
Fix MAC test
2019-07-14 09:01:14 +02:00
Andre Puschmann
e9342969f8
fix typo
2019-07-14 07:41:08 +02:00
Ismael Gomez
f6a5d28283
Addressed @andrepuschmann comments
2019-07-08 17:14:25 +02:00
Ismael Gomez
773c2a9721
Fixed multiple issues in Random Access procedure and extended MAC test
2019-07-08 17:14:25 +02:00
Francisco Paisana
bb0dbf0f1c
created a asn1 utils with helper functions and types related to the asn1. These types/functions will help isolate the rrc_asn1 lib from most of the layers, reducing this way the compile times, and leading to better isolation. This will also make the transition to NR smoother. I removed the asn1 types from the NAS and USIM interface so far.
2019-07-05 10:44:15 +02:00
Andre Puschmann
0094fbd191
mux/bsr: fix issue with corrupted UL-SCH PDU
...
BSR was triggered although there was not enough space in MAC PDU
2019-06-27 16:13:22 +02:00
Andre Puschmann
58763fb714
stack: move initialization of log object into ctor
...
this fixes the issue when the stack is torn down if, for example,
the radio couldn't be loaded correctly. it will hence call stop() on all stack
components which are not initialzized yet, and logging therefore doesn't work.
the log object is know during contruction time and therefore can be passed
in as soon as possible.
2019-06-27 14:51:33 +02:00
Andre Puschmann
dffbc4404f
add three more MAC tests for short PDUs
2019-06-26 17:57:25 +02:00
Andre Puschmann
7145cd2358
fix padding BSR generation and add test for it
2019-06-26 17:57:25 +02:00
Andre Puschmann
db224335a7
add MUX step function for PBR counting
2019-06-26 17:57:25 +02:00