diff --git a/esp-link/cgiwifi.c b/esp-link/cgiwifi.c
index bb170ff..8c6b33e 100644
--- a/esp-link/cgiwifi.c
+++ b/esp-link/cgiwifi.c
@@ -705,11 +705,6 @@ static char *wifiWarn[] = { 0,
"Switch to STA+AP mode",
"Switch to STA+AP mode",
"Switch to STA mode",
-};
-
-static char *apWifiWarn[] = { 0,
- "Switch to STA+AP mode",
- "Switch to STA+AP mode",
"Switch to AP mode",
};
@@ -743,7 +738,8 @@ int ICACHE_FLASH_ATTR printWifiInfo(char *buff) {
int p = wifi_get_phy_mode();
char *phy = wifiPhy[p&3];
char *warn = wifiWarn[op];
- char *apwarn = apWifiWarn[op];
+ if (op == 3) op = 4; // Done to use only one set of warnings
+ char *apwarn = wifiWarn[op];
char *apauth = apAuthMode[apconf.authmode];
sint8 rssi = wifi_station_get_rssi();
if (rssi > 0) rssi = 0;