diff --git a/config/config.php b/config/config.php index faa08855..2c3c9e8a 100755 --- a/config/config.php +++ b/config/config.php @@ -4,7 +4,7 @@ define('RASPI_VERSION', '2.4.1'); define('RASPI_CONFIG', '/etc/raspap'); define('RASPI_CONFIG_NETWORKING', RASPI_CONFIG.'/networking'); define('RASPI_ADMIN_DETAILS', RASPI_CONFIG.'/raspap.auth'); -define('RASPI_WIFI_CLIENT_INTERFACE', 'wlan0'); +define('RASPI_WIFI_AP_INTERFACE', 'wlan0'); define('RASPI_CACHE_PATH', sys_get_temp_dir() . '/raspap'); // Constants for configuration file paths. diff --git a/includes/defaults.php b/includes/defaults.php index 4fd5b219..524960f5 100755 --- a/includes/defaults.php +++ b/includes/defaults.php @@ -8,7 +8,7 @@ $defaults = [ 'RASPI_VERSION' => '2.4.1', 'RASPI_CONFIG_NETWORKING' => RASPI_CONFIG.'/networking', 'RASPI_ADMIN_DETAILS' => RASPI_CONFIG.'/raspap.auth', - 'RASPI_WIFI_CLIENT_INTERFACE' => 'wlan0', + 'RASPI_WIFI_AP_INTERFACE' => 'wlan0', 'RASPI_CACHE_PATH' => sys_get_temp_dir() . '/raspap', // Constants for configuration file paths. diff --git a/includes/wifi_functions.php b/includes/wifi_functions.php index 9ad4cc40..afd81e60 100755 --- a/includes/wifi_functions.php +++ b/includes/wifi_functions.php @@ -143,7 +143,7 @@ function getWifiInterface() exec("iw dev | awk '$1==\"Interface\" && $2!=\"$iface\" {print $2}'",$iface2); $_SESSION['ap_interface'] = empty($iface2) ? $iface : trim($iface2[0]); } else { // fallback to default - $_SESSION['ap_interface'] = RASPI_WIFI_CLIENT_INTERFACE; + $_SESSION['ap_interface'] = RASPI_WIFI_AP_INTERFACE; } } }