aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2023-09-27 15:03:16 +0200
committerFelix Fietkau <nbd@nbd.name>2023-09-27 15:04:36 +0200
commit782341458c25edc4d4233bf70c950918380a0b97 (patch)
tree3dcfa041b076453da4d410b11534d7d586193dc1
parent849f0ea65c8fa99ce01ea87450daf628c2628a01 (diff)
downloadupstream-782341458c25edc4d4233bf70c950918380a0b97.tar.gz
upstream-782341458c25edc4d4233bf70c950918380a0b97.tar.bz2
upstream-782341458c25edc4d4233bf70c950918380a0b97.zip
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 0c43a48735959245f18d79a6e908d3b45cff0a94)
-rw-r--r--package/network/services/hostapd/files/wdev.uc2
1 files changed, 1 insertions, 1 deletions
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}`);