diff options
| author | Tobias Waldvogel | 2025-08-14 17:33:02 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2025-08-14 18:40:31 +0000 |
| commit | 228237784193702d43662d184f4c36dc89dc7c3f (patch) | |
| tree | b7dbcdbed3fe6cec2152c0583dd8fe2bd3787314 | |
| parent | 3ce8442576d6305b21cb9c1a587ca94f0fe8c070 (diff) | |
| download | openwrt-228237784193702d43662d184f4c36dc89dc7c3f.tar.gz | |
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@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [cosmetic change]
| -rw-r--r-- | package/network/config/wifi-scripts/files/lib/netifd/wireless-device.uc | 2 |
1 files changed, 1 insertions, 1 deletions
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, |