mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 17:42:41 +00:00
ratelimit: fix rate limiting on WiFi-7 devices
Rate limiting was not applied on WiFi-7 devices because their hostapd interface names use the phy* prefix instead of wlan*. This patch extends the match pattern to include both wlan* and phy*. Fixes: WIFI-14884 Signed-off-by: Marek Kwaczynski <marek@shasta.cloud>
This commit is contained in:
committed by
John Crispin
parent
3001fa88fb
commit
810bc501e1
@@ -350,7 +350,7 @@ function run_service() {
|
||||
printf('-> reload\n');
|
||||
let list = uctx.list();
|
||||
for (let obj in list) {
|
||||
if (!wildcard(obj, 'hostapd.wlan*'))
|
||||
if (!wildcard(obj, 'hostapd.wlan*') && !wildcard(obj, 'hostapd.phy*'))
|
||||
continue;
|
||||
let iface = split(obj, '.')[1];
|
||||
let device = get_device(devices, req.args.device);
|
||||
|
||||
Reference in New Issue
Block a user