dexter has uploaded this change for review.

View Change

trau_pcu_ericsson: do not set unused D bits to 1

The er_gprs_trau_frame_encode already pre set all non T0 bits in the
TRAU frame to 1, there is no need to set unused bits explicitly.

Related: OS#6015
Change-Id: I003632a08cc80bc195b306bef5f907351b6fe94e
---
M src/trau/trau_pcu_ericsson.c
1 file changed, 13 insertions(+), 3 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/43/32543/1
diff --git a/src/trau/trau_pcu_ericsson.c b/src/trau/trau_pcu_ericsson.c
index 8f2e2a2..5a12cdd 100644
--- a/src/trau/trau_pcu_ericsson.c
+++ b/src/trau/trau_pcu_ericsson.c
@@ -1067,9 +1067,6 @@
trau_bits[73] = 0;
trau_bits[74] = calc_parity(trau_bits + 65, 8);

- /* Set unused D-Bits to 1 */
- memset(trau_bits + 76, 1, 1280 - 76 - 16);
-
/* D-Bits */
rc = put_trau_uint32(trau_bits, 1280, T_bits_64, sizeof(T_bits_64), ind->pseq, 170, 22);
if (rc < 0)

To view, visit change 32543. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I003632a08cc80bc195b306bef5f907351b6fe94e
Gerrit-Change-Number: 32543
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier@sysmocom.de>
Gerrit-MessageType: newchange