From: Tobias Waldvogel Date: Thu, 14 Aug 2025 17:33:02 +0000 (+0200) Subject: wifi-scripts: Avoid syslog message variable data does not exist X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=228237784193702d43662d184f4c36dc89dc7c3f;p=openwrt%2Fopenwrt.git 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] --- 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,