wifi-scripts: fix mesh/sta setup with ucode scripts

Ensure that the code doesn't pass macaddr_base with the wrong type (null)
to the supplicant setup/start call.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2024-12-13 10:56:50 +01:00
parent a2f0cd35ac
commit b6c7d8a0d6

View File

@ -221,7 +221,7 @@ export function setup(config, data) {
config,
defer: true,
num_global_macaddr: data.config.num_global_macaddr,
macaddr_base: data.config.macaddr_base,
macaddr_base: data.config.macaddr_base ?? "",
});
if (ret)
@ -236,6 +236,6 @@ export function start(data) {
phy: data.phy,
radio: data.config.radio,
num_global_macaddr: data.config.num_global_macaddr,
macaddr_base: data.config.macaddr_base,
macaddr_base: data.config.macaddr_base ?? "",
});
};