Commit Graph

236 Commits

Author SHA1 Message Date
yagoda ec918eab76 adding support for embms in common functions and interfaces 2018-05-15 16:50:57 +02:00
Andre Puschmann a30ad8952c fix indent and simplify auth request packing 2018-05-15 12:40:29 +02:00
Andre Puschmann d0457211ad adding support for CHAP auth 2018-05-15 12:40:29 +02:00
Andre Puschmann 51e093e611 Merge branch 'next' into rlc_updates 2018-05-11 15:55:03 +02:00
Ismael Gomez 040c33497d merged PR#189 and added check for non-empty queue in get size tail 2018-05-10 21:32:32 -05:00
Ismael Gomez 4515dd94ea Use blocking queue for RRC measurement fixes #193 2018-05-10 13:41:21 -05:00
Ismael Gomez 04609cd07d Check msg_queue size_tail_bytes existence of buffer 2018-05-10 13:41:17 -05:00
Ismael Gomez ba40a4de84 Add checks for when RLC TM queue is corrupted and reset it 2018-05-10 13:39:34 -05:00
Ismael Gomez f3f4528a2f Testing commit to force a Reestablishment 1s after CONNECT 2018-05-10 13:28:55 -05:00
Andre Puschmann 85028d2aed use pretty function name in buffer_pool debug
- this avoids ambiguity between names, for example
  in reassemble_rx_sdus() for rlc_am an rlc_um
2018-05-10 16:41:37 +02:00
Andre Puschmann 718a15608c dealloc SCH pdu in MAC instead of pdu_queue
- this is basically e9fcb10c9e
  but with the counterpart in the eNB's MAC
