mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-06-15 19:53:59 +02:00
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>
(cherry picked from commit 0c43a48735
)
This commit is contained in:
parent
849f0ea65c
commit
782341458c
|
@ -41,7 +41,7 @@ function iface_start(wdev)
|
|||
wdev_config[key] = wdev[key];
|
||||
if (!wdev_config.macaddr && wdev.mode != "monitor")
|
||||
wdev_config.macaddr = phydev.macaddr_next();
|
||||
wdev_create(phy, ifname, wdev);
|
||||
wdev_create(phy, ifname, wdev_config);
|
||||
system([ "ip", "link", "set", "dev", ifname, "up" ]);
|
||||
if (wdev.freq)
|
||||
system(`iw dev ${ifname} set freq ${wdev.freq} ${wdev.htmode}`);
|
||||
|
|
Loading…
Reference in New Issue
Block a user