Transceiver52M: Fix calculation of TS correlation for 2 sps and higher
Transceiver52M: Fix calculation of TS correlation for 2 sps and higher

The correlation starting point for normal burst training sequence
calculation should be a scaled value of the same symbol regardless
of the samples-per-symbol used. Use of 2 samples-per-symbols double
the index values, but yields the following outputs, which results
in a late time-of-arrival value at the output of the correlation.

This patch modifies the parameter calculation accordingly.

1 sps parameters

maxTOA = 3
spanTOA = 5;
startIx = 61;
endIx = 87;
windowLen = 26;
corrLen = 7;

2 sps parameters (errant case)

maxTOA = 6;
spanTOA = 10;
startIx = 112;
endIx = 184;
windowLen = 72;
corrLen =13;

2 sps parameters (corrected)

maxTOA = 6;
spanTOA = 10;
startIx = 122;
endIx = 174;
windowLen = 52;
corrLen =13;

Signed-off-by: Thomas Tsou <tom@tsou.cc>

git-svn-id: 504cad4147f1e500be0a169b9f46375eaf875953@5183 19bc5d8c-e614-43d4-8b26-e1612bc8e597

ttsou/osmo-trx,kkroo/osmo-trx,osmocom/osmo-trx,kkroo/osmo-trx,telenoobie/osmo-trx,osmocom/osmo-trx,osmocom/osmo-trx,telenoobie/osmo-trx,pothosware/osmo-trx,ttsou/osmo-trx,telenoobie/osmo-trx,pothosware/osmo-trx,osmocom/osmo-trx,ttsou/osmo-trx,ttsou/osmo-trx,telenoobie/osmo-trx,pothosware/osmo-trx,pothosware/osmo-trx,kkroo/osmo-trx,kkroo/osmo-trx