[openwrt/openwrt] hostapd: fix mac address of interfaces created via wdev.uc
LEDE Commits
lede-commits at lists.infradead.org
Wed Sep 27 06:04:49 PDT 2023
nbd pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/782341458c25edc4d4233bf70c950918380a0b97
commit 782341458c25edc4d4233bf70c950918380a0b97
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Wed Sep 27 15:03:16 2023 +0200
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 at nbd.name>
(cherry picked from commit 0c43a48735959245f18d79a6e908d3b45cff0a94)
---
package/network/services/hostapd/files/wdev.uc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/network/services/hostapd/files/wdev.uc b/package/network/services/hostapd/files/wdev.uc
index 8a031b40b9..cf438f7715 100644
--- a/package/network/services/hostapd/files/wdev.uc
+++ b/package/network/services/hostapd/files/wdev.uc
@@ -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}`);
More information about the lede-commits
mailing list