[openwrt/openwrt] wifi-scripts: Avoid syslog message variable data does not exist

LEDE Commits lede-commits at lists.infradead.org
Thu Aug 14 11:41:06 PDT 2025


nbd pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/228237784193702d43662d184f4c36dc89dc7c3f

commit 228237784193702d43662d184f4c36dc89dc7c3f
Author: Tobias Waldvogel <tobias.waldvogel at gmail.com>
AuthorDate: Thu Aug 14 19:33:02 2025 +0200

    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 <tobias.waldvogel at gmail.com>
    Signed-off-by: Felix Fietkau <nbd at nbd.name> [cosmetic change]
---
 package/network/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,




More information about the lede-commits mailing list