mirror of
https://github.com/openwrt/openwrt.git
synced 2025-12-21 19:14:28 +04:00
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>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user