summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau2025-09-29 10:35:52 +0000
committerFelix Fietkau2025-09-29 10:37:02 +0000
commit973cfbadf53519d351baf84858b02582a2f4fbfd (patch)
treeb240a37ffe7afb5c9ff0e0d390b78567074d10ca
parente0a0d69a63ac4da57e941718806deb15ff0ca4a9 (diff)
downloadopenwrt-973cfbadf53519d351baf84858b02582a2f4fbfd.tar.gz
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 <nbd@nbd.name>
-rw-r--r--package/network/services/hostapd/files/hostapd.uc2
1 files changed, 1 insertions, 1 deletions
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)