summaryrefslogtreecommitdiff
path: root/gsm-tvoid/src/lib/gsm_burst.cc
diff options
context:
space:
mode:
authorleo <leo@brix.(none)>2008-02-21 02:55:05 +0000
committerleo <leo@brix.(none)>2008-02-21 02:55:05 +0000
commit21aadd29384bfa45639940fc904592b8a7a5a073 (patch)
treef7f79e0d6db99d4937cd11ade0832487fc2041b9 /gsm-tvoid/src/lib/gsm_burst.cc
parent5634262d43aaba54a56078334e21688a3d5345b4 (diff)
tvoid's suggested cleanup.
Diffstat (limited to 'gsm-tvoid/src/lib/gsm_burst.cc')
-rwxr-xr-xgsm-tvoid/src/lib/gsm_burst.cc15
1 files changed, 4 insertions, 11 deletions
diff --git a/gsm-tvoid/src/lib/gsm_burst.cc b/gsm-tvoid/src/lib/gsm_burst.cc
index 67d0886..b862d69 100755
--- a/gsm-tvoid/src/lib/gsm_burst.cc
+++ b/gsm-tvoid/src/lib/gsm_burst.cc
@@ -174,6 +174,7 @@ void gsm_burst::print_bits(const float *data,int length)
}
+#if 0
void gsm_burst::soft2hardbit(char *dst, const float *data, int len)
{
for (int i=0; i < len; i++)
@@ -184,6 +185,7 @@ void gsm_burst::soft2hardbit(char *dst, const float *data, int len)
dst[i] = 1;
}
}
+#endif
void gsm_burst::print_burst(void)
{
@@ -227,17 +229,8 @@ void gsm_burst::print_burst(void)
* Pass information to GSM stack. GSM stack will try to extract
* information (fn, layer 2 messages, ...)
*/
-
- char buf[156];
- /* In hardbits include the 3 trial bits */
- /* FIXME: access burst has 8 trail bits? what is d_burst_start
- * set to? make sure we start at the right position here.
- */
- soft2hardbit(buf, d_burst_buffer + d_burst_start - 3, 156);
- /* GS_process will differentially decode the data and then
- * extract SCH infos (and later bcch infos).
- */
- GS_process(&d_gs_ctx, d_ts, d_burst_type, buf);
+ diff_decode_burst();
+ GS_process(&d_gs_ctx, d_ts, d_burst_type, d_decoded_burst);
}
if (print) {
personal git repositories of Harald Welte. Your mileage may vary