fixeria has submitted this change. (
https://gerrit.osmocom.org/c/osmocom-bb/+/28808 )
Change subject: trxcon: make trx_if_cmd_setfh() accept const *ma
......................................................................
trxcon: make trx_if_cmd_setfh() accept const *ma
Change-Id: Id80b59260a24ccf8458c15ae8e191524a86a839c
---
M src/host/trxcon/include/osmocom/bb/trxcon/trx_if.h
M src/host/trxcon/src/trx_if.c
2 files changed, 4 insertions(+), 4 deletions(-)
Approvals:
Jenkins Builder: Verified
pespin: Looks good to me, but someone else must approve
osmith: Looks good to me, but someone else must approve
fixeria: Looks good to me, approved
diff --git a/src/host/trxcon/include/osmocom/bb/trxcon/trx_if.h
b/src/host/trxcon/include/osmocom/bb/trxcon/trx_if.h
index 0e9c849..18d71cc 100644
--- a/src/host/trxcon/include/osmocom/bb/trxcon/trx_if.h
+++ b/src/host/trxcon/include/osmocom/bb/trxcon/trx_if.h
@@ -68,8 +68,8 @@
int trx_if_cmd_setslot(struct trx_instance *trx, uint8_t tn,
enum gsm_phys_chan_config pchan);
-int trx_if_cmd_setfh(struct trx_instance *trx, uint8_t hsn,
- uint8_t maio, uint16_t *ma, size_t ma_len);
+int trx_if_cmd_setfh(struct trx_instance *trx, uint8_t hsn, uint8_t maio,
+ const uint16_t *ma, size_t ma_len);
int trx_if_cmd_measure(struct trx_instance *trx,
uint16_t band_arfcn_start, uint16_t band_arfcn_stop);
diff --git a/src/host/trxcon/src/trx_if.c b/src/host/trxcon/src/trx_if.c
index 339173f..a9a6c96 100644
--- a/src/host/trxcon/src/trx_if.c
+++ b/src/host/trxcon/src/trx_if.c
@@ -428,8 +428,8 @@
* channel list is expected to be sorted in ascending order.
*/
-int trx_if_cmd_setfh(struct trx_instance *trx, uint8_t hsn,
- uint8_t maio, uint16_t *ma, size_t ma_len)
+int trx_if_cmd_setfh(struct trx_instance *trx, uint8_t hsn, uint8_t maio,
+ const uint16_t *ma, size_t ma_len)
{
/* Reserve some room for CMD SETFH <HSN> <MAIO> */
char ma_buf[TRXC_BUF_SIZE - 24];
--
To view, visit
https://gerrit.osmocom.org/c/osmocom-bb/+/28808
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Id80b59260a24ccf8458c15ae8e191524a86a839c
Gerrit-Change-Number: 28808
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged