From bbac9a88022c3c44b134791d3b9659c206f3855c Mon Sep 17 00:00:00 2001 From: juliovegap <4875691+juliovegap@users.noreply.github.com> Date: Mon, 17 Feb 2025 20:20:13 +0100 Subject: [PATCH] Bug #1762 New versions of 'iw phy#0 info' provides frequencies output with decimals #1762. IW Parser patched to handle this new output format --- src/RaspAP/Parsers/IwParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RaspAP/Parsers/IwParser.php b/src/RaspAP/Parsers/IwParser.php index a73a8f38..7c0579a3 100644 --- a/src/RaspAP/Parsers/IwParser.php +++ b/src/RaspAP/Parsers/IwParser.php @@ -47,7 +47,7 @@ class IwParser "(no IR)" ]; $excluded_pattern = implode('|', array_map('preg_quote', $excluded)); - $pattern = '/\*\s+(\d+)\s+MHz \[(\d+)\] \(([\d.]+) dBm\)\s(?!' .$excluded_pattern. ')/'; + $pattern = '/\*\s+([\d.]+)\s+MHz \[(\d+)\] \(([\d.]+) dBm\)\s(?!' .$excluded_pattern. ')/'; $supportedFrequencies = []; // Match iw_output containing supported frequencies