From 9d1659b97bc66ba2cd3932e06fee1444ff5af66f Mon Sep 17 00:00:00 2001 From: billz Date: Tue, 9 Jun 2020 15:44:21 +0100 Subject: [PATCH] Document getWifiInterface --- includes/wifi_functions.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/wifi_functions.php b/includes/wifi_functions.php index afd81e60..3ab2db93 100755 --- a/includes/wifi_functions.php +++ b/includes/wifi_functions.php @@ -133,6 +133,13 @@ function sortNetworksByRSSI(&$networks) } } +/* + * Determines the configured wireless AP interface + * + * If not saved in /etc/raspap/hostapd.ini, check for a second + * wireless interface with iw dev. Fallback to the constant + * value defined in config.php + */ function getWifiInterface() { if (empty($_SESSION['ap_interface'])) {