mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-02-15 10:49:07 +01:00
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@mediatek.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
75791ea634
commit
e81936f5bc
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue