diff --git a/feeds/ucentral/ucentral-event/files/ucentral-event b/feeds/ucentral/ucentral-event/files/ucentral-event index ad1fe5f70..b42a02ab3 100755 --- a/feeds/ucentral/ucentral-event/files/ucentral-event +++ b/feeds/ucentral/ucentral-event/files/ucentral-event @@ -142,7 +142,7 @@ function freq2chan(freq) { * { "ifname": "wlan1", "freq": 5180, "bssid": "XX:XX:XX:XX:XX:XX" */ function handle_channel_switch(hapd, notify) { - if (!notify && !notify?.data && !notify.data?.freq) + if (!notify || !notify?.data || !notify.data?.freq) return; let ch = freq2chan(notify.data.freq);