mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-07-12 00:47:40 +02:00
Bug #1762
New versions of 'iw phy#0 info' provides frequencies output with decimals #1762. IW Parser patched to handle this new output format
This commit is contained in:
parent
867a46bee9
commit
bbac9a8802
@ -47,7 +47,7 @@ class IwParser
|
|||||||
"(no IR)"
|
"(no IR)"
|
||||||
];
|
];
|
||||||
$excluded_pattern = implode('|', array_map('preg_quote', $excluded));
|
$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 = [];
|
$supportedFrequencies = [];
|
||||||
|
|
||||||
// Match iw_output containing supported frequencies
|
// Match iw_output containing supported frequencies
|
||||||
|
Loading…
x
Reference in New Issue
Block a user