From: Felix Fietkau Date: Fri, 10 Jul 2026 12:46:58 +0000 (+0200) Subject: wifi-scripts: use the base phy name for config_get_macaddr_list X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06b3ef0ff5da4d791c962b5baf265f08c283cf26;p=thirdparty%2Fopenwrt.git wifi-scripts: use the base phy name for config_get_macaddr_list phydev.name is already radio-suffixed, and the hostapd handler re-applies the suffix, so on multi-radio phys the lookup missed and the returned MAC list was always empty, letting wdev.uc reuse a MAC hostapd had reserved for an AP BSS. Pass the base phy and radio index. Signed-off-by: Felix Fietkau --- diff --git a/package/network/config/wifi-scripts/files/usr/share/hostap/wdev.uc b/package/network/config/wifi-scripts/files/usr/share/hostap/wdev.uc index a4f9bf7b844..883aa2640ca 100644 --- a/package/network/config/wifi-scripts/files/usr/share/hostap/wdev.uc +++ b/package/network/config/wifi-scripts/files/usr/share/hostap/wdev.uc @@ -142,7 +142,7 @@ const commands = { drop_inactive(config.data); let ubus = libubus.connect(); - let data = ubus.call("hostapd", "config_get_macaddr_list", { phy: phydev.name, radio: phydev.radio ?? -1 }); + let data = ubus.call("hostapd", "config_get_macaddr_list", { phy: phydev.phy, radio: int(phydev.radio ?? -1) }); let macaddr_list = []; if (type(data) == "object" && data.macaddr) macaddr_list = data.macaddr;