summaryrefslogtreecommitdiffstats
path: root/openbsc/src
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2010-06-09 21:13:13 +0200
committerHarald Welte <laforge@gnumonks.org>2010-06-10 15:15:42 +0200
commitb00d1add7584b017470e60489f44a0c0e553e93f (patch)
treec34c4b752622dbf64e0a0681c17fd691f36d3236 /openbsc/src
parent781b3e6905ca1ab6fde6db4b0908b82001f06caf (diff)
[gprs] bssgp: Fix LLC PDU length encoding in BSSGP.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'openbsc/src')
-rw-r--r--openbsc/src/gprs/gprs_bssgp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/gprs/gprs_bssgp.c b/openbsc/src/gprs/gprs_bssgp.c
index f27e3a7e..0ec873ca 100644
--- a/openbsc/src/gprs/gprs_bssgp.c
+++ b/openbsc/src/gprs/gprs_bssgp.c
@@ -734,7 +734,7 @@ int gprs_bssgp_tx_dl_ud(struct msgb *msg, struct sgsn_mm_ctx *mmctx)
llc_pdu_tlv[1] = msg_len >> 8;
llc_pdu_tlv[2] = msg_len & 0xff;
} else {
- llc_pdu_tlv[1] = msg_len & 0x3f;
+ llc_pdu_tlv[1] = msg_len & 0x7f;
llc_pdu_tlv[1] |= 0x80;
}