Commit Graph

4255 Commits

Author SHA1 Message Date
Francisco 5b2afb1739 rrc,nr,gnb: ensure same PDCCH config is sent to PHY, scheduler cell config, and sched ue cfg 2021-10-16 22:43:23 +01:00
Francisco 7a16be9692 rrc,nr: ensure coresets and search spaces are passed to scheduler cell_cfg and ue_cfg 2021-10-16 22:43:23 +01:00
Andre Puschmann e5556fcc32 mac_pdu_nr_test: add LBSR unpacking tests 2021-10-16 21:50:07 +02:00
Andre Puschmann af69551c8d mac_sch_pdu_nr: add LBSR unpacking
* add LBSR unpacking
* add pretty printer
* also simplify and unify general unpacking code
2021-10-16 21:50:07 +02:00
Francisco 81174bda64 nr,ue,rrc: release NR logical channels during RRC release 2021-10-15 18:28:09 +01:00
Xavier Arteaga 537f165482 Added comments 2021-10-15 18:19:04 +02:00
Xavier Arteaga 3c40cd2840 Improved NR PHY logging info 2021-10-15 18:19:04 +02:00
Xavier Arteaga addd687d7e Fix NR PUCCH format 1 normalised correlation 2021-10-15 18:19:04 +02:00
Xavier Arteaga e6bd6462b1 Estimate CFO for NR PUCCH formats 0 and 1 2021-10-15 18:19:04 +02:00
Xavier Arteaga 51ff429bc7 Added SS type to PDSCH context info 2021-10-15 18:19:04 +02:00
Xavier Arteaga a5f6aa9f31 Added CSI string in PDSCH and PUSCH decode 2021-10-15 18:19:04 +02:00
Xavier Arteaga 003c6e524c Added short NR CSI information 2021-10-15 18:19:04 +02:00
faluco dacf40f63e Delete move constructor and move assignment operator explictly for mac_pcap_base and s1ap_pcap classes.
Move emergency handlers header file into the support folder.

Refactored signal handling:
- Remove the dependency with the running static variable in the header file.
- Move implementations down to cc files.
- Allow specifying a new signal handler that will be used to stop the applications.
- Move signal handling files to support.
2021-10-15 15:05:37 +02:00
faluco 9075251627 Move the cleanup code from the signal handlers down to the new emergency handlers for the ue, epc and enb. 2021-10-15 15:05:37 +02:00
faluco 2c1e9c0c55 Implement an emergency cleanup handler registration mechanism to allow modules to clean themselves before application gets killed.
Flush PCAP contents just before killing the application.
2021-10-15 15:05:37 +02:00
Fabian Eckermann 44de4996e8 Fix log message. 2021-10-15 11:49:27 +02:00
Francisco f427a25a30 nr,gnb,mac: account for header space larger than 2 when packing PDSCH 2021-10-15 11:03:02 +02:00
Francisco ed2e88524f asn1,rrc_nr: implement to_json in setup_release_c 2021-10-14 21:38:48 +01:00
Francisco 9df6c6b936 sched,nr: ensure the ue_cfg_t passed to the scheduler in NR FDD mode has the correct harq delay 2021-10-14 21:38:12 +01:00
Andre Puschmann 255ddb1329 enb,gnb: add basic support for sgnb release procedure
the procedure is currently started when the EUTRA UE object
is deleted (after RRC release) in order to clean-up the
ENDC resources on the gNB.
2021-10-14 21:30:14 +02:00
Francisco ea324e8cbe nr,sched,test: update sched nr test to better reflect MAC-PHY FAPI 2021-10-14 19:27:52 +01:00
Andre Puschmann 7cbd3d50b7 mac_sch_pdu_nr,bsr: fix length check for BSR
fix nasty bug where the length calucation for the LCID
was taking the bsr_format_nr_t that was having the same name.
2021-10-14 11:16:37 +02:00
faluco 28bbaa7816 Blacklist TSAN issues from libusb and libuhd. 2021-10-14 08:55:06 +02:00
faluco 75af37bd4b Batch of race fixes when running the UE and ENB with UHD.
Main fixes are in the UHD driver, fixing races and potential deadlocks.
2021-10-14 08:55:06 +02:00
Alejandro Leal Conejos 1a64c6adad Enum fixes so clang 12 can build the repo 2021-10-14 08:48:04 +02:00
Carlo Galiotto f53e01cfa3 mac: apply changes by PR reviewers
- reinstate write_lock on ue metrics
- change "rwlock" variable name in mac_nr.h

