From 543dc823ccdaf3179697541bb33fdfa8e0a02173 Mon Sep 17 00:00:00 2001 From: Alfredo Monclus Date: Sun, 8 Mar 2026 10:06:17 -0300 Subject: [PATCH] fix: network: update iface name on connect --- ks_includes/sdbus_nm.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ks_includes/sdbus_nm.py b/ks_includes/sdbus_nm.py index cd365516..106f4ffb 100644 --- a/ks_includes/sdbus_nm.py +++ b/ks_includes/sdbus_nm.py @@ -365,6 +365,14 @@ class SdbusNm: if target_connection := self.get_connection_path_by_ssid(ssid): self.popup(f"{ssid}\n{_('Starting WiFi Association')}", 1) try: + # Update the “interface‑name” + con = NetworkConnectionSettings(target_connection) + settings = con.get_settings() + + if ("802-11-wireless" in settings + and settings["802-11-wireless"].get("mode") == ("s", "infrastructure")): + settings["connection"]["interface-name"] = ("s", self.wlan_device.interface) + con.update(settings) active_connection = self.nm.activate_connection(target_connection) return target_connection except Exception as e: