diff options
author | Harald Welte <laforge@gnumonks.org> | 2013-02-04 22:15:02 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2013-02-04 22:16:23 +0100 |
commit | 6a2d89f48d0727238eb2c14c7bfb4f0517d3be81 (patch) | |
tree | a6a957ade3e63f54cded7087f04fb8fed4763051 | |
parent | 3ff2fc437884cc12633f15e51f9d4ce1053c857b (diff) |
Make sure SACCH fill frame is correctly aligned for L1 header
When we send a fill frame on SACCH, we need to have two bytes for the L1
header at the beginning (inserted by the DSP).
Thanks for Andreas Eversberg for pointing it out.
-rw-r--r-- | src/osmo-bts-sysmo/l1_if.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bts-sysmo/l1_if.c b/src/osmo-bts-sysmo/l1_if.c index 5489f1ea..198ced48 100644 --- a/src/osmo-bts-sysmo/l1_if.c +++ b/src/osmo-bts-sysmo/l1_if.c @@ -472,7 +472,7 @@ static int handle_ph_readytosend_ind(struct femtol1_hdl *fl1, /* The +2 is empty space where the DSP inserts the L1 hdr */ memcpy(msu_param->u8Buffer+2, si, GSM_MACBLOCK_LEN-2); } else - memcpy(msu_param->u8Buffer, fill_frame, GSM_MACBLOCK_LEN); + memcpy(msu_param->u8Buffer+2, fill_frame, GSM_MACBLOCK_LEN-2); } else { /* The +2 is empty space where the DSP inserts the L1 hdr */ memcpy(msu_param->u8Buffer+2, pp.oph.msg->data, GSM_MACBLOCK_LEN-2); |