From cffcac0c52d350702628c4c910803ca91a94a5c2 Mon Sep 17 00:00:00 2001 From: billz Date: Sat, 24 Feb 2024 10:35:35 +0100 Subject: [PATCH] Exec iwgetid w/ client iface session var --- includes/hostapd.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/hostapd.php b/includes/hostapd.php index 3ca11356..1a016303 100755 --- a/includes/hostapd.php +++ b/includes/hostapd.php @@ -70,8 +70,8 @@ function DisplayHostAPDConfig() } } exec('cat '. RASPI_HOSTAPD_CONFIG, $hostapdconfig); - if (isset($interface)) { - exec('iwgetid '. $interface. ' -r', $wifiNetworkID); + if (isset($_SESSION['wifi_client_interface'])) { + exec('iwgetid '.$_SESSION['wifi_client_interface']. ' -r', $wifiNetworkID); if (!empty($wifiNetworkID[0])) { $managedModeEnabled = true; }