[openwrt/openwrt] hostapd: fix phy parameter in iface_update_supplicant_macaddr

LEDE Commits lede-commits at lists.infradead.org
Thu Nov 13 04:55:51 PST 2025


nbd pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/e81936f5bc140292833111d455df53e28c39da64

commit e81936f5bc140292833111d455df53e28c39da64
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Thu Nov 13 12:02:43 2025 +0000

    hostapd: fix phy parameter in iface_update_supplicant_macaddr
    
    The function was using phydev.name (e.g., "phy0.0") instead of
    phydev.phy (e.g., "phy0") when calling wpa_supplicant.phy_set_macaddr_list.
    This is inconsistent with all other wpa_supplicant ubus calls in the same
    file which correctly use phydev.phy.
    
    Reported-by: Michael-cy Lee (李峻宇) <Michael-cy.Lee at mediatek.com>
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 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 17c34003e8..7f8c55da70 100644
--- a/package/network/services/hostapd/files/hostapd.uc
+++ b/package/network/services/hostapd/files/hostapd.uc
@@ -177,7 +177,7 @@ function iface_update_supplicant_macaddr(phydev, config)
 	for (let bss in config.bss)
 		push(macaddr_list, bss.bssid);
 	ubus.defer("wpa_supplicant", "phy_set_macaddr_list", {
-		phy: phydev.name,
+		phy: phydev.phy,
 		radio: phydev.radio ?? -1,
 		macaddr: macaddr_list
 	});




More information about the lede-commits mailing list