Francisco Paisana
141960fbda
remove unnecessary shared_ptrs and use value semantics instead for the var_meas_cfg of the different enb cells
2020-09-24 09:52:09 +01:00
Ismael Gomez
b94d24ed98
Take into account CRS from neigbhour cells when measuring interference ( #1757 )
...
* Take into account CRS from neigbhour cells when measuring interference
* fix std::isnormal compilation
* Fixed compilation of test
* Address comments
* Remove unused overrides
2020-09-23 21:46:03 +02:00
Francisco Paisana
098172c911
fix cellIndex assignment in srsENB to not necessarily copy cell ID
2020-09-23 18:00:09 +01:00
Francisco Paisana
cf89d6645b
add comments explaining each function of the reest procedure
2020-09-23 14:59:38 +01:00
Francisco Paisana
d068d594af
implemented rrc reestablishment procedure part after sending reest request
2020-09-23 14:59:38 +01:00
Francisco Paisana
7d6c9a1751
Add cause and cell pci to reestablishment console message
2020-09-23 14:59:38 +01:00
Francisco Paisana
73e21daeb2
refactor reestablishment procedure to more closely follow TS.
2020-09-23 14:59:38 +01:00
Andre Puschmann
b2576b34b9
enb.conf.example: comment PUSCH MCS limit in example
2020-09-23 14:54:35 +02:00
Xavier Arteaga
236ef4378d
Fix u32 parsing
2020-09-23 14:16:52 +02:00
Xavier Arteaga
ede58319ae
Vector: added conjugate complex float to short
2020-09-23 09:06:03 +02:00
Xavier Arteaga
8566cbb079
Added device name to prach_test_usrp
2020-09-23 09:06:03 +02:00
Xavier Arteaga
60d563aa06
Fix ringbuffer read conversion
2020-09-23 09:06:03 +02:00
Xavier Arteaga
eb5210dbda
Radio stops Rx stream prior to stop and benchmark prompts RF metrics
2020-09-23 09:06:03 +02:00
Xavier Arteaga
de0501cc55
Fix radio benchmark
2020-09-23 09:06:03 +02:00
Xavier Arteaga
c20d4ff5cc
Added ringbuffer zerocopy a timeout
2020-09-23 09:06:03 +02:00
Xavier Arteaga
759719ad55
Improved RF helper
2020-09-23 09:06:03 +02:00
Andre Puschmann
1afc137032
[REBASE] Make PHY non-blocking and fefactor HO procedure ( #1753 )
...
* Make PHY non-blocking and fefactor HO procedure
* makes entire PHY non-blocking through command interface
* adds dedicated queue for cell_search/cell_select commands
* refactor HO procedure to run faster, in one stack cycle. Looks closer to the specs
* force ue to always apply SIB2 configuration during reestablishment
* Run update_measurements in all workers
Co-authored-by: Ismael Gomez <ismagom@gmail.com>
2020-09-22 21:47:16 +02:00
Ismael Gomez
399b986d0b
Fix deadlock caused by update_measurements calling in_sync ( #1760 )
2020-09-22 18:25:12 +02:00
Francisco Paisana
eb370642ab
verify cell selection observer is set before calling it
2020-09-22 17:09:18 +01:00
Francisco Paisana
7f8af023b8
added a callback that always gets triggered when the phy cell selection completes. This callback checks if cell selection failed, and if so, sets the rsrp of the selected cell to -infinity
2020-09-22 17:09:18 +01:00
faluco
0b127fa8c7
- Fixed several errors that could sent uninitialized data through the network.
2020-09-22 18:00:50 +02:00
faluco
a4f0ecba36
- Fixed a heap corruption where recvfrom could write past the buffer end.
2020-09-22 18:00:50 +02:00
faluco
c1e680769c
- Remove stray code left behind.
2020-09-22 18:00:50 +02:00
faluco
47953f4ef4
- Prefer addrlen initialization for each call to recvfrom.
2020-09-22 18:00:50 +02:00
faluco
f604506858
- Fixed missing initialization issues in nas that caused several jumps in liblte_mme to use uninitialized memory.
...
- Fixed missing initialization in spgw that caused recvfrom to use an unitialized argument.
2020-09-22 18:00:50 +02:00
faluco
8d1705d6c6
- Fixed a leak in mme_gtpc where the singleton instance was not freed.
...
- Rewritten the class to be self manage its lifetime.
2020-09-22 18:00:50 +02:00
faluco
b5b726ed48
- Fixed a memory leak in s1ap_paging. The static instance was not getting freed.
...
- Rewrite the singleton to self manage its lifetime.
2020-09-22 18:00:50 +02:00
faluco
f0d651ae8e
- Fixed a leak in the MME class not releasing the static byte buffer pool.
...
- Now the pool gets destroyed on program exit using a unique_ptr.
- Removed manual cleanup() calls in all the code base to free the pool instance.
2020-09-22 18:00:50 +02:00
Francisco Paisana
dcf5a727f2
do not send RRC release in case the eNB receives a S1AP UEContextRelease command and the UE is doing handover. Handle GTPU end marker
2020-09-22 16:51:45 +01:00
Ismael Gomez
5968157ea5
Protect better the access to shared variables in phy_common and metrics ( #1750 )
2020-09-22 14:32:08 +02:00
Andre Puschmann
eeb2b904aa
ue,rach: fix failing RACH proc when Msg3 grant RNTI matches current CRNTI
...
this was preventing that the Temp-CRNTI used in the RAR to be identical
to the currently configured C-RNTI of the UE.
The issue simply was that the RACH procedure was declared successful too
early, even before the Msg3 UL grant was filled with the Msg3 content.
The patch moves the logic that detects the successful completion of
the RACH procedure below the Msg3 packing.
2020-09-22 14:03:39 +02:00
Andre Puschmann
a36f9bddc2
ttcn3: use RNTI values in RACH provided by tester
...
this patch extends the SS to use the C-RNTI and Temp CRNTI values
provided by the tester for RAR and Msg3.
2020-09-22 14:03:39 +02:00
faluco
e14cb4b405
- Fix a missing thread join in the phy which caused a memory leak.
2020-09-22 09:17:01 +02:00
faluco
5acc1c9a73
- Cleaned up style in the PRACH class:
...
* Removed magic numbers.
* Reduced indentation of statements with early exists.
* Removed elses after a return statement.
* Trimmed unnecessary include files.
* Default initialized members in the class.
2020-09-21 09:50:20 +02:00
faluco
b892da0294
- Calculate the FFT of the PRACH on demand.
...
- Fixed a PRACH test that was failing with ASAN.
2020-09-21 09:50:20 +02:00
faluco
b6bbe8761a
- Remove left over printf.
2020-09-21 09:50:20 +02:00
faluco
79f5b62551
- Calculate PRACH buffers on the fly when required instead of pregenerating all of them.
2020-09-21 09:50:20 +02:00
Andre Puschmann
b616944a13
ue,rrc: fix security config during HO/reestablishment
...
we fix a number of very related issues for HO/reestablishment
in the success/error case:
* this patch removes the hard-coded check that intra-cell HO aren't
allowed. There are cases where eNBs use this method to update
the security context.
* the patch also fixes an issue after failed HO where the security context
of the source eNB should be used for the reestablishment.
* update security keys according to specs when mobilitycontrol
indicated change of key
2020-09-21 09:27:07 +02:00
Andre Puschmann
d90de639e5
ttcn3_syssim: continue when epoll returns -1
...
this allows to debug and step in the SS
2020-09-21 09:27:07 +02:00
Andre Puschmann
1b266257a1
ttcn3_phy: improve logging of cell measurements
2020-09-21 09:27:07 +02:00
Andre Puschmann
6827c2df21
rrc_meas: disable layer3 filtering until quantity config is received
...
the filter alpha was initialized to zero by default which causes an
issue because the first measurement for a cell can't be updated,
because the filtering function will always return the current value.
According to 36.331 Sec 5.5.3.2 Note 2, a k-value of 0 should turn
off filtering, which should be used as the default value until
an update is received from the network.
2020-09-21 09:27:07 +02:00
Francisco Paisana
13a5bfb525
- fix reestablishment reject transmission in the srsenb. For SRB0 SDUs, no RLC header is required, so we do not need to check in such case if there is enough space in the TB for the header.
...
- fix srsenb reestablishment check for UE context. The pci has to be accounted for the srsenb to understand that the UE trying to do reestablishment corresponds to one of its own
2020-09-18 22:18:05 +01:00
Francisco Paisana
97133894e6
the Ocs value used in the measReport triggering decision was not being set correctly. The enum of the cell individual offset in the measCfg was being cast to an int and stored. Instead what we want is to store the actual offset value using the ASN1 enum->number lookup table.
2020-09-18 13:17:32 +01:00
Xavier Arteaga
8cb3945886
SRSUE: fix RV assertion for PUSCH
2020-09-17 22:39:56 +02:00
Xavier Arteaga
44c2412be2
SRSUE: silent PUSCH encoding error by dropping invalid grant
2020-09-17 22:39:56 +02:00
Francisco Paisana
739c0c5c00
altered plmn search procedure handling of failed cell searches. If a cell search procedure fails due to inability to select a cell or acquire SIB1, the plmn search carries on for other frequencies.
2020-09-17 16:43:58 +01:00
Xavier Arteaga
3e6c337b44
SRSENB: protect MAC softbuffers access
...
SRSENB: fix retransmissions
2020-09-16 20:07:20 +02:00
Xavier Arteaga
b633c1abcd
SRSENB: report MAC CSI measurements of all configured cells
2020-09-16 20:07:20 +02:00
Xavier Arteaga
d0969a7ad9
SRSENB: review PHY UE DB assertions
2020-09-16 20:07:20 +02:00
Pedro Alvarez
f85fe1c5ac
Don't allow S1 setup with mis-matched TA codes between eNB and EPC.
2020-09-16 13:41:47 +02:00