ratelimit: fix ratelimit with dynamic vlan

Fixes WIFI-13512

Signed-off-by: Arif Alam <arif.alam@netexperience.com>
This commit is contained in:
Arif Alam
2024-03-21 07:17:09 -04:00
parent 0412bf03eb
commit bcca38341a
2 changed files with 7 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ function qdisc_del(iface) {
}
function ifb_dev(iface) {
return "ifb-" + iface;
return "i-" + iface;
}
function ifb_add(iface, ifbdev) {

View File

@@ -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']) {