summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Santos <jrsantos@jonathanrsantos.com>2011-06-10 15:38:49 -0400
committerHarald Welte <laforge@gnumonks.org>2011-10-16 21:36:24 +0200
commitb551e46948c1471008e7ec3ad17b60340894bc41 (patch)
tree0258bec73047a9100151f0af861e46e8cdc792d0
parent858736ae8e5f52253775dd1bf7704a44bb62b6cb (diff)
gprs: Fix bug where SGSN was sending all LLC UI frames with N(U)=0
Convert foreign TLLIs to local TLLIs for storage in LLME context.
-rw-r--r--openbsc/src/gprs/gprs_llc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/gprs/gprs_llc.c b/openbsc/src/gprs/gprs_llc.c
index 77fa879ca..8e13c6157 100644
--- a/openbsc/src/gprs/gprs_llc.c
+++ b/openbsc/src/gprs/gprs_llc.c
@@ -342,7 +342,7 @@ int gprs_llc_tx_ui(struct msgb *msg, uint8_t sapi, int command,
struct gprs_llc_llme *llme;
LOGP(DLLC, LOGL_ERROR, "LLC TX: unknown TLLI 0x%08x, "
"creating LLME on the fly\n", msgb_tlli(msg));
- llme = llme_alloc(msgb_tlli(msg));
+ llme = llme_alloc(tlli_foreign2local(msgb_tlli(msg)));
lle = &llme->lle[sapi];
}