Vadim Yanitskiy has uploaded this change for review. ( 
https://gerrit.osmocom.org/12613


Change subject: trxcon/l1ctl.c: accept band_arfcn as a parameter
......................................................................

trxcon/l1ctl.c: accept band_arfcn as a parameter

Change-Id: I74a23c73b03bad822272b9cfe76c2501666912b7
---
M src/host/trxcon/l1ctl.c
M src/host/trxcon/l1ctl.h
M src/host/trxcon/sched_lchan_rach.c
3 files changed, 6 insertions(+), 4 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/13/12613/1

diff --git a/src/host/trxcon/l1ctl.c b/src/host/trxcon/l1ctl.c
index 8f0be48..40c5171 100644
--- a/src/host/trxcon/l1ctl.c
+++ b/src/host/trxcon/l1ctl.c
@@ -222,7 +222,8 @@
        return l1ctl_link_send(l1l, msg);
 }

-int l1ctl_tx_rach_conf(struct l1ctl_link *l1l, uint32_t fn)
+int l1ctl_tx_rach_conf(struct l1ctl_link *l1l,
+       uint16_t band_arfcn, uint32_t fn)
 {
        struct l1ctl_info_dl *dl;
        struct msgb *msg;
@@ -236,7 +237,7 @@
        dl = (struct l1ctl_info_dl *) msgb_put(msg, len);

        memset(dl, 0x00, len);
-       dl->band_arfcn = htons(l1l->trx->band_arfcn);
+       dl->band_arfcn = htons(band_arfcn);
        dl->frame_nr = htonl(fn);

        return l1ctl_link_send(l1l, msg);
diff --git a/src/host/trxcon/l1ctl.h b/src/host/trxcon/l1ctl.h
index 76b49e3..ebf9b2d 100644
--- a/src/host/trxcon/l1ctl.h
+++ b/src/host/trxcon/l1ctl.h
@@ -23,4 +23,5 @@
        uint8_t *l2, size_t l2_len, bool traffic);
 int l1ctl_tx_dt_conf(struct l1ctl_link *l1l,
        struct l1ctl_info_dl *data, bool traffic);
-int l1ctl_tx_rach_conf(struct l1ctl_link *l1l, uint32_t fn);
+int l1ctl_tx_rach_conf(struct l1ctl_link *l1l,
+       uint16_t band_arfcn, uint32_t fn);
diff --git a/src/host/trxcon/sched_lchan_rach.c 
b/src/host/trxcon/sched_lchan_rach.c
index ecf5df8..ee5faa0 100644
--- a/src/host/trxcon/sched_lchan_rach.c
+++ b/src/host/trxcon/sched_lchan_rach.c
@@ -113,7 +113,7 @@
        }

        /* Confirm RACH request */
-       l1ctl_tx_rach_conf(trx->l1l, fn);
+       l1ctl_tx_rach_conf(trx->l1l, trx->band_arfcn, fn);

        /* Forget processed primitive */
        sched_prim_drop(lchan);

--
To view, visit https://gerrit.osmocom.org/12613
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I74a23c73b03bad822272b9cfe76c2501666912b7
Gerrit-Change-Number: 12613
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilira...@gmail.com>

Reply via email to