From b10ee7a98f9620c3c689d1afd435db7a2a55a70a Mon Sep 17 00:00:00 2001 From: root Date: Thu, 1 Apr 2021 23:35:19 +0100 Subject: [PATCH] sort interface list for hostapd --- includes/hostapd.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/hostapd.php b/includes/hostapd.php index 43e04bd1..e364dd15 100755 --- a/includes/hostapd.php +++ b/includes/hostapd.php @@ -27,6 +27,8 @@ function DisplayHostAPDConfig() $arrEncType = array('TKIP' => 'TKIP', 'CCMP' => 'CCMP', 'TKIP CCMP' => 'TKIP+CCMP'); $managedModeEnabled = false; exec("ip -o link show | awk -F': ' '{print $2}'", $interfaces); + sort($interfaces); + exec("iw reg get | awk '/country / { sub(/:/,\"\",$2); print $2 }'", $country_code); if (!RASPI_MONITOR_ENABLED) {