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:
Marek Kwaczynski
2025-07-22 15:05:41 +02:00
parent 3001fa88fb
commit 34402a79b7

View File

@@ -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);