summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-07-09 19:04:56 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-07-09 19:04:56 +0200
commit5d283b5c0fc7edaf4f851878e80f3b504c661e88 (patch)
tree5371be7b9889e15caf5beec9202f5218df64812e
parentdca285b52d68a6f44f8abbc5970878282228e1a4 (diff)
minor fix for ap mode
-rw-r--r--package/base-files/Makefile2
-rwxr-xr-xpackage/base-files/src/etc/network/if-pre-up.d/04-wireless2
2 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index 421f355c4..da179470a 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -6,7 +6,7 @@ include $(TOPDIR)/mk/rootfs.mk
PKG_NAME:= base-files
PKG_VERSION:= 1.0
-PKG_RELEASE:= 20
+PKG_RELEASE:= 21
PKG_SECTION:= base
PKG_DESCR:= basic filesystem structure and scripts
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
}