From a7ea6ef39882d46788a715089538bcc0d65a3a7f Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 24 Feb 2023 15:06:56 +0100 Subject: [PATCH] ucentral-event: fix ubus notification and band detect Signed-off-by: John Crispin --- feeds/ucentral/ucentral-event/files/ucentral-event | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/feeds/ucentral/ucentral-event/files/ucentral-event b/feeds/ucentral/ucentral-event/files/ucentral-event index 6593c4d9e..ea7559ea8 100755 --- a/feeds/ucentral/ucentral-event/files/ucentral-event +++ b/feeds/ucentral/ucentral-event/files/ucentral-event @@ -137,14 +137,14 @@ function hapd_subscriber_notify_cb(notify) { }); } if (notify.type == 'probe') - return true; + return 0; let handler = handlers[notify.type]; if (!handler) - return true; + return 0; let hapd = hostapd[notify.data.ifname]; handler(notify, hapd); - return true; + return 0; } function hostapd_event(ifname, type) { @@ -167,7 +167,7 @@ function hostapd_add(path, obj) { hostapd[ifname].band = '2G'; else if (hostapd[ifname].op_class >= 115 && - hostapd[ifname].op_class <= 127) + hostapd[ifname].op_class <= 130) hostapd[ifname].band = '5G'; else if (hostapd[ifname].op_class >= 133 &&