summaryrefslogtreecommitdiff
path: root/package/base-files/src/etc/network
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/src/etc/network')
-rwxr-xr-xpackage/base-files/src/etc/network/if-pre-up.d/04-wireless2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/src/etc/network/if-pre-up.d/04-wireless b/package/base-files/src/etc/network/if-pre-up.d/04-wireless
index 8095c82eb..78442d8ae 100755
--- a/package/base-files/src/etc/network/if-pre-up.d/04-wireless
+++ b/package/base-files/src/etc/network/if-pre-up.d/04-wireless
@@ -46,7 +46,7 @@ case "$IF_WIRELESS_MODE" in
echo "channel=$IF_WIRELESS_CHANNEL" >> /tmp/hostapd.conf
echo "hw_mode=$IF_WIRELESS_HWMODE" >> /tmp/hostapd.conf
echo "auth_algs=$sec" >> /tmp/hostapd.conf
- [ $wpa -eq 0 ] && {
+ [ $wpa -eq 0 ] && [ $wpa1 -eq 0 ] && [ $wpa2 -eq 0 ] && {
logger -t hostap "using no security mechanism"
echo "wpa=0" >> /tmp/hostapd.conf
}