mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-31 18:38:10 +00:00
ucentral-event: fix ubus notification and band detect
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -137,14 +137,14 @@ function hapd_subscriber_notify_cb(notify) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (notify.type == 'probe')
|
if (notify.type == 'probe')
|
||||||
return true;
|
return 0;
|
||||||
let handler = handlers[notify.type];
|
let handler = handlers[notify.type];
|
||||||
if (!handler)
|
if (!handler)
|
||||||
return true;
|
return 0;
|
||||||
let hapd = hostapd[notify.data.ifname];
|
let hapd = hostapd[notify.data.ifname];
|
||||||
handler(notify, hapd);
|
handler(notify, hapd);
|
||||||
|
|
||||||
return true;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
function hostapd_event(ifname, type) {
|
function hostapd_event(ifname, type) {
|
||||||
@@ -167,7 +167,7 @@ function hostapd_add(path, obj) {
|
|||||||
hostapd[ifname].band = '2G';
|
hostapd[ifname].band = '2G';
|
||||||
|
|
||||||
else if (hostapd[ifname].op_class >= 115 &&
|
else if (hostapd[ifname].op_class >= 115 &&
|
||||||
hostapd[ifname].op_class <= 127)
|
hostapd[ifname].op_class <= 130)
|
||||||
hostapd[ifname].band = '5G';
|
hostapd[ifname].band = '5G';
|
||||||
|
|
||||||
else if (hostapd[ifname].op_class >= 133 &&
|
else if (hostapd[ifname].op_class >= 133 &&
|
||||||
|
|||||||
Reference in New Issue
Block a user