From cd573c6df12e1fac76897c76418098384bbde39e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 28 Nov 2023 12:23:43 +0100 Subject: [PATCH] fix(web2): Fixed network radio mode value passing in the old networking. [backport release-5.4.0] (#5028) fix(web2): Fixed network radio mode value passing in the old networking. (#5026) Fixed network radio mode value passing in the old networking. (cherry picked from commit 3488f31f60891e9d51bce4fc9df902382eb5435f) Co-authored-by: Salvatore Coppola <83589980+salvatore-coppola@users.noreply.github.com> --- .../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; } }