From f2ff800a4d8e83566fa525095c2033924b847b5d Mon Sep 17 00:00:00 2001 From: "Andreas.Eversberg" Date: Wed, 13 Oct 2010 18:23:20 +0000 Subject: [layer23] Give ARFCN together with "show states " --- src/host/layer23/src/mobile/vty_interface.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/host') diff --git a/src/host/layer23/src/mobile/vty_interface.c b/src/host/layer23/src/mobile/vty_interface.c index affbe15c..e35a09f3 100644 --- a/src/host/layer23/src/mobile/vty_interface.c +++ b/src/host/layer23/src/mobile/vty_interface.c @@ -163,8 +163,11 @@ static void gsm_states_dump(struct osmocom_ms *ms, struct vty *vty) else vty_out(vty, " manual network selection: %s%s", plmn_m_state_names[ms->plmn.state], VTY_NEWLINE); - vty_out(vty, " cell selection: %s%s", - cs_state_names[ms->cellsel.state], VTY_NEWLINE); + vty_out(vty, " cell selection: %s", + cs_state_names[ms->cellsel.state]); + if (ms->rrlayer.state == GSM48_RR_ST_IDLE && ms->cellsel.selected) + vty_out(vty, " (ARFCN %d)", ms->cellsel.sel_arfcn); + vty_out(vty, "%s", VTY_NEWLINE); vty_out(vty, " radio ressource layer: %s%s", gsm48_rr_state_names[ms->rrlayer.state], VTY_NEWLINE); vty_out(vty, " mobility management layer: %s", -- cgit v1.2.3