projects
/
openwrt
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d619ff6
)
wpa_supplicant: fix MAC address assignment for MLD interfaces
author
Felix Fietkau
<nbd@nbd.name>
Thu, 13 Nov 2025 05:14:35 +0000
(
05:14
+0000)
committer
Felix Fietkau
<nbd@nbd.name>
Thu, 13 Nov 2025 11:56:39 +0000
(11:56 +0000)
Assign the address at wdev create time, similar to legacy interfaces.
Reported-by: Michael-cy Lee (李峻宇) <Michael-cy.Lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/services/hostapd/files/wpa_supplicant.uc
patch
|
blob
|
history
diff --git
a/package/network/services/hostapd/files/wpa_supplicant.uc
b/package/network/services/hostapd/files/wpa_supplicant.uc
index 94a0c533dc01a056d2893303de90cd8a6a9504d1..c7da3bc1c4f30a1ca61b84e891112fc5db5a7630 100644
(file)
--- a/
package/network/services/hostapd/files/wpa_supplicant.uc
+++ b/
package/network/services/hostapd/files/wpa_supplicant.uc
@@
-179,6
+179,8
@@
function mld_add(data, phy_list)
}
let wdev_config = { ...data.config, radio_mask: data.radio_mask };
+ if (!wdev_config.macaddr)
+ wdev_config.macaddr = phydev.macaddr_next();
let ret = phydev.wdev_add(name, wdev_config);
if (ret)
wpas.printf(`Failed to create device ${name}: ${ret}`);