mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-19 03:06:35 +00: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>
This commit is contained in:
parent
ff95f859eb
commit
0c43a48735
@ -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