From b6c7d8a0d60fddd162c77371e2500f485339e2c7 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 13 Dec 2024 10:56:50 +0100 Subject: [PATCH] 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 --- .../files-ucode/usr/share/ucode/wifi/supplicant.uc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/supplicant.uc b/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/supplicant.uc index c7bfeb6b9a..2942767f0b 100644 --- a/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/supplicant.uc +++ b/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/supplicant.uc @@ -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 ?? "", }); }; -- 2.30.2