Minor: comments + rename method

This commit is contained in:
billz
2025-09-26 23:29:24 -07:00
parent f1dc6b3078
commit 417f803411

View File

@@ -313,7 +313,7 @@ class WiFiManager
*/
public function setKnownStationsWPA($networks)
{
$this->ensureWpaSupplicantConf();
$this->ensureWpaSupplicant();
$iface = escapeshellarg($_SESSION['wifi_client_interface']);
$output = shell_exec("sudo wpa_cli -i $iface list_networks 2>&1");
@@ -483,12 +483,11 @@ class WiFiManager
*
* @throws \RuntimeException on permission or write failure
*/
public function ensureWpaSupplicantConf(): void
public function ensureWpaSupplicant(): void
{
$confPath = '/etc/wpa_supplicant/wpa_supplicant.conf';
if (file_exists($confPath)) {
// Already exists, do nothing
return;
}