diff --git a/monitor/monitor_ppsi.c b/monitor/monitor_ppsi.c
index 6734b3513b633bb5b26bf5ea7b5ac2659d37ce51..743a93b9fb7db09b4eb5115163d0af7fcd6576f3 100644
--- a/monitor/monitor_ppsi.c
+++ b/monitor/monitor_ppsi.c
@@ -18,6 +18,7 @@
 #include <pps_gen.h>
 #include <onewire.h>
 #include <util.h>
+#include "wrc_ptp.h"
 
 #define UI_REFRESH_PERIOD TICS_PER_SECOND	/* 1 sec */
 
@@ -63,16 +64,17 @@ void wrc_mon_gui(void)
 		minic_get_stats(&tx, &rx);
 		cprintf(C_GREY, "(RX: %d, TX: %d), mode: ", rx, tx);
 
-		/* FIXME: define HEXP_PORT_MODE_WR_MASTER/SLAVE somewhere
-		switch (ps.mode) {
-		case HEXP_PORT_MODE_WR_MASTER:
+		switch (ptp_mode) {
+		case WRC_MODE_GM:
+		case WRC_MODE_MASTER:
 			cprintf(C_WHITE, "WR Master  ");
 			break;
-		case HEXP_PORT_MODE_WR_SLAVE:
+		case WRC_MODE_SLAVE:
 			cprintf(C_WHITE, "WR Slave   ");
 			break;
+		default:
+			cprintf(C_RED, "WR Unknown   ");
 		}
-		*/
 
 		if (ps.is_locked)
 			cprintf(C_GREEN, "Locked  ");
diff --git a/wrc_ptp.h b/wrc_ptp.h
index b9045fb325812d21481bc2aa27a01771c4983491..27aa6bda53c866adba4288a477016eb8a438aefe 100644
--- a/wrc_ptp.h
+++ b/wrc_ptp.h
@@ -5,6 +5,7 @@
 #define WRC_MODE_GM 1
 #define WRC_MODE_MASTER 2
 #define WRC_MODE_SLAVE 3
+extern int ptp_mode;
 
 int wrc_ptp_init();
 int wrc_ptp_set_mode(int mode);
diff --git a/wrc_ptp_noposix.c b/wrc_ptp_noposix.c
index be1a827847d0e0181e42dc1cf3fbed029fe90344..b0ac1292b81c99b107c6f96b7f1b494fc5aaeeac 100644
--- a/wrc_ptp_noposix.c
+++ b/wrc_ptp_noposix.c
@@ -58,7 +58,8 @@ static RunTimeOpts rtOpts = {
 
 static PtpPortDS *ptpPortDS;
 static PtpClockDS ptpClockDS;
-static int ptp_enabled = 0, ptp_mode = WRC_MODE_UNKNOWN;
+int ptp_mode = WRC_MODE_UNKNOWN;
+static int ptp_enabled = 0;
 
 int wrc_ptp_init()
 {
diff --git a/wrc_ptp_ppsi.c b/wrc_ptp_ppsi.c
index e557d046956c750009eebacd1bdd54ba8a340f15..672dbfec6be791da64899e4c8f4753116d402138 100644
--- a/wrc_ptp_ppsi.c
+++ b/wrc_ptp_ppsi.c
@@ -16,13 +16,14 @@
 #include <ppsi/ppsi.h>
 #include <wr-constants.h>
 #include "syscon.h"
+#include "endpoint.h"
 #include "softpll_ng.h"
 #include "wrc_ptp.h"
 #include "pps_gen.h"
 #include "uart.h"
 
-static int ptp_enabled = 0, ptp_mode = WRC_MODE_UNKNOWN,
-	ptp_forced_stop = 0;
+int ptp_mode = WRC_MODE_UNKNOWN;
+static int ptp_enabled = 0, ptp_forced_stop = 0;
 struct pp_instance ppi_static; /* FIXME: no more static, because used in
 				   tests/measure_t24p.c */
 CONST_VERBOSITY int pp_diag_verbosity = CONFIG_PPSI_VERBOSITY;