mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-02-10 05:42:52 +01:00
wpa_supplicant: fix MAC address assignment for MLD interfaces
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>
This commit is contained in:
parent
d619ff6872
commit
2fb3cbda58
1 changed files with 2 additions and 0 deletions
|
|
@ -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}`);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue