summaryrefslogtreecommitdiffstats
path: root/src/host/trxcon/l1ctl.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-08-13 01:20:19 +0600
committerVadim Yanitskiy <axilirator@gmail.com>2017-11-19 17:35:07 +0700
commit82b8c21b210535feaed98487f0df12f3acc2e46c (patch)
tree5091bd4bbdc5772a817c09ba321096e694497e13 /src/host/trxcon/l1ctl.c
parent8e13093c88b8d8fd4e9751b9fe8695f86464d46e (diff)
host/trxcon/l1ctl.c: don't fill l1ctl_info_ul into a primitive
The UL frame header isn't used by lchan handlers. Change-Id: Ia1c63b6f17c3802b29f54299da1151a39edf3a03
Diffstat (limited to 'src/host/trxcon/l1ctl.c')
-rw-r--r--src/host/trxcon/l1ctl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/host/trxcon/l1ctl.c b/src/host/trxcon/l1ctl.c
index 8f968909..f193a7a5 100644
--- a/src/host/trxcon/l1ctl.c
+++ b/src/host/trxcon/l1ctl.c
@@ -645,10 +645,8 @@ static int l1ctl_rx_data_req(struct l1ctl_link *l1l, struct msgb *msg)
/* Set logical channel of primitive */
prim->chan = lchan_type;
- /* Fill in both UL info and payload */
- len = sizeof(struct l1ctl_info_ul);
- memcpy(prim->payload, ul, len);
- memcpy(prim->payload + len, data_ind, 23);
+ /* Fill in the payload */
+ memcpy(prim->payload, data_ind, 23);
/* Add to TS queue */
llist_add_tail(&prim->list, &ts->tx_prims);