osmo-bts-trx/scheduler: get rid of _sched_fcch_burst
According to 3GPP 45.002, section 5.2.4, a frequency correction burst is basically a sequence of zeros. Since br->burst is already zero-initialized, there is no need to maintain and memcpy() another sequence of zeros into it. Just set the length. Change-Id: Ic4f6d550010da5caf4bc471ff1e184c9fab30c6d
This commit is contained in:
parent
2931fc337f
commit
f3f0638066
|
@ -37,7 +37,6 @@ extern const struct trx_chan_desc trx_chan_desc[_TRX_CHAN_MAX];
|
|||
|
||||
extern const ubit_t _sched_tsc[8][26];
|
||||
extern const ubit_t _sched_egprs_tsc[8][78];
|
||||
extern const ubit_t _sched_fcch_burst[148];
|
||||
extern const ubit_t _sched_sch_train[64];
|
||||
|
||||
struct msgb *_sched_dequeue_prim(struct l1sched_trx *l1t, int8_t tn, uint32_t fn,
|
||||
|
|
|
@ -62,15 +62,6 @@ static const ubit_t dummy_burst[GSM_BURST_LEN] = {
|
|||
0,0,0,
|
||||
};
|
||||
|
||||
/*! \brief FCCH Burst (TS 05.02 Chapter 5.2.4) */
|
||||
const ubit_t _sched_fcch_burst[GSM_BURST_LEN] = {
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
};
|
||||
|
||||
/*! \brief Training Sequences (TS 05.02 Chapter 5.2.3) */
|
||||
const ubit_t _sched_tsc[8][26] = {
|
||||
{ 0,0,1,0,0,1,0,1,1,1,0,0,0,0,1,0,0,0,1,0,0,1,0,1,1,1, },
|
||||
|
|
|
@ -40,7 +40,8 @@ int tx_fcch_fn(struct l1sched_trx *l1t, enum trx_chan_type chan,
|
|||
{
|
||||
LOGL1S(DL1P, LOGL_DEBUG, l1t, br->tn, chan, br->fn, "Transmitting FCCH\n");
|
||||
|
||||
memcpy(br->burst, _sched_fcch_burst, GSM_BURST_LEN);
|
||||
/* A frequency correction burst is basically a sequence of zeros.
|
||||
* Since br->burst is already zero-initialized, just set the length. */
|
||||
br->burst_len = GSM_BURST_LEN;
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue