From 810bc501e1041edd48c9a5bcb17c5a2f5cc9c7fd Mon Sep 17 00:00:00 2001 From: Marek Kwaczynski Date: Tue, 22 Jul 2025 15:05:41 +0200 Subject: [PATCH] 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 --- feeds/ucentral/ratelimit/files/usr/bin/ratelimit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feeds/ucentral/ratelimit/files/usr/bin/ratelimit b/feeds/ucentral/ratelimit/files/usr/bin/ratelimit index b288a9c9d..abd18736c 100755 --- a/feeds/ucentral/ratelimit/files/usr/bin/ratelimit +++ b/feeds/ucentral/ratelimit/files/usr/bin/ratelimit @@ -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);