From 228237784193702d43662d184f4c36dc89dc7c3f Mon Sep 17 00:00:00 2001 From: Tobias Waldvogel Date: Thu, 14 Aug 2025 19:33:02 +0200 Subject: [PATCH] wifi-scripts: Avoid syslog message variable data does not exist Initialize data to {} if null before calling mac80211.sh to avoid a confusing error message in the syslog. Fixes: https://github.com/openwrt/openwrt/issues/14010 Signed-off-by: Tobias Waldvogel Signed-off-by: Felix Fietkau [cosmetic change] --- .../config/wifi-scripts/files/lib/netifd/wireless-device.uc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/network/config/wifi-scripts/files/lib/netifd/wireless-device.uc b/package/network/config/wifi-scripts/files/lib/netifd/wireless-device.uc index 22f5ee54d9..950f10ed17 100644 --- a/package/network/config/wifi-scripts/files/lib/netifd/wireless-device.uc +++ b/package/network/config/wifi-scripts/files/lib/netifd/wireless-device.uc @@ -221,7 +221,7 @@ function __run_next_handler() wdev.dbg("run " + op); if (name != mlo_name) wdev_mlo_fixup(wdev.handler_config); - wdev.handler_config.data = wdev.handler_data[wdev.name]; + wdev.handler_config.data = wdev.handler_data[wdev.name] ?? {}; wdev_script_task = netifd.process({ cb: () => run_handler_cb(wdev, cb), dir: netifd.wireless.path, -- 2.30.2