aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2011-10-15 20:21:09 +0200
committerSylvain Munaut <tnt@246tNt.com>2011-10-16 12:21:28 +0200
commit8bc840360a5e5d2664671d4d529cf237ea7e2817 (patch)
tree77e52421cfb9306bacfed7887dc039ae6e0459c6 /src
parentd1a06e3c4ddfbc8b9c6dc02a268e04925447a92d (diff)
apps: Remove old demo app bcch_rx
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src')
-rw-r--r--src/bcch_rx.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/bcch_rx.c b/src/bcch_rx.c
deleted file mode 100644
index 3064d58..0000000
--- a/src/bcch_rx.c
+++ /dev/null
@@ -1,33 +0,0 @@
-#include <stdint.h>
-#include <stdio.h>
-
-#include <osmocom/core/gsmtap.h>
-#include <osmocom/core/gsmtap_util.h>
-#include <osmocom/gmr1/gsmtap.h>
-#include <osmocom/gmr1/l1/bcch.h>
-
-
-int main(int argc, char *argv[])
-{
- struct gsmtap_inst *gti;
- sbit_t bits_e[424];
- uint8_t l2[24];
- int i, crc, conv;
-
- for (i=0; i<424; i++) {
- bits_e[i] = argv[1][i] == '1' ? -127 : 127;
- }
-
- gti = gsmtap_source_init("127.0.0.1", GSMTAP_UDP_PORT, 0);
- gsmtap_source_add_sink(gti);
-
- crc = gmr1_bcch_decode(l2, bits_e, &conv);
-
- fprintf(stderr, "conv: %d\n", conv);
- fprintf(stderr, "crc: %d\n", crc);
-
- if (!crc)
- gsmtap_sendmsg(gti, gmr1_gsmtap_makemsg(GSMTAP_GMR1_BCCH, l2, 24));
-
- return 0;
-}