2587 Commits (1bac152a8cf7c10e6b3e2b138d6540b8054f5461)

Author SHA1 Message Date
Andre Puschmann da2ac3b2c1 srsue,rrc_nr: fix warning and error logs in SA mode
- provide PHY config state to configure MIB values (coreset0).
- set PRACH freq_offset to valid value to please config checker.

Addresses:
2022-04-19T12:42:38.726040 [PHY-SA ] [E] [    0] prach_cfg.freq_offset=0 is not compatible with LTE
2022-04-19T12:42:38.726040 [PHY-SA ] [I] [    0] PHY:   Set TA offset: n_ta_offset: 0, ta_usec: 0.0
2022-04-19T12:42:38.726141 [RRC-NR ] [W] PHY configuration completed without a clear state.
3 years ago
Andre Puschmann 2313365a41 ul_harq_nr,ue: fix format print 3 years ago
Andre Puschmann b2e0481849 ue,mac,nr: fix another race in MAC 3 years ago
Andre Puschmann b157490cb3 ue,nr,mac: fix race-condition when accesing temp RNTIs during RA procedure
the race was in the prach_nr that stored the temp crnti without proper protection.
the fix moves the logic to store the value to the MAC that uses the thread-safe
RNTI object for this.
3 years ago
Andre Puschmann 899e4148d4 ue,mac_nr: reset DL and UL HARQ when MAC is reset
DL and UL harq entities where never reset when the UE was going into IDLE.
As a result, the first transmissions where always using the old softbuffer
without resetting it, resulting in wrong TB being decoded.

