hostapd: fix mac address of interfaces created via wdev.uc

Use the wdev config with the generated MAC address

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2023-09-27 15:03:16 +02:00
parent ff95f859eb
commit 0c43a48735

View File

@ -41,7 +41,7 @@ function iface_start(wdev)
wdev_config[key] = wdev[key]; wdev_config[key] = wdev[key];
if (!wdev_config.macaddr && wdev.mode != "monitor") if (!wdev_config.macaddr && wdev.mode != "monitor")
wdev_config.macaddr = phydev.macaddr_next(); wdev_config.macaddr = phydev.macaddr_next();
wdev_create(phy, ifname, wdev); wdev_create(phy, ifname, wdev_config);
system([ "ip", "link", "set", "dev", ifname, "up" ]); system([ "ip", "link", "set", "dev", ifname, "up" ]);
if (wdev.freq) if (wdev.freq)
system(`iw dev ${ifname} set freq ${wdev.freq} ${wdev.htmode}`); system(`iw dev ${ifname} set freq ${wdev.freq} ${wdev.htmode}`);