projects
/
openwrt
/
staging
/
hauke.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff95f85
)
hostapd: fix mac address of interfaces created via wdev.uc
author
Felix Fietkau
<nbd@nbd.name>
Wed, 27 Sep 2023 13:03:16 +0000
(15:03 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Wed, 27 Sep 2023 13:04:25 +0000
(15:04 +0200)
Use the wdev config with the generated MAC address
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/services/hostapd/files/wdev.uc
patch
|
blob
|
history
diff --git
a/package/network/services/hostapd/files/wdev.uc
b/package/network/services/hostapd/files/wdev.uc
index 8a031b40b9ee2dde85b6251c42c38c4935057dec..cf438f7715fc678c060a5646ffd401040106ebe0 100644
(file)
--- 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}`);