]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
hostapd: fix condition for re-creating MLD interfaces
authorFelix Fietkau <nbd@nbd.name>
Mon, 29 Sep 2025 10:35:52 +0000 (12:35 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 29 Sep 2025 10:37:02 +0000 (12:37 +0200)
Check the correct interface in order to avoid tearing down an existing
itnerface.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/services/hostapd/files/hostapd.uc

index c4ebfdd9a132d433f76de74163c4924084b1b528..30be818c693b1a1a5704477f02309e831b01b59e 100644 (file)
@@ -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)