Improve handling of wpa_cli output

This commit is contained in:
billz
2022-12-29 06:27:32 +01:00
parent d76984517c
commit 43c9997f07
2 changed files with 7 additions and 11 deletions

View File

@@ -107,8 +107,7 @@ function DisplayDashboard(&$extraFooterScripts)
$wlanHasLink = false;
$matchesSSID[1] = 'None';
}
$connectedSSID = $matchesSSID[1];
$connectedSSID = str_replace('\x20', '', $matchesSSID[1]);
preg_match('/freq: (\d+)/i', $stdoutIwWRepSpaces, $matchesFrequency) || $matchesFrequency[1] = '';
$frequency = $matchesFrequency[1].' MHz';