2018-05-10 16:36:55 +02:00
Andre Puschmann 595ed70cae Revert "Deallocate SCH pdu on demux instead of pdu_queue"
This reverts commit e9fcb10c9e.
2018-05-08 21:41:33 +02:00
Andre Puschmann 05696a5ca7 Merge branch 'next' into rlc_updates 2018-05-04 14:13:50 +02:00
Ismael Gomez e9fcb10c9e Deallocate SCH pdu on demux instead of pdu_queue 2018-05-02 12:15:23 +02:00
Ismael Gomez aa1724b8f3 Add missing-field-initializers flag and properly initialize structs 2018-04-29 17:55:19 +02:00
Joseph Giovatto ab1d9e98f3 Format and typelimit warnings (#169)
* merge with origin 4fc7dbc3 8daa8346

* fixed whitespace diff

* added .gitignore

* added format warning flags to C_FLAGS
added typelimit check to C_FLAGS and CXX_CLAGS

* Revert "added format warning flags to C_FLAGS"

Apply to branch format_and_typelimt branch

This reverts commit bf7467e82ec7b056ad06dc50cc964fcce18be99b.

* check for format warnings to top level C_FLAGS
added typelimit warnings to top level C_FLAGS and CXX_FLAGS
beset effort attempt to remedy warnings
removed unused param names in hex_log baseclass methods due to multitude of unused-warnings
2018-04-29 17:26:35 +02:00
Andre Puschmann a2f6166365 Merge branch 'next' into rlc_updates 2018-04-27 15:03:17 +02:00
Andre Puschmann d8bfd2713c initialize byte_buffer content in ctors 2018-04-26 13:20:34 +02:00
Ismael Gomez b237d6063e Align header buffer to 8-byte boundary as expected by S1AP pack/unpack functions 2018-04-26 11:46:22 +02:00
Ismael Gomez ab78eb6d58 Process BCCH from pdu_process thread. Process PCCH from new thread in RRC 2018-04-25 13:44:58 +02:00
Ismael Gomez edd9cbf4dc Merge branch 'next' into sync_states 2018-04-10 09:35:21 +02:00
Andre Puschmann b298d3d3f9 add missing const keyword to log_filter's members 2018-04-04 11:19:52 +02:00
Andre Puschmann e76fe75c22 add missing const keyword to log_filter's members 2018-04-03 12:18:07 +02:00
Andre Puschmann 61a24cbd4a Merge branch 'next' into rlc_updates 2018-04-03 11:28:12 +02:00
Andre Puschmann dd76f85313 Merge branch 'master' into next 2018-04-03 11:07:17 +02:00
Joseph Giovatto 802f8b716f set msg and hex buf to const * 2018-04-03 10:50:48 +02:00
Joseph Giovatto 4e05266ea8 added printf format check for hex logs 2018-04-03 10:50:32 +02:00
Andre Puschmann 2dcd6695bc remove obsolete config.h 2018-04-03 10:49:49 +02:00
David Rupprecht 9d71bec7b6 Unified include guards 2018-03-31 19:04:04 +02:00
Andre Puschmann 4ea5fe6509 Merge branch 'next' into rlc_updates 2018-03-29 20:59:08 +02:00
Joseph Giovatto 49da57c8a1 Changed log methods to take string literal vs string object
to allow for format checking and save on object copy.
Fixed log format specifier warnings.
2018-03-29 16:59:19 +02:00
Andre Puschmann fffda82f1e increase size of bytebuffer to compensate header, add helper to get remaining size 2018-03-28 16:50:11 +02:00
Andre Puschmann e7c74fa0f7 add simple RLC PCAP writer 2018-03-28 10:45:59 +02:00
Andre Puschmann 7993385742 increase size of bytebuffer to compensate header, add helper to get remaining size 2018-03-28 10:45:59 +02:00
Ismael Gomez b3be54b274 Attach and paging ok. Reselection on IDLE not working 2018-03-21 10:46:24 +01:00
Ismael Gomez 28e12dbf7d Merge branch 'next' into sync_states 2018-03-20 14:36:31 +01:00
Andre Puschmann c5b423ffee fix subheader parsing 2018-03-19 14:38:27 +01:00
Ismael Gomez f88f465c97 Refactored NAS/RRC/PHY cell_search/selection procedures 2018-03-19 14:14:51 +01:00
Ismael Gomez 682ed433b2 Possible fix to #167 2018-03-18 13:24:09 +01:00
Ismael Gomez 64cc34adb0 previous commit not working 2018-03-15 11:31:09 +01:00
Ismael Gomez d873eaca5c Assign same timer id after release (was not really a bug) 2018-03-15 11:14:22 +01:00
Andre Puschmann 5335f046ff dealloc mutex and cond in msg_queue 2018-03-08 22:04:58 +01:00
Andre Puschmann 43811e1886 deallocate used buffers in buffer_pool dtor 2018-03-08 22:04:58 +01:00
Andre Puschmann 9553784e2f change phy_log in UE to log_filter 2018-03-08 22:04:58 +01:00
Andre Puschmann 853f774607 add threaded timeout test 2018-03-06 14:04:17 +01:00
Paul Sutton 57505725e0
Merge pull request #157 from softwareradiosystems/issue_154fix
Issue 154fix
2018-03-06 12:51:02 +01:00
Ismael Gomez dc65061dbb Print buffer pool status every 10s (Debugging commit) 2018-03-06 12:37:45 +01:00
Ismael Gomez 206e41a244 Disable buffer pool timestamps 2018-03-06 12:37:08 +01:00
Andre Puschmann 067d76a5c8 enable buffer pool log 2018-03-05 11:22:02 +01:00
Andre Puschmann a85288566b print summary about allocated buffers when buffer pool is full 2018-03-04 21:53:06 +01:00
Andre Puschmann 8b9bc15ffc Merge branch 'next' into rlc_fixes 2018-02-20 11:46:53 +01:00
Ismael Gomez f8303acba7 Fixed memory leak in logger_stdout 2018-02-17 21:37:48 +01:00
Andre Puschmann c5ffdfe8c7 set byte_buffer ptr to null after deallocating from pool 2018-02-16 21:31:11 +01:00
Andre Puschmann b2ce6ec9a9
Merge pull request #139 from mrlnc/apn_cfg
Add APN to config and PDN connectivity request
2018-02-16 09:43:20 +01:00
Ismael Gomez 86818ad65f Fix compilations warnings and remove printf debugs 2018-02-09 17:36:44 +01:00
Andre Puschmann ddfd114865 rlc_am: disable debug prints 2018-02-09 11:36:55 +01:00
Paul Sutton d1d6cea737 Adding debug helpers 2018-02-07 23:13:59 +00:00
Andre Puschmann 705acec6b9 fix uninitialized variables in logger 2018-02-07 14:45:44 +01:00
Andre Puschmann 6142b66632 only print print buffer pool when it's empty 2018-02-05 15:10:05 +01:00
Andre Puschmann 32bc0e0ac2 disable buffer pool logging 2018-02-01 13:27:54 +01:00
Andre Puschmann dbe0fa6f4e calculate actual period for metrics logging 2018-01-31 13:28:45 +01:00
Ismael Gomez 9b6e18d84f Lower srsENB priorities below UHD threads 2018-01-30 13:27:03 +01:00
Andre Puschmann bf45ba32bf inform all listeners about stop in metrics hub 2018-01-26 14:17:12 +01:00
Ismael Gomez 754566b28f Changed priorities to below UHD in srsUE 2018-01-25 15:02:11 +01:00
Merlin Chlosta fcedeb0278 Add APN to config and PDN connectivity request 2018-01-22 19:12:02 +01:00
Xavier Arteaga 0ba58d8d24 Fixed PUSCH retransmissions for non-RRC configured rnti 2018-01-19 16:31:32 +01:00
Pedro Alvarez 4b62c9cb06 Merge branch 'next' into epc. 2018-01-18 13:40:46 +00:00
Andre Puschmann 892ff2c36a add configuration for GW 2018-01-17 16:45:07 +01:00
Ismael Gomez 3be48c40c8 Added rotating log to srsUE and srsENB 2018-01-16 12:44:22 +01:00
Andre Puschmann 40a3290e36 initialize metrics object 2018-01-15 17:45:54 +01:00
Pedro Alvarez be7cde7639 Merge branch 'next' into epc, to include RLC AM fix. 2018-01-12 15:44:53 +00:00
Andre Puschmann 74138071db move radio bearer definition to RRC 2018-01-12 14:57:38 +01:00
Andre Puschmann 97448c0a1f fix uninitlized variable in logger and remove delegating ctor 2018-01-10 12:35:26 +01:00
Pedro Alvarez 042552491b Merging next into epc branch. 2018-01-08 14:45:13 +00:00
Ismael Gomez c6ab02f3f4 Minor changes to logging 2017-12-21 11:26:05 +01:00
Ismael Gomez 968a503d93 Fixed segfault in metrics hub 2017-12-20 14:12:20 +01:00
Ismael Gomez dfda8edc04 Minor changes to log 2017-12-20 10:01:57 +01:00
Ismael Gomez 37ee5505e9 Removed unused log_line() functions. Added DCI info string 2017-12-19 21:25:55 +01:00
Ismael Gomez 845fc87945 Added option to log_filter to customize time source 2017-12-17 11:01:50 +01:00
Ismael Gomez 9a255b477a Merge branch 'crypto' into mobility_crypto 2017-12-02 12:23:05 +01:00
Paul Sutton 1a323770c9 Added support for AS ciphering 2017-12-01 19:19:38 +00:00
Ismael Gomez c0e79477b5 Fixed cell reselection when radio-link failure 2017-12-01 14:05:54 +01:00
Paul Sutton 84724d2ab1 NAS-plane encryption working (thanks to David Rupprecht) 2017-11-30 17:09:12 +00:00
Ismael Gomez 3a0ab02264 S1/X2 handover tested and working 2017-11-27 13:57:05 +01:00
Ismael Gomez d428760b20 Merge branch 'next' into mobility 2017-11-24 12:02:41 +01:00
Ismael Gomez 408545dab8 X2 (constant NCC) working 2017-11-23 19:46:34 +01:00
Ismael Gomez 12d8b373c7 srsUE takes and reports intra-frequency measurements correctly 2017-11-20 10:02:39 +01:00
Ismael Gomez 49a621e193 removed last tti in adaptive retx. moved to phch_common 2017-11-14 13:44:47 +01:00
Ismael Gomez 9389cc1957 Removed deallocating unkown buffer error 2017-11-10 17:59:43 +01:00
Ismael Gomez 42d08046d3 Fixed bug with UL adaptive retx 2017-11-10 17:59:35 +01:00
Ismael Gomez cb6adba46a Merge branch 'master' into next 2017-10-28 22:28:33 -07:00
Ismael Gomez 9c04bf2848 Removed metrics period from listener 2017-10-28 16:13:17 -07:00
Ismael Gomez 770490a115
Merge pull request #109 from mrlnc/pcap_write_sfn
Write SFN to MAC-LTE PCAP file
2017-10-28 14:18:01 -07:00
Merlin Chlosta 50b196a04e Write SFN to MAC-LTE PCAP file 2017-10-27 16:18:55 +02:00
Ismael Gomez 399f1cdbd1 Force retx for mcs>29 and new tb if rv=0 && mcs<29 2017-10-19 16:13:01 -04:00
Ismael Gomez 240eba2af5 Fix for async dl scheduling 2017-10-18 16:49:36 -04:00
Ismael Gomez ed7856ea57 Merge branch 'next' into next_novolk 2017-10-18 11:21:31 -04:00
Andre Puschmann aa5a3bfdae fix bug reported by coverity 2017-10-18 15:42:03 +02:00
Andre Puschmann 29b9b6001b fix metric hub when called with periodicity other than 1s 2017-10-18 15:00:07 +02:00
Pedro Alvarez adf1764496 added plmn to MCCMNC in the srslte lib 2017-10-16 13:03:33 +01:00
Ismael Gomez d3e3ecacb6 Merge branch 'next' into next_novolk 2017-10-13 10:26:33 +02:00
Ismael Gomez d38475d6d0 Fixed % log in buffer pool capacity warning 2017-10-13 09:35:53 +02:00
Ismael Gomez aeabcb4551 Merge branch 'next' into next_novolk 2017-10-12 11:53:14 +02:00
Ismael Gomez db5d747c66 Fix coverty issues 2017-10-12 10:31:08 +02:00
Ismael Gomez a180b5ebac Msg3 delay is added to harq delay 2017-10-10 12:06:24 +02:00
Ismael Gomez 1dff82065b Merge branch 'next' into next_novolk 2017-10-07 23:25:07 +02:00
Ismael Gomez 2159ad3280 Added support for roaming PLMN 2017-10-07 21:31:13 +02:00
Ismael Gomez ca0cf017d6 Now working with variable HARQ scheduling 2017-10-05 16:52:02 +02:00
Ismael Gomez c8dc3d1ad7 Merge branch 'next_with_variable_harq' into next_novolk 2017-10-04 18:30:10 +02:00
Ismael Gomez d6bdabfdc0 Changed all harq delays to variables 2017-09-29 20:38:12 +02:00
Andre Puschmann 5d317454e3 initialize metrics buffer properly 2017-09-26 12:06:07 +02:00
Andre Puschmann 4eb52f58fc wait until periodic thread finishes during stop 2017-09-23 19:40:47 +02:00
Andre Puschmann 0636aa289c use metrics_hub in UE 2017-09-22 13:01:06 +02:00
Ismael Gomez 6556941e6d simplified MAC timers. Unified mac and upper timers in same background task 2017-09-19 17:51:35 +02:00
Ismael Gomez 5359c42b46 RLC UM release timer at stop() 2017-09-19 15:15:25 +02:00
Ismael Gomez 3c845b3653 Disabled buffer pool debugging 2017-09-19 12:45:24 +02:00
Ismael Gomez a51b6b09dd Merged with next. Attach successful 2017-09-01 19:32:57 +02:00
Ismael Gomez 51fc9bffb1 added release function for mac timers 2017-08-29 12:01:30 +02:00
Andre Puschmann c474b24d32 add basic NAS configuration class 2017-08-07 13:17:11 +02:00
Ismael Gomez 0737a858f7 Merge pull request #11 from softwareradiosystems/ue_refactor_common_v2
UE refactor common v2
2017-07-10 15:54:04 +02:00
Ismael Gomez 14916fdc9a missing return statement 2017-07-07 18:04:59 +02:00
Andre Puschmann 8030778809 fix PDCP initialization in eNB 2017-07-06 16:42:16 +02:00
Andre Puschmann 8dbabb2834 rework bearer/LCID handling
This is a larger patch that reworks the LCID handling throughout the
code.

- It first moves the RB/LCID mapping out of common.h into the RRC object
  because different RATs may have different mappings.
- It adds a interface to RRC that other objects like RLC/PDCP/etc. may
  use to get the bearer name of a specific LCID.
- The patch also introduces a PDCP config class.
2017-07-04 17:48:39 +02:00
Paul Sutton 89cc50c7c4 Deallocating buffers for ACKed RLC tx PDUs 2017-06-25 14:35:41 +01:00
Ismael Gomez fa9eaee498 new NAS/RRC structure. Attaching and ping working 2017-06-23 19:15:30 +02:00
Ismael Gomez 6037a2f2bd changed logger classes 2017-06-23 16:29:46 +02:00
Andre Puschmann 2b8b36c371 fix debug_name handling in buffer_pool
- possible bug discovered by coverity
2017-06-08 12:05:00 +02:00
Ismael Gomez 5e030dc805 renamed SRSUE_ constants to SRSLTE_ 2017-06-06 20:34:09 +02:00
Ismael Gomez d05b03e43a added buffer pool function call name debug feature 2017-06-06 20:04:19 +02:00
Andre Puschmann 04ec09bd71 add license text to various files 2017-06-02 13:01:47 +02:00
Ismael Gomez 8a367bf825 changed srsue namespace to srslte for all common objects 2017-06-01 12:25:42 +02:00
Ismael Gomez e75daee148 renamed include paths for common objects 2017-05-31 23:39:17 +02:00
Andre Puschmann c51c4d2a38 fix compile warnings 2017-05-31 13:45:01 +02:00
Andre Puschmann 5d66e9701f fixing CMake scripts and include paths 2017-05-30 15:10:19 +02:00
Andre Puschmann 5898af3d0b add srslte_asn1 lib
- remove extra subfolder containing liblte
- add asn1 lib containing rrc msg packing and unpacking
- add security related bits to common
2017-05-30 15:06:24 +02:00
Andre Puschmann d079d25b2c rename srslte folder and src subfolder 2017-05-30 13:05:04 +02:00