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]
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,