Signed-off-by: Carlo Galiotto <carlo@srs.io>
2021-10-13 11:12:03 +02:00
Carlo Galiotto dc3e3a89f8 mac: update CQI in MAC with CSI reports from PHY
Signed-off-by: Carlo Galiotto <carlo@srs.io>
2021-10-13 11:12:03 +02:00
Xavier Arteaga a9904c2b64 Fix info format string 2021-10-13 11:02:30 +02:00
Xavier Arteaga a31a40184d Fix NR PRACH encoding 2021-10-13 11:00:03 +02:00
Xavier Arteaga 8bab12fb00 Added NR case to prach_test 2021-10-13 11:00:03 +02:00
Xavier Arteaga 3c4efba418 Added missing parameters to NR PHY configuration factory 2021-10-13 11:00:03 +02:00
Xavier Arteaga 5e1291b0c7 Fix PRACH detection sequence generation for NR 2021-10-13 11:00:03 +02:00
Francisco 11ee4ab9dd nr,gnb,rrc: fix scheduler FDD configuration 2021-10-12 17:49:12 +01:00
Francisco 4e49508d8f nr,gnb,mac: fix RAR encoding by resetting the RAR buffer 2021-10-11 18:30:33 +01:00
Francisco 1b595b6eff nr,gnb: if no nr cell is initiated, do not enable endc in the LTE RRC 2021-10-11 18:21:51 +01:00
Francisco 3721523810 pdcp,lte: fix debug logging in PDCP, to avoid segmentation fault and crash 2021-10-11 11:12:07 +01:00
Francisco 43b12b9ffb rrc,nr: transfer SSB config to both UE and NR scheduler 2021-10-09 16:53:14 +01:00
Carlo Galiotto 43a7d822fa stack,rrc: fix double removal of EPS bearer
The EPS bearer was removed twice, causing an error in the logs.

Fix issue #3380

Signed-off-by: Carlo Galiotto <carlo@srs.io>
2021-10-08 11:19:12 +02:00
Xavier Arteaga 7262287926 Zero power UCI bits is not an error but KO 2021-10-08 10:17:21 +02:00
Xavier Arteaga 4a327ad17d Consider CRC length when calculating real LDPC rate 2021-10-08 10:17:21 +02:00
Xavier Arteaga 5f17c46098 Modify periodic CSI time offset to UL slot 2021-10-08 10:17:21 +02:00
Xavier Arteaga bd186fab2e Fix CMake SSB frequency addition overflow 2021-10-08 09:49:07 +02:00
Xavier Arteaga be870d66ad More relaxed SSB measure assertions and reorder SSB test 2021-10-08 09:49:07 +02:00
Xavier Arteaga 4b77127ed6 Added missing SSB pattern to unit test 2021-10-08 09:49:07 +02:00
Xavier Arteaga 8bb23cc74a Correct CMake sign 2021-10-08 09:49:07 +02:00
Xavier Arteaga 52e00d6376 Fix PBCH encoding and added unit test 2021-10-08 09:49:07 +02:00
Xavier Arteaga 25bd0d6219 Added SSB pattern to/from string functions 2021-10-08 09:49:07 +02:00
Francisco 053877f489 rrc,nr: fix conversion from asn1 to phy cfg 2021-10-08 01:16:07 +01:00
Francisco 47e5e85449 refactor: clean unnecessary includes of the asn1/rrc_nr.h 2021-10-07 23:08:07 +01:00
Xavier Arteaga 1bdb1bb62d Store PUSCH CSI from PUSCH DMRS 2021-10-07 16:31:26 +02:00