sigProcLib: detectAnyBurst(): make TSC used to detect burst available to caller
This value will be sent in TRXDv1 protocol.
Related: OS#4006
Change-Id: I603b7b52f957cf897b036dbaeb22c01a55de08c3
diff --git a/Transceiver52M/sigProcLib.cpp b/Transceiver52M/sigProcLib.cpp
index 52a6701..c22009a 100644
--- a/Transceiver52M/sigProcLib.cpp
+++ b/Transceiver52M/sigProcLib.cpp
@@ -1595,8 +1595,10 @@
for (i = 0; i < num_seq; i++) {
rc = detectGeneralBurst(burst, threshold, sps, target, head, tail,
gRACHSequences[i], ebp);
- if (rc > 0)
+ if (rc > 0) {
+ ebp->tsc = i;
break;
+ }
}
return rc;
@@ -1624,6 +1626,7 @@
tail = 6 + max_toa;
sync = gMidambles[tsc];
+ ebp->tsc = tsc;
rc = detectGeneralBurst(burst, threshold, sps, target, head, tail, sync, ebp);
return rc;
}
@@ -1642,6 +1645,7 @@
tail = 6 + max_toa;
sync = gEdgeMidambles[tsc];
+ ebp->tsc = tsc;
rc = detectGeneralBurst(burst, threshold, sps,
target, head, tail, sync, ebp);
return rc;