diff options
Diffstat (limited to 'src/host/layer23/src')
-rw-r--r-- | src/host/layer23/src/misc/Makefile.am | 2 | ||||
-rw-r--r-- | src/host/layer23/src/misc/app_bcch_scan.c | 3 | ||||
-rw-r--r-- | src/host/layer23/src/misc/bcch_scan.h | 6 |
3 files changed, 10 insertions, 1 deletions
diff --git a/src/host/layer23/src/misc/Makefile.am b/src/host/layer23/src/misc/Makefile.am index 9c2bc4d4..f3d7e953 100644 --- a/src/host/layer23/src/misc/Makefile.am +++ b/src/host/layer23/src/misc/Makefile.am @@ -4,6 +4,8 @@ LDADD = ../common/liblayer23.a $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) $(LIBOSMOC bin_PROGRAMS = bcch_scan ccch_scan echo_test cell_log cbch_sniff +noinst_HEADERS = bcch_scan.h + bcch_scan_SOURCES = ../common/main.c app_bcch_scan.c bcch_scan.c ccch_scan_SOURCES = ../common/main.c app_ccch_scan.c rslms.c echo_test_SOURCES = ../common/main.c app_echo_test.c diff --git a/src/host/layer23/src/misc/app_bcch_scan.c b/src/host/layer23/src/misc/app_bcch_scan.c index 7b21ed79..22e6f1b9 100644 --- a/src/host/layer23/src/misc/app_bcch_scan.c +++ b/src/host/layer23/src/misc/app_bcch_scan.c @@ -33,6 +33,7 @@ #include <osmocom/core/signal.h> #include <l1ctl_proto.h> +#include "bcch_scan.h" static int signal_cb(unsigned int subsys, unsigned int signal, void *handler_data, void *signal_data) @@ -53,7 +54,7 @@ static int signal_cb(unsigned int subsys, unsigned int signal, int l23_app_init(struct osmocom_ms *ms) { /* don't do layer3_init() as we don't want an actualy L3 */ - fps_init(ms); + fps_init(); l1ctl_tx_reset_req(ms, L1CTL_RES_T_FULL); return osmo_signal_register_handler(SS_L1CTL, &signal_cb, NULL); } diff --git a/src/host/layer23/src/misc/bcch_scan.h b/src/host/layer23/src/misc/bcch_scan.h new file mode 100644 index 00000000..ab861b42 --- /dev/null +++ b/src/host/layer23/src/misc/bcch_scan.h @@ -0,0 +1,6 @@ +#pragma once + +struct osmocom_ms; + +int fps_start(struct osmocom_ms *ms); +int fps_init(void); |