From 1d5267e26429b413d26aa2fd5055f95ae64b7dad Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 15 Jan 2017 21:41:30 +0100 Subject: Introduce CONFIG_BURST_IND for burst indications The default build will not include burst_ind support, as it seems to break the FCCH tasks in an unepected way. --- src/target/firmware/Makefile | 3 +++ src/target/firmware/calypso/dsp.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/target/firmware/Makefile b/src/target/firmware/Makefile index 2ae2f4dc..3b15dc55 100644 --- a/src/target/firmware/Makefile +++ b/src/target/firmware/Makefile @@ -134,3 +134,6 @@ INCLUDES=-Iinclude/ -I../../../include -I../../shared/libosmocore/include -I../. # Uncomment this line if you want to write to flash, including the bootloader. #CFLAGS += -DCONFIG_FLASH_WRITE_LOADER + +# Uncomment this line if you want to use burst_ind for sniffing +#CFLAGS += -DCONFIG_BURST_IND diff --git a/src/target/firmware/calypso/dsp.c b/src/target/firmware/calypso/dsp.c index 65454c1d..5551e9fb 100644 --- a/src/target/firmware/calypso/dsp.c +++ b/src/target/firmware/calypso/dsp.c @@ -205,8 +205,10 @@ static void dsp_set_params(int16_t *param_tab, int param_size) /* Start DSP up to bootloader */ dsp_pre_boot(dsp_bootcode); +#ifdef CONFIG_BURST_IND dputs("Installing DSP sniff patch\n"); dsp_bl_upload_sections(dsp_sniffcode); +#endif dputs("Setting some dsp_api.ndb values\n"); dsp_api.ndb->d_background_enable = 0; -- cgit v1.2.3