Commit Graph

173 Commits

Author SHA1 Message Date
Francisco Paisana e8902c785f rrc,gnb: remove srsran_prach_cfg_t from gnb rrc config struct 2022-02-08 18:21:07 +01:00
Carlo Galiotto b259dbedb1 enb: tentative fix for ubuntu18.04 compile error
Signed-off-by: Carlo Galiotto <carlo@srs.io>
2022-02-07 12:09:38 +01:00
Joaquim Broquetas b2075673e5
Crest Factor Reduction feature for the phy layer (#3720)
* Add CFR module to the phy lib

* Add dynamic threshold with PAPR estimation

* Add a CFR unit test, CFR module improvements and refactoring.
Swap the gain normalization before the CFR.

* Add CFR config interface to srsenb

* Add CFR support to pdsch_enodeb

* Add DL PAPR measurement to eNB.

Co-authored-by: Cristian Balint <cristian.balint@gmail.com>

* Add test coverage to srsran_vec_gen_clip_env
2022-02-04 10:35:35 +01:00
Ismael Gomez 67db8a2b75 srsenb: add support for A5 report 2022-01-13 17:35:20 +01:00
Ismael Gomez dcd94649ef enb,parser: add option to set a default tx gain per cell 2022-01-13 17:25:39 +01:00
Francisco d1ddd3da4d gnb,rrc: make plmn and cell id configurable in SIB1 2021-12-01 12:22:14 +01:00
Francisco 61e923a6a6 nr,gnb,rrc: configurable RRC NR inactivity timeout 2021-11-26 17:20:18 +00:00
Francisco 5411e75ce3 fix failing unit tests due to bug in enb parser related to the rf_port 2021-11-25 19:03:30 +00:00
Pedro Alvarez f86fbe97bd gnb,rrc_nr: simplified parsing of NEA/NIA preference list 2021-11-25 16:11:09 +00:00
Pedro Alvarez 84f94b26b2 gnb,rlc_nr: re-used security algo preference list from LTE. Added the ability to enable integrity/encription at the PDCP upon the security mode command. 2021-11-25 16:11:09 +00:00
Andre Puschmann 77a7185274 cfg_parser: check RF port numbering starts with zero
make sure all RF ports are in-order with no gaps and zero indexed
2021-11-25 16:30:34 +01:00
Francisco 976532fb52 nr,gnb,cfg: set phy nr cell cfg only after the rrc cfg is completely generated 2021-11-24 20:24:39 +00:00
Francisco 9ecb3f516d nr,gnb,rrc: add helper function to derive rrc cfg parameters for all cells 2021-11-24 12:30:00 +00:00
Francisco 79a018683f nr,gnb,rrc: consistent generation of rachConfig for phy, SIB1, and NSA reconf 2021-11-18 22:48:14 +00:00
Andre Puschmann 7eb4fb944d gnb,ngap: set NGAP connect params to S1AP equivalents
in SA mode we use the S1AP params for AMF and NGC
2021-11-18 17:29:15 +01:00
Francisco fec97689a2 rrc,nr,gnb: refactored rrc nr cfg default and derived param generation to be mostly independent of parser 2021-11-16 00:12:36 +00:00
Francisco 0b8a6970f0 nr,gnb,rrc: fix ssb frequency derivation when coreset0 is active 2021-11-15 15:47:31 +01:00
Francisco 92c4e6e2d0 nr,gnb: account for CORESET#0 RB offset (See 38.213, table 13-1) in computation of SSB center frequency 2021-11-15 15:47:31 +01:00
Francisco 2d6ce768c7 nr,gnb,rrc: generation of MIB/SIB1 inside rrc_nr class and test to verify the correct output 2021-11-04 18:05:14 +00:00
Francisco 7e7f7b4c01 nr: fix failing unit tests 2021-11-04 15:24:57 +00:00
Francisco dab6e8bdcd nr,gnb: updates in parsing and phy files to allow the splitting of NR and LTE stacks 2021-11-04 15:24:57 +00:00
Fabian Eckermann 32a1646536
nr,gnb,rrc: Derive RRC parameters from config.
* Derive RRC parameters from config.
* nr,gnb,rrc: hard code prach config index to 8 to avoid expiring RA proc window.
2021-10-25 20:54:32 +02:00
Francisco c6226b0d94 lte,enb,rrc: parse cellIndividualOffset in rr.conf and propagate it to measConfig sent to UE 2021-10-21 16:16:01 +01:00
Fabian Eckermann 33df51a1f5 Remove error message if dl_freq and ul_freq are not specified. 2021-10-15 11:49:27 +02:00
Xavier Arteaga f250c83a66 Minor NR configuration fixes 2021-10-13 11:00:03 +02:00
Xavier Arteaga b060c3deca Add possible band when invalid band is given 2021-10-06 18:02:55 +02:00
Andre Puschmann 8d2c394326 enb,rrc: fix SSB absolute freq value in EUTRA measConfig
we've been using the ARFCN of the NR carrier instead of
the absolute freq SSB.

The patch fixes this and renames the variable to make it clearer.
2021-10-06 18:02:15 +02:00
Andre Puschmann bdc84f24f3 gnb,cfg: fix SSB config deriviation
* this fixes the SSB config for TDD
* UE decodes the SSB correctly
2021-10-06 14:30:29 +02:00
Andre Puschmann 06fbb58d70 gnb,mac: add dedicated arguments struct for MAC-NR
as the PCAP object is now only visible inside MAC-NR we can't
share the PCAP file between EUTRA/NR (like we do in the UE).

This patch removes the hard-coded filename for the NR PCAP file.
2021-10-06 10:44:56 +02:00
Fabian Eckermann cb721aa292 fix calculation of ssb frequency. 2021-10-05 18:21:58 +02:00
Francisco Paisana 7aa701eb85 nr,config: fix default SSB periodicity configuration in rrc and scheduler 2021-10-04 19:26:07 +02:00
Andre Puschmann 8bb06ff2c0 Added SSB in gNb PHY 2021-10-04 19:26:07 +02:00
Andre Puschmann 3e5b40fd36 enb,rrc: fix compilation after freq point a has been removed from nr_carrier_t
since absolute freq point a members have been removed from the srslte_nr_carrier_t
struct (they are now actual frequencies) the abs_point_a values are now in
the RRC cell structs
2021-10-04 17:52:14 +02:00
Fabian Eckermann 95abfbfec8 Calculate ssb frequency from freqency point a. 2021-10-04 15:59:05 +02:00
Andre Puschmann 782aefa553 enb,rrc: derive ENDC configuration from cell config
* move ENDC config struct to main RRC config (same for all UEs)
* remove hard-coded measurement config for NR carrier
* now both TDD and FDD cells are correctly handled
2021-10-02 17:39:19 +02:00
Fabian Eckermann 992d1bb02a Configure PHY from RRC. 2021-10-01 19:21:08 +02:00
Fabian Eckermann 1018e7ae1c fix validation of ul_arfcn. 2021-10-01 10:56:57 +02:00
Fabian Eckermann 93eb6e93d9 Read band from rr config. 2021-10-01 10:56:57 +02:00
Ismael Gomez ada05ea0c8 Add A1, A2 and A4 measurement Reports event triggers 2021-09-29 21:39:56 +02:00
Fabian Eckermann 8830c2796f Add support for NSA FDD on band n3, n5 and n7. 2021-09-29 16:03:44 +02:00
Andre Puschmann 802b22ac91 enb,nsa: refactor NR RRC/cell config parsing
this allows to access all cell-related params from within RRC
2021-09-22 16:41:18 +02:00
Xavier Arteaga 25a4c7db92 SRSENB: make nr_cell_list optional 2021-09-21 11:30:56 +02:00
Andre Puschmann 39e00bdbe8 enb,nsa: fix deriviation of UL ARFCN from DL ARFCN for FDD bands 2021-09-17 17:32:50 +02:00
Andre Puschmann 93e1d7712d enb,phy: add checks for invalid EARFCN and exit eNB if config is wrong 2021-09-10 22:08:26 +02:00
Andre Puschmann b5dcf7804c enb,cfg: add new NR cell list to RR configuration parser 2021-09-10 22:08:26 +02:00
Ismael Gomez 00653bdd46 Fix PUCCH2 RRC scheduling 2021-09-07 12:14:36 +02:00
Xavier Arteaga 0ca70e6ad7 Implement enb to gnb number of PRB conversion 2021-08-03 10:47:40 +02:00
Andre Puschmann ffc63ea270 enb: use band_helper to derive freqencies for NR carrier 2021-08-02 15:18:47 +02:00
Xavier Arteaga 97db7f2d34 Added custom frequency in cell parser 2021-07-23 14:31:32 +02:00
Ismael Gomez 5d034b067e
Add option to rr.conf to select sub-band CQI K value (#3071) 2021-07-15 21:23:35 +02:00