aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-11-16 21:46:56 +0100
committerHarald Welte <laforge@gnumonks.org>2016-11-17 21:09:55 +0100
commit862ed97bfe2bce543f8f2b48f00c5e96e8f5507e (patch)
tree20f8faba1530ed646b8612ab336b8ba3ee4889cb
parent2fdb52e36b64ff69fefdae4f08e1581631a9013b (diff)
P-GSL: Fix broken encoding of DLDATA-REQ
The ACK/Data Indicator was never actually written to the msgb, causing off-by-one of all following fields and probably complete confusion to the receiver. Change-Id: I3781752c67e2c6f41b0b2894f6ddf9659b9557e5
-rw-r--r--src/osmo-bts-rbs/pgsl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osmo-bts-rbs/pgsl.c b/src/osmo-bts-rbs/pgsl.c
index 519f3c99..852ef00c 100644
--- a/src/osmo-bts-rbs/pgsl.c
+++ b/src/osmo-bts-rbs/pgsl.c
@@ -234,6 +234,7 @@ static int er_pgsl_encode_dldata_ind(struct msgb *msg,
ack_data_ind |= 0x02;
if (dldi->data_ind)
ack_data_ind |= 0x01;
+ msgb_put_u8(msg, ack_data_ind);
if (!dldi->data_ind)
return 0;