[layer23] Give ARFCN together with "show states <MS_NAME>"
authorAndreas.Eversberg <jolly@eversberg.eu>
Wed, 13 Oct 2010 18:23:20 +0000 (18:23 +0000)
committerAndreas.Eversberg <jolly@eversberg.eu>
Wed, 13 Oct 2010 18:23:20 +0000 (18:23 +0000)
src/host/layer23/src/mobile/vty_interface.c

index affbe15..e35a09f 100644 (file)
@@ -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",