hostapd: fix phy parameter in iface_update_supplicant_macaddr
authorFelix Fietkau <[email protected]>
Thu, 13 Nov 2025 12:02:43 +0000 (12:02 +0000)
committerFelix Fietkau <[email protected]>
Thu, 13 Nov 2025 12:02:55 +0000 (12:02 +0000)
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 (李峻宇) <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
package/network/services/hostapd/files/hostapd.uc

index 17c34003e85a34a5ca37a28fbefd5d6be3f92f13..7f8c55da70c296adf6b6a5fe4683def4904b605c 100644 (file)
@@ -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
        });