mirror of
https://github.com/outbackdingo/wlan-ap.git
synced 2026-01-27 10:20:52 +00:00
ratelimit: fix ratelimit with dynamic vlan
Fixes WIFI-13512 Signed-off-by: Arif Alam <arif.alam@netexperience.com>
This commit is contained in:
@@ -37,7 +37,7 @@ function qdisc_del(iface) {
|
||||
}
|
||||
|
||||
function ifb_dev(iface) {
|
||||
return "ifb-" + iface;
|
||||
return "i-" + iface;
|
||||
}
|
||||
|
||||
function ifb_add(iface, ifbdev) {
|
||||
|
||||
@@ -145,7 +145,12 @@ handlers = {
|
||||
});
|
||||
if (ratelimit) {
|
||||
let msg = {
|
||||
device: hapd.ifname,
|
||||
device: (() => {
|
||||
if (('vlan' in notify.data) && notify.data.vlan != 0)
|
||||
return notify.data.ifname + "-v" + notify.data.vlan;
|
||||
else
|
||||
return notify.data.ifname;
|
||||
})(),
|
||||
address: notify.data.address,
|
||||
};
|
||||
if (notify.data['rate-limit']) {
|
||||
|
||||
Reference in New Issue
Block a user