From 5d283b5c0fc7edaf4f851878e80f3b504c661e88 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 9 Jul 2010 19:04:56 +0200 Subject: minor fix for ap mode --- package/base-files/src/etc/network/if-pre-up.d/04-wireless | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/base-files/src/etc/network/if-pre-up.d/04-wireless') 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 } -- cgit v1.2.3