From: Felix Fietkau Date: Mon, 29 Sep 2025 10:35:52 +0000 (+0200) Subject: hostapd: fix condition for re-creating MLD interfaces X-Git-Tag: v25.12.0-rc1~1135 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=973cfbadf53519d351baf84858b02582a2f4fbfd;p=thirdparty%2Fopenwrt.git hostapd: fix condition for re-creating MLD interfaces Check the correct interface in order to avoid tearing down an existing itnerface. Signed-off-by: Felix Fietkau --- diff --git a/package/network/services/hostapd/files/hostapd.uc b/package/network/services/hostapd/files/hostapd.uc index c4ebfdd9a13..30be818c693 100644 --- a/package/network/services/hostapd/files/hostapd.uc +++ b/package/network/services/hostapd/files/hostapd.uc @@ -778,7 +778,7 @@ function bss_check_mld(phydev, iface_name, bss) bss.mld_bssid = mld_data.macaddr; mld_data.iface[iface_name] = true; - if (!access('/sys/class/net/' + iface_name, 'x')) + if (!access('/sys/class/net/' + bss.ifname, 'x')) mld_data.has_wdev = false; if (mld_data.has_wdev)