From b00d1add7584b017470e60489f44a0c0e553e93f Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Wed, 9 Jun 2010 21:13:13 +0200 Subject: [gprs] bssgp: Fix LLC PDU length encoding in BSSGP. Signed-off-by: Sylvain Munaut --- openbsc/src/gprs/gprs_bssgp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3