Commit Graph

5572 Commits

Author SHA1 Message Date
Francisco Paisana 076aa6b1f8 fix mobility test for when the eutra_capability is received 2020-04-01 19:27:11 +01:00
Francisco Paisana 69486f2953 took out change in cc_worker to force retxs 2020-04-01 15:02:21 +01:00
Francisco Paisana 179e959d05 fix msg3 retx issue. Now nof_prb for pucch above 1 are forbidden for prb==6 2020-04-01 15:02:21 +01:00
Francisco Paisana c661025cda fix log tti, and print a warning when the ul_harq tti does not match existing ones 2020-04-01 15:02:21 +01:00
Francisco Paisana 30ae2226c1 common interface for stack multiqueue tasks, background tasks and timers 2020-03-31 13:42:06 +01:00
Andre Puschmann 6911ee3004 soapy: add macro to disable stream stopping before changing sample rate 2020-03-31 12:32:52 +02:00
Andre Puschmann d32b4d5529 fix benchmark_radio example 2020-03-31 12:32:52 +02:00
Andre Puschmann 62e4bd9469 log_ptr: fix issue if accessing log_ptr that was reset already
during deinit of the UE/eNB it could happen that the log_ptr
was already set to null but the stack thread was still accessing
it through log_h->info()

i've moved the old macro into a new header and used as as much
as possible. there are still places in the code where similar
macros are used but we would need to change the variable name
to replace them
2020-03-31 12:32:52 +02:00
Andre Puschmann ed646de7f1 soapy: fix segfault when launching and no device args where provided 2020-03-31 12:32:52 +02:00
Andre Puschmann c82e7d313a soapy: fix stream setup for new Soapy API
this caused an issue when compiling with latest SoapySDR drivers
that changed API for setupStream
2020-03-31 12:32:52 +02:00
Andre Puschmann dbb8b6a360 nas: add helper for entering new state in FSM
the helper will log the event
2020-03-30 11:23:40 +02:00
Andre Puschmann ef80502047 nas: print attach attempts on console 2020-03-30 11:23:40 +02:00
Andre Puschmann f477c1d2e5 nas: allow starting a attach request procedure even if a PLMN is already selected
previously the NAS would cancel a attach request procedure if the PLMN
is already selected. PLMN selection, however, in not necessarily happening
before requesting RRC to establish a connection.
2020-03-30 11:23:40 +02:00
Andre Puschmann d8680cc9a8 nas: add helper to pack attach request and send to RRC 2020-03-30 11:23:40 +02:00
Andre Puschmann cf28276a3a nas: add helper function to reset NAS security context 2020-03-30 11:23:40 +02:00
Andre Puschmann 94c6034339 nas: rename start_attach_request to start_attach_proc
this is to better differentiate from "send_attach_request" that
only packs and send the actual attach request message. The
entire attach procedure may include PLMN search, etc.
2020-03-30 11:23:40 +02:00
Andre Puschmann 9239bb14a6 ss: store current TTI in DL/UL grant struct
this fixes the TTI log in the PCAP generated by the UE
2020-03-30 11:23:40 +02:00
Andre Puschmann 5267a88d60 ttcn3_ss: remove unneeded NDI reset 2020-03-29 22:36:33 +02:00
Andre Puschmann 562b4ef6c8 ttcn3_ss: add missing timer stepping 2020-03-28 21:24:13 +01:00
Andre Puschmann 0e76b9ed15 nas: set NAS key set identifier to no key available when attaching with IMSI 2020-03-28 21:24:13 +01:00
Andre Puschmann 9cfe692825 nas: fix reset of attach attempt counter according to 24.301 Sec 5.5.1.1 2020-03-27 18:15:37 +01:00
Andre Puschmann d0480141e5 nas: move re-arming and stopping of attach request related timers
t3402, t3410 and t3411 are now managed in the sender
function of the attach request. previosly they were only
correctly started in the high-level NAS call start_attach_request()
which may not be called if NAS itself resends the request
2020-03-27 18:15:37 +01:00
Andre Puschmann 15c47fab56 nas: adding t3402 to restart attach after initial attach attempt counter expired 2020-03-27 18:15:37 +01:00
Andre Puschmann 7ef56cb637 nas: add an attach attempt counter as described in 24.301 2020-03-27 18:15:37 +01:00
Andre Puschmann 890f346808 pdcp: fixing LTE rx test
the test was introducing two lost SN and the number of expected SDUs
wasn't changed. Changed now counters, etc to only drop one SN.
2020-03-27 10:54:19 +01:00
Francisco Paisana 67f6eebf61 fix rlc stress test to reflect threading in stack 2020-03-26 20:11:35 +00:00
Francisco Paisana 575475962f the rlc um rx does not need a mutex bc it is always called in the stack thread 2020-03-26 20:11:35 +00:00
Ismael Gomez 8e07547909 Fix device_args in x300 when setting master_clock 2020-03-26 19:12:17 +01:00
Andre Puschmann 175f7fd587 pdcp: turn warning of PDCP duplicate into debug message 2020-03-26 14:21:14 +00:00
Andre Puschmann 5e9aa38551 pdcp: add test for reception of dublicate PDU 2020-03-26 14:21:14 +00:00
Xavier Arteaga cca3cccfbe Improved fading model generation 2020-03-26 08:23:07 +01:00
Xavier Arteaga a44a61d781 Fix HST channel emulator for keeping coherent phase between frames 2020-03-26 08:18:24 +01:00
Pedro Alvarez 88f56721ee Fix issue where connection was still setup when no EPC was connected. 2020-03-25 22:19:26 +01:00
Francisco Paisana 9f5c2cb92f fix net log setup 2020-03-25 20:22:04 +00:00
Francisco Paisana 1cbf7eac04 removed uneeded lock in rlc_am_lte 2020-03-25 19:18:00 +00:00
Francisco Paisana 42ed3a49eb fix 5g compilation error 2020-03-25 19:18:00 +00:00
Francisco Paisana 288e9e9db7 removed as many readlocks as possible from the rlc. Using now guards for locking as well. 2020-03-25 19:18:00 +00:00
Francisco Paisana 1538917c3f fix ue metrics 2020-03-25 19:18:00 +00:00
Francisco Paisana 599588ff51 removed uneeded locks in the rlc, moved ue stack get_metrics to stack thread, solved the idle procedure double-locking 2020-03-25 19:18:00 +00:00
Ismael Gomez 95c6916987
Improve robustness in RF Overflow (#1124)
* Use task id to track old background tasks in RA procedure

* Improve robustness against RF overflow in PHY

* Increase SNR out-of-sync threshold

* Do not change frequency if it's the same

* Increase sync priority

* Increase time to start receiving to reduce input buffer occupation

* Use scoped lock in sf_worker
2020-03-25 16:56:32 +01:00
Francisco Paisana 8aa44928e9 fix 5g compilation errors 2020-03-25 15:50:30 +00:00
Francisco Paisana 344eaf49ec use logmap in the whole enb and ue 2020-03-25 15:50:30 +00:00
Ismael Gomez 9a264b62c4
Protect access to shared grants (#1117)
* Protect access to shared grants

* Set correct number of carriers for DL

* Fix previous issues

* Address comments
2020-03-25 14:30:43 +01:00
Francisco Paisana 8e837e173d printf has already a way to pad spaces. If we use it, we can avoid accidentally adding extra logs because we did srslte::logmap::get("MAC") instead of srslte::logmap::get("MAC ") 2020-03-24 22:36:27 +00:00
Francisco Paisana 4baeee10c5 avoid dangerous [] map operator 2020-03-24 17:48:29 +00:00
Francisco Paisana 1839b9a6e5 cleaned up paging code to avoid extra processing steps in worker threads 2020-03-24 17:48:29 +00:00
Francisco Paisana 9c028ab723 removed user_mutex from srsenb::rrc. All that needed to happen was the prach_worker calling add_user from stack thread (done in an earlier PR), and the get_metrics run in the stack thread. I achieved the latter with an extra metrics queue 2020-03-24 17:48:29 +00:00
Pedro Alvarez 75f35d8ded Making the default eNB TAC match the default EPC TAC. 2020-03-24 17:02:47 +01:00
Ismael Gomez c157a37894 Address comments 2020-03-24 16:47:33 +01:00
Ismael Gomez 7a7385d0e5 Support multiple carriers for common buffers (RAR/BCCH/PCCH) 2020-03-24 16:47:33 +01:00