summaryrefslogtreecommitdiffstats
path: root/src/host/gsm48-andreas
diff options
context:
space:
mode:
authorAndreas Eversberg2010-04-07 08:02:00 +0200
committerAndreas Eversberg2010-04-07 19:34:45 +0200
commitb9f5195b5463fd8ca7d77e72ec8018c411126a6a (patch)
tree6caff45c43a17baf63e5d522bfa75974d2e4aad2 /src/host/gsm48-andreas
parentlayer1: bsic should be uint8_t, not uint32_t (diff)
downloadosmocom-b9f5195b5463fd8ca7d77e72ec8018c411126a6a.tar.gz
osmocom-b9f5195b5463fd8ca7d77e72ec8018c411126a6a.tar.xz
osmocom-b9f5195b5463fd8ca7d77e72ec8018c411126a6a.zip
Added queue to messages from RSL to RR.
Diffstat (limited to 'src/host/gsm48-andreas')
-rw-r--r--src/host/gsm48-andreas/gsm48_rr.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/host/gsm48-andreas/gsm48_rr.c b/src/host/gsm48-andreas/gsm48_rr.c
index 1f3cf50..f36094b 100644
--- a/src/host/gsm48-andreas/gsm48_rr.c
+++ b/src/host/gsm48-andreas/gsm48_rr.c
@@ -154,7 +154,13 @@ todo: chan_nr and link_id, why transparent?:
return rslms_recvmsg(msg, ms);
}
-#if 0
+/* enqueue messages (RSL-SAP) */
+static int rslms_rx_rll(struct msgb *msg, struct osmocom_ms *ms)
+ struct gsm_rrlayer *rr = &ms->rrlayer;
+
+ msgb_enqueue(&rr->rsl_upqueue, msg);
+}
+
/* dequeue messages (RSL-SAP) */
int gsm48_rsl_dequeue(struct osmocom_ms *ms)
{
@@ -170,7 +176,6 @@ int gsm48_rsl_dequeue(struct osmocom_ms *ms)
return work;
}
-#endif
/*
* timers handling
@@ -2828,8 +2833,7 @@ static struct dldatastate {
#define DLDATASLLEN \
(sizeof(dldatastatelist) / sizeof(struct dldatastate))
-static int rslms_rx_rll(struct msgb *msg, struct osmocom_ms *ms)
-//static int gsm48_rcv_rsl(struct osmocom_ms *ms, struct msgb *msg)
+static int gsm48_rcv_rsl(struct osmocom_ms *ms, struct msgb *msg)
{
struct gsm_rrlayer *rr = &ms->rrlayer;
struct abis_rsl_rll_hdr *rllh = msgb_l2(msg);