From ed35015ff59ef3e8b9315adf2423f879fb35fbb8 Mon Sep 17 00:00:00 2001 From: Paul Sutton Date: Tue, 27 Sep 2016 09:12:49 +0000 Subject: [PATCH 1/4] Adding -fPIC for all platforms --- CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c77a24fc6..124186060 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,9 @@ endif(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR}) ######################################################################## CMAKE_MINIMUM_REQUIRED (VERSION 2.6) PROJECT (SRSLTE) +MESSAGE( STATUS "CMAKE_SYSTEM: " ${CMAKE_SYSTEM} ) +MESSAGE( STATUS "CMAKE_SYSTEM_PROCESSOR: " ${CMAKE_SYSTEM_PROCESSOR} ) +MESSAGE( STATUS "CMAKE_CXX_COMPILER: " ${CMAKE_CXX_COMPILER} ) list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/modules") include(SRSLTEVersion) #sets version information @@ -149,9 +152,7 @@ add_custom_target(uninstall # Macro to add -fPIC property to static libs ######################################################################## macro(SRSLTE_SET_PIC) - if( CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" ) - set_target_properties(${ARGV} PROPERTIES COMPILE_FLAGS -fPIC) - endif( CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" ) + set_target_properties(${ARGV} PROPERTIES COMPILE_FLAGS -fPIC) endmacro(SRSLTE_SET_PIC) ######################################################################## From fd4eb44bfcf4dfcd4b0904cc7eeb56bc19bf8bfb Mon Sep 17 00:00:00 2001 From: Agmagor Date: Wed, 16 Nov 2016 16:46:22 +0100 Subject: [PATCH 2/4] memleak: free cellsearch buffer after scan --- srslte/examples/cell_search.c | 1 + 1 file changed, 1 insertion(+) diff --git a/srslte/examples/cell_search.c b/srslte/examples/cell_search.c index fb4933ebd..02c3d8ada 100644 --- a/srslte/examples/cell_search.c +++ b/srslte/examples/cell_search.c @@ -218,6 +218,7 @@ int main(int argc, char **argv) { srslte_rf_start_rx_stream(&rf); n = srslte_ue_cellsearch_scan(&cs, found_cells, NULL); + srslte_ue_cellsearch_free(&cs); if (n < 0) { fprintf(stderr, "Error searching cell\n"); exit(-1); From 388eb35e6703153c56d96cdbf52c103e8e1dd701 Mon Sep 17 00:00:00 2001 From: Agmagor Date: Thu, 17 Nov 2016 17:14:08 +0100 Subject: [PATCH 3/4] memleak: free FFT plan upon pss_synch_free --- srslte/lib/sync/pss.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/srslte/lib/sync/pss.c b/srslte/lib/sync/pss.c index 46c02414e..647baa838 100644 --- a/srslte/lib/sync/pss.c +++ b/srslte/lib/sync/pss.c @@ -202,6 +202,8 @@ void srslte_pss_synch_free(srslte_pss_synch_t *q) { if (q->conv_output_avg) { free(q->conv_output_avg); } + + srslte_dft_plan_free(&q->dftp_input); bzero(q, sizeof(srslte_pss_synch_t)); } From 8b4fa3f8d9798fc5c6a11f40f20470e9be9eb069 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Thu, 17 Nov 2016 20:09:22 +0100 Subject: [PATCH 4/4] removed UHD recv/send_frame_size arguments --- srslte/lib/rf/rf_uhd_imp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srslte/lib/rf/rf_uhd_imp.c b/srslte/lib/rf/rf_uhd_imp.c index d9683424d..34b4f6000 100644 --- a/srslte/lib/rf/rf_uhd_imp.c +++ b/srslte/lib/rf/rf_uhd_imp.c @@ -264,7 +264,7 @@ int rf_uhd_open(char *args, void **h) if (args[0]=='\0') { if (find_string(devices_str, "type=b200") && !strstr(args, "recv_frame_size")) { // If B200 is available, use it - args = "type=b200,recv_frame_size=9232,send_frame_size=9232"; + args = "type=b200"; handler->devname = DEVNAME_B200; } else if (find_string(devices_str, "type=x300")) { // Else if X300 is available, set master clock rate now (can't be changed later)