Add include wifi_functions getWifiInterface()

This commit is contained in:
billz
2020-06-07 17:17:16 +01:00
parent a1940ae8f2
commit a6a92235f9
4 changed files with 10 additions and 15 deletions

View File

@@ -2,16 +2,9 @@
require_once 'includes/status_messages.php';
require_once 'app/lib/system.php';
require_once 'config.php';
require_once 'includes/wifi_functions.php';
if (empty($_SESSION['client_iface'])) {
$arrHostapdConf = parse_ini_file(RASPI_CONFIG.'/hostapd.ini');
if (isset($arrHostapdConf['WifiInterface'])) {
$_SESSION['client_iface'] = $arrHostapdConf['WifiInterface'];
} else { // fallback to default
$_SESSSION['client_iface'] = RASPI_WIFI_CLIENT_INTERFACE;
}
}
getWifiInterface();
/**
*