From 5f704ab7669d0211ba8c1e3a4cdc343773a1af85 Mon Sep 17 00:00:00 2001 From: Salvatore Coppola Date: Mon, 27 Nov 2023 15:10:24 +0100 Subject: [PATCH] Fixed network radio mode value passing in the old networking. --- .../org/eclipse/kura/web/client/ui/network/TabWirelessUi.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kura/org.eclipse.kura.web2/src/main/java/org/eclipse/kura/web/client/ui/network/TabWirelessUi.java b/kura/org.eclipse.kura.web2/src/main/java/org/eclipse/kura/web/client/ui/network/TabWirelessUi.java index aada0946ea4..9ace066d889 100644 --- a/kura/org.eclipse.kura.web2/src/main/java/org/eclipse/kura/web/client/ui/network/TabWirelessUi.java +++ b/kura/org.eclipse.kura.web2/src/main/java/org/eclipse/kura/web/client/ui/network/TabWirelessUi.java @@ -1734,7 +1734,8 @@ private GwtWifiConfig getGwtWifiConfig() { private GwtWifiRadioMode radioValueToRadioMode(String radioValue) { for (GwtWifiRadioMode mode : GwtWifiRadioMode.values()) { - if (mode.name().equals(radioValue)) { + String modeName = this.isNet2 ? mode.name() : MessageUtils.get(mode.name()); + if (modeName.equals(radioValue)) { return mode; } }