mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Merge pull request #1528 from RaspAP/fix/hostapd-iface-check
Fix: Exec iwgetid with client iface session var
This commit is contained in:
commit
55508262de
@ -70,8 +70,8 @@ function DisplayHostAPDConfig()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
exec('cat '. RASPI_HOSTAPD_CONFIG, $hostapdconfig);
|
exec('cat '. RASPI_HOSTAPD_CONFIG, $hostapdconfig);
|
||||||
if (isset($interface)) {
|
if (isset($_SESSION['wifi_client_interface'])) {
|
||||||
exec('iwgetid '. $interface. ' -r', $wifiNetworkID);
|
exec('iwgetid '.$_SESSION['wifi_client_interface']. ' -r', $wifiNetworkID);
|
||||||
if (!empty($wifiNetworkID[0])) {
|
if (!empty($wifiNetworkID[0])) {
|
||||||
$managedModeEnabled = true;
|
$managedModeEnabled = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user