laforge has submitted this change. (
https://gerrit.osmocom.org/c/osmocom-bb/+/34496?usp=email )
(
9 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
)Change subject: ASCI: Show NCH position in VTY together with system information
......................................................................
ASCI: Show NCH position in VTY together with system information
Related: OS#5364
Change-Id: I5e0a9d469eb70608502dca881808621fa153b666
---
M src/host/layer23/src/common/sysinfo.c
1 file changed, 22 insertions(+), 0 deletions(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
pespin: Looks good to me, but someone else must approve
diff --git a/src/host/layer23/src/common/sysinfo.c
b/src/host/layer23/src/common/sysinfo.c
index 700accd..7af1d93 100644
--- a/src/host/layer23/src/common/sysinfo.c
+++ b/src/host/layer23/src/common/sysinfo.c
@@ -23,6 +23,7 @@
#include <osmocom/core/utils.h>
#include <osmocom/core/bitvec.h>
#include <osmocom/gsm/gsm48.h>
+#include <osmocom/gsm/gsm48_rest_octets.h>
#include <osmocom/gprs/rlcmac/csn1_defs.h>
@@ -72,6 +73,7 @@
char buffer[82];
int i, j, k, index;
int refer_pcs = gsm_refer_pcs(arfcn, s);
+ int rc;
/* available sysinfos */
print(priv, "ARFCN = %s channels 512+ refer to %s\n",
@@ -282,6 +284,16 @@
print(priv, " BS-PA-MFMS = %d Attachment = %s\n",
s->pag_mf_periods, (s->att_allowed) ? "allowed" : "denied");
print(priv, "BS-AG_BLKS_RES = %d ", s->bs_ag_blks_res);
+ if (!s->nch)
+ print(priv, "NCH not available ");
+ else {
+ uint8_t num_blocks, first_block;
+ rc = osmo_gsm48_si1ro_nch_pos_decode(s->nch_position, &num_blocks,
&first_block);
+ if (rc < 0)
+ print(priv, "NCH Position invalid ");
+ else
+ print(priv, "NCH Position %u / %u blocks ", first_block, num_blocks);
+ }
if (s->t3212)
print(priv, "T3212 = %d sec.\n", s->t3212);
else
--
To view, visit
https://gerrit.osmocom.org/c/osmocom-bb/+/34496?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I5e0a9d469eb70608502dca881808621fa153b666
Gerrit-Change-Number: 34496
Gerrit-PatchSet: 16
Gerrit-Owner: jolly <andreas(a)eversberg.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged