arehbein has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-bts/+/31885 )


Change subject: PCU IF: Update NSE timer field
......................................................................

PCU IF: Update NSE timer field

Include additional octet for tsns-prov

Required change (osmo-bsc): Ie46ec5cb7095bc1dfe3effd0e76d6ccfd6bd2f3f

Related: OS#5335
Change-Id: I7385574ef4bd4529d2e7e3d2000b7a1551ef1fcb
---
M include/osmo-bts/pcuif_proto.h
M src/common/pcu_sock.c
2 files changed, 18 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/85/31885/1

diff --git a/include/osmo-bts/pcuif_proto.h b/include/osmo-bts/pcuif_proto.h
index 0fece48..061f0c5 100644
--- a/include/osmo-bts/pcuif_proto.h
+++ b/include/osmo-bts/pcuif_proto.h
@@ -140,6 +140,8 @@
        struct gsm_pcu_if_info_trx_ts ts[8];
 } __attribute__ ((packed));

+#define PCU_IF_NUM_NSE_TIMERS 8
+
 struct gsm_pcu_if_info_ind {
        uint32_t        version;
        uint32_t        flags;
@@ -151,7 +153,7 @@
        uint16_t        lac, rac;
        /* NSE */
        uint16_t        nsei;
-       uint8_t         nse_timer[7];
+       uint8_t         nse_timer[PCU_IF_NUM_NSE_TIMERS];
        uint8_t         cell_timer[11];
        /* cell */
        uint16_t        cell_id;
diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c
index 45da3e4..9fcd8f0 100644
--- a/src/common/pcu_sock.c
+++ b/src/common/pcu_sock.c
@@ -271,7 +271,7 @@

        /* NSE */
        info_ind->nsei = bts->gprs.nse.nsei;
-       memcpy(info_ind->nse_timer, bts->gprs.nse.timer, 7);
+       memcpy(info_ind->nse_timer, bts->gprs.nse.timer, PCU_IF_NUM_NSE_TIMERS);
        memcpy(info_ind->cell_timer, bts->gprs.cell.timer, 11);

        /* cell attributes */

--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/31885
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I7385574ef4bd4529d2e7e3d2000b7a1551ef1fcb
Gerrit-Change-Number: 31885
Gerrit-PatchSet: 1
Gerrit-Owner: arehbein <arehb...@sysmocom.de>
Gerrit-MessageType: newchange

Reply via email to