From 973cfbadf53519d351baf84858b02582a2f4fbfd Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 29 Sep 2025 12:35:52 +0200 Subject: [PATCH] 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 --- package/network/services/hostapd/files/hostapd.uc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/network/services/hostapd/files/hostapd.uc b/package/network/services/hostapd/files/hostapd.uc index c4ebfdd9a1..30be818c69 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) -- 2.30.2