From b52f2900208d272349ba556056cf64e65c7e7bc0 Mon Sep 17 00:00:00 2001 From: glaszig Date: Thu, 1 Aug 2019 23:01:31 +0200 Subject: [PATCH] improved 802.11 standard select option labels in hostapd ui --- includes/hostapd.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/includes/hostapd.php b/includes/hostapd.php index 317642ab..b42f7147 100755 --- a/includes/hostapd.php +++ b/includes/hostapd.php @@ -11,7 +11,12 @@ function DisplayHostAPDConfig() $status = new StatusMessages(); $arrHostapdConf = parse_ini_file('/etc/raspap/hostapd.ini'); $arrConfig = array(); - $arr80211Standard = array('a','b','g','n'); + $arr80211Standard = [ + 'a' => '802.11a - 5 GHz', + 'b' => '802.11b - 2.4 GHz', + 'g' => '802.11g - 2.4 GHz', + 'n' => '802.11n - 2.4 GHz' + ]; $arrSecurity = array(1 => 'WPA', 2 => 'WPA2', 3 => 'WPA+WPA2', 'none' => _("None")); $arrEncType = array('TKIP' => 'TKIP', 'CCMP' => 'CCMP', 'TKIP CCMP' => 'TKIP+CCMP'); exec("ip -o link show | awk -F': ' '{print $2}'", $interfaces);