In the case of the RAR, the UE decoded a wrong (in fact the old) TCRNTI
and the RA procedure failed.
3 years ago
Ismael Gomez 1507eed79c srsue,mac: return temp-rnti for UL grants if availabl 3 years ago
Ismael Gomez 6ffa036b84 srsue,stack: initialize sdap pointers 3 years ago
Ismael Gomez a1905072b8 srsue,rrc_nr: check SDAP configuration before passing to SDAP module 3 years ago
Ismael Gomez f8c2fa05bf srsue,phy: support n_ta_offset parameter from sib1 3 years ago
Ismael Gomez edeb8e8f18 srsue,nr: add TA support from RAR and MAC CE 3 years ago
Ismael Gomez b3497c4a94 srsue,nr: decode SIB1 based on coreset0 configuration in MIB 3 years ago
Ismael Gomez bfe69deccc srsue, nr: Add SDAP to the UE. Supports only UL header 3 years ago
Ismael Gomez a4f26fa5d6 srsue,rrc: send precanned UECapabilityInformation 3 years ago
Ismael Gomez f83557b891 srsue,phy: use common pucch for msg3. Completed table for all pucch_common_idx values 3 years ago
Ismael Gomez 7bb6aa1f50 srsue,mac: do not add sbsr_ce on Msg3 3 years ago
Ismael Gomez 496b8e2748 srsue,mac: do not destroy active dl_harq_proc during a reconfiguration 3 years ago
Ismael Gomez 12435eae7d srsue,phy: avoid changing the sampling rate while sync thread is already receiving 3 years ago
Ismael Gomez 7f8ac07b65 srsue: fix A1/S2 reports with CA. Fix some unstability issues when doing HO with multiple carriers due to frequent call to update_phy 3 years ago
Ismael Gomez bdbfc3478b srsue,phy: do not reestablish if configured more carriers than existing 3 years ago
Ismael Gomez 08b20ba4b2 srsue,phy: change stop order to avoid locking 3 years ago
Robert Falkenberg 50ac1c6c0a cmake: flag install() of compiled targets as OPTIONAL
This enables `make install` for partial builds of selected targets,
which otherwise fails because the omitted targets are not present.
3 years ago
Pedro Alvarez 031b91a180 ue,nas5g: fix using wrong serving network name in authentication request 3 years ago
Joaquim Broquetas 520128162e
Add CFR to srsue LTE UL (#3865)
lte,phy: Add CFR to srsue LTE UL

This commit adds the configuration steps needed to enable
and configure the CFR module for the srsue's uplink signal.
Parsing of the CFR manual threshold has been streamlined.
3 years ago
Codebot 42cc7d5d1a Merge branch 'next' into agpl_next 3 years ago
Bedran Karakoc 380280b4d0 lib,nas_5g: Log cause for pdu session establishment reject 3 years ago
Francisco Paisana e4a15c9c51 rrc,gnb: move non-phy fields out of phy_cell_nr_t 3 years ago
Francisco Paisana e8902c785f rrc,gnb: remove srsran_prach_cfg_t from gnb rrc config struct 3 years ago
Andre Puschmann 32885e2404 ue, rrc_nr: refactor PHY config statages for NSA/SA operation
split the PHY config states into NSA and SA states.
this should remove unwanted warnings when PHY returns
from the configuration.
3 years ago
Xavier Arteaga ace6026d24 UE-PHY: Skip PUCCH-NR transmission if there is no PUCCH resource available 3 years ago
Andre Puschmann 26f3f6109b gw,pdcp,rlc,mac: log rate metrics in debug mode
reduce periodic log spam for L2 in info level
3 years ago
Andre Puschmann d65ae322d3 ue,rrc: fix UL center freq setting 3 years ago
Andre Puschmann 1fb4a54b28 srsue,rrc_nr_procedures: only send reconfig complete in SA mode 3 years ago
Andre Puschmann bb2777536a rrc_nr: reduce loglevel to debug for some reconfig parsing messages 3 years ago
Andre Puschmann 83ad98c58b srsue,rrc_nr: add helper to configure default PHY layer parameters 3 years ago
Andre Puschmann 98494a1ea2 srsue,rrc: remove timer stopping in main RRC class as this is done in procedures 3 years ago
Andre Puschmann 1b891bb600 srsue,rrc: check present flag before parsing UCI PUSCH scaling info 3 years ago
Andre Puschmann 82429d1742 srsue,rrc: fix PHY config updates in SA/NSA mode
* in SA the entire PHY config is applied immediately
* for NSA (in some scenarios) parts of the config are applied after the RA complete

This fixes #3842
3 years ago
Andre Puschmann 96ef1beaf2 srsue,phy,nr: only read metrics for NR rat 3 years ago
Andre Puschmann 8cf6c851e1 srsue,rrc: remove phy_cfg_default header
* address Xicos comment in https://github.com/softwareradiosystems/srsLTE/pull/3836
3 years ago
Andre Puschmann 7c63da9e4d srsue,rrc_nr: expose main carrier parameters as config
* remove hard-coded ARFCN, SCS, etc
* use PCI deteceted in cell search for carrier config
3 years ago
Andre Puschmann 8464a6ed63 srsue: refactor SA mode in RRC, don't initilize NSA-5G in NSA mode 3 years ago
Andre Puschmann 71f48ee7f2 ue,rrc: refactor PHY parameter derivation for SA
* expose carrier/SSB config in RRC args
* provide hard-coded values until exposed as param
* remove coreless option
3 years ago
Bedran Karakoc d448eac941 ue,rrc_nr: Add dummy handler for RRC Release to avoid logging an unhandled message error 3 years ago
Bedran Karakoc 84c842f8c3 lib,nas_5g: Fix logging in configuration update complete message 3 years ago
Codebot 088f69da81 Adding AGPL copyright to new files 3 years ago
Codebot fb75a5ef0e Merge branch 'next' into agpl_next 3 years ago
Andre Puschmann e3b95de5e0 ue,metrics_test: add testcases for EUTRA,NSA, and SA mode 3 years ago
Andre Puschmann 4890ee9875 ue,rrc: add RRC metrics and fix stdout 3 years ago
Andre Puschmann d71f4152cd ue: register PDU session at bearer manager to NAS doesn't trigger service request
* forward service request to NAS 5G in SA mode
* register PDU session at bearer manager so service request isn't triggered in the first place
* remove [TTI] from GW logs
3 years ago
Bedran Karakoc efa13290a9 ue,rrc_nr,nas_5g: Introduce NR AS Key derivation and update context handling in 5G NAS 3 years ago
Bedran Karakoc a8eaf1cdd8 ue,nas_5g: Add get_k_amf() helper function and security context flag 3 years ago
Andre Puschmann d035a57ed5 ue,rrc_nr: various smaller refactors to allow SA attach 3 years ago
Andre Puschmann 4f8991e41a ue,rrc_nr: temporarily add hard-coded SIB1 message for cell select
this will be remove shortly when SI reception is implemented but its
required right now to have the PLMN read correctly and to avoid
changes in the meas_cell_list class, etc. that require valid
values.
3 years ago
Andre Puschmann 9c9db176d5 ue: set NAS-5G args in ue module using NAS-LTE arguments 3 years ago
Andre Puschmann b5a39f9d9f ue,rrc_nr_proc: if bug connection_setup_proc that cause procedure to fail 3 years ago
Andre Puschmann f3fa0d6d46 ue,rrc_nr: add RRC Reconfig Complete sender 3 years ago
Xavier Arteaga 57b50edbe2 Fix initial buffer data and removed unimplemented method 3 years ago
Codebot 9664aa3cf4 Merge branch 'next' into agpl_next
# Conflicts:
#	lib/include/srsran/phy/channel/ch_awgn.h
3 years ago
Fabian Eckermann 12cc7cb4d7 Add support for RRC redirect. 3 years ago
Andre Puschmann 4cda49a037 ue,rrc_nr: cosmetic changes, typo 3 years ago
Andre Puschmann 486483da13 nas_5g: small typo fixes 3 years ago
Andre Puschmann 09b8d3ba6b ue,rrc_nr: add message handler/sender for SA until security mode command 3 years ago
Xavier Arteaga 0812a90d21 Removed unused attribute and fix end-of-burst in NR UE SA PHY 3 years ago
Xavier Arteaga d089653bd2 Fix concurrent access in UE NR PHY clear pending states 3 years ago
Andre Puschmann e9252c731e ue,rrc: fix cell selection and RRC setup procedure
* fix event processing in RRC procedures
* add UE timer and constants
* parse SRB setup
3 years ago
Andre Puschmann c13797d287 ue,mac: remove double newlines in logs 3 years ago
Francisco 3c25b6cb24 asn1: remove presence flag for lists and octet strings, as the size of the latter implicitly tell if the asn1 field is present 3 years ago
Xavier Arteaga ae0fb4f4fc UE NR PHY cell select minor fixes 3 years ago
Xavier Arteaga 8854ba49b9 UE RRC NR includes cell search in the initial cell selection procedure 3 years ago
Xavier Arteaga c26f030edb UE PHY SA Slot synchronization integrated 3 years ago
Xavier Arteaga d661db032d Ammended UE NR RRC to perform cell selection without a procedure 3 years ago
Xavier Arteaga 98f304bfa8 Add in srsue and srsenb SSB configuration in log 3 years ago
Codebot 141073050e Merge branch 'next' into agpl_next 3 years ago
Ismael Gomez 89f910e79e srsue,phy: do not queue set_scell command in background if running from set_cells_to_meas comman 3 years ago
Ismael Gomez 552e0816f7 ue: store new EARFCN in the foreground of cell_select to avoid race conditions with the other cmd_worker 3 years ago
faluco 1ec8e8a94e Raise C++ version to 14 and fix ill-formed code that is considered by this new standard. 3 years ago
Xavier Arteaga 2c7287e4d4 Fix successful related typos 3 years ago
Xavier Arteaga e8095529d7 Fix NR UE SFN Sync 3 years ago
Xavier Arteaga db19941985 Minor changes on UE SA PHY 3 years ago
Xavier Arteaga e2b2007293 Fix srsue compilation 3 years ago
Xavier Arteaga 5760080b27 Fix multiple nr_phy_test tests 3 years ago
Xavier Arteaga d6ee282796 Created dummy radio and moved UE dummy PHY into real UE SA PHY 3 years ago
Xavier Arteaga 3b396c8a9a Implement and test initial SFN synchronization for UE standalone mode 3 years ago
Xavier Arteaga 4f86c2fac7 Added more information in NR PHY SA cell search test 3 years ago
Xavier Arteaga d4fd4c8350 Fix deadlock 3 years ago
Xavier Arteaga a5130673f6 More cell search development 3 years ago
Francisco Paisana 61e225d762 asn1: move setup_release_c from rrc_nr_asn1 to asn1_utils and improved interface 3 years ago
Fabian Eckermann 4182a9f164 Add cell group update without random access. 3 years ago
Fabian Eckermann cb6809c9b2 Add SA RRC reconfiguration test. 3 years ago
Fabian Eckermann a6c1098afe Add decoding of RRC reconfiguration. 3 years ago
Fabian Eckermann a9724fced1 Remove unused code from test. 3 years ago
Xavier Arteaga 6c4c1ea155 NR UE PHY: interfaced fix wideband CQI reporting in nr_phy_test 3 years ago
Codebot b1e5bd3c31 Merge branch 'next' into agpl_next 3 years ago
Ismael Gomez 4d382905fd ue,lte: run parse_meas_config after RACH is complete to avoid race condition with PHY reset 3 years ago
Ismael Gomez 2d31e11144 ue,lte: update rx_gain_offset more frequently. Avoid calling UHD driver when getting rx_gain 3 years ago
Ismael Gomez 120ad5c72f ue: store new EARFCN in the foreground of cell_select to avoid race conditions with the other cmd_worker 3 years ago
Robert Falkenberg 226001709d srsUE: refactor option to filter N_id_1 / SSS to configuration
* pick the cell with strongest peak (instead of last match)
* proper selection if N_id_2 was forced too
* add comment explaining potential occlusion of cells
3 years ago
Matan Perelman 0dff58613f srsUE: Add option to filter N_id_1 / SSS to configuration 3 years ago
Codebot 0673d45338 Adding AGPL copyright to new files 3 years ago
Codebot 21525935ab Merge branch 'next' into agpl_next
# Conflicts:
#	srsue/hdr/phy/ue_lte_phy_base.h
#	srsue/hdr/phy/ue_nr_phy_base.h
3 years ago