diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2017-08-13 01:20:19 +0600 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2017-11-19 17:35:07 +0700 |
commit | 82b8c21b210535feaed98487f0df12f3acc2e46c (patch) | |
tree | 5091bd4bbdc5772a817c09ba321096e694497e13 /src/host | |
parent | 8e13093c88b8d8fd4e9751b9fe8695f86464d46e (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')
-rw-r--r-- | src/host/trxcon/l1ctl.c | 6 | ||||
-rw-r--r-- | src/host/trxcon/sched_lchan_xcch.c | 4 |
2 files changed, 3 insertions, 7 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); diff --git a/src/host/trxcon/sched_lchan_xcch.c b/src/host/trxcon/sched_lchan_xcch.c index afaacac7..62c44f9a 100644 --- a/src/host/trxcon/sched_lchan_xcch.c +++ b/src/host/trxcon/sched_lchan_xcch.c @@ -137,7 +137,6 @@ int tx_data_fn(struct trx_instance *trx, struct trx_ts *ts, { const struct trx_lchan_desc *lchan_desc; struct trx_ts_prim *prim; - struct l1ctl_info_ul *ul; ubit_t burst[GSM_BURST_LEN]; ubit_t *buffer, *offset; uint8_t *mask, *l2; @@ -161,8 +160,7 @@ int tx_data_fn(struct trx_instance *trx, struct trx_ts *ts, /* Get a message from TX queue */ prim = llist_entry(ts->tx_prims.next, struct trx_ts_prim, list); - ul = (struct l1ctl_info_ul *) prim->payload; - l2 = (uint8_t *) ul->payload; + l2 = (uint8_t *) prim->payload; /* Encode bursts */ rc = gsm0503_xcch_encode(buffer, l2); |