From 2104f620bcbf8301aabecdea5b6f71a39afeebe4 Mon Sep 17 00:00:00 2001 From: D9ping Date: Fri, 12 Oct 2018 13:05:15 +0200 Subject: [PATCH] Allow creating not secured wi-fi. Fixes #208 Signed-off-by: D9ping --- includes/hostapd.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/hostapd.php b/includes/hostapd.php index c162765d4..d85d2184a 100755 --- a/includes/hostapd.php +++ b/includes/hostapd.php @@ -14,7 +14,7 @@ function DisplayHostAPDConfig() $arrConfig = array(); $arr80211Standard = array('a','b','g','n'); - $arrSecurity = array( 1 => 'WPA', 2 => 'WPA2',3=> 'WPA+WPA2'); + $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); @@ -139,7 +139,7 @@ function DisplayHostAPDConfig() $selectablechannels = range(1, 14); } } - SelectorOptions('channel', $selectablechannels, intval($arrConfig['channel']), 'cbxchannel') ?> + SelectorOptions('channel', $selectablechannels, intval($arrConfig['channel']), 'cbxchannel'); ?>