aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2008-08-23 21:21:04 +0000
committerFlorian Fainelli <florian@openwrt.org>2008-08-23 21:21:04 +0000
commit5586633102ebe7649db37d237ed22d1b67c59a98 (patch)
tree75c47614c4631ac263f682f08422ef84775a70d8 /package
parentec0d5251d189deef51d13f0822c04cce43c38ed0 (diff)
downloadupstream-5586633102ebe7649db37d237ed22d1b67c59a98.tar.gz
upstream-5586633102ebe7649db37d237ed22d1b67c59a98.tar.bz2
upstream-5586633102ebe7649db37d237ed22d1b67c59a98.zip
Fix hostapd with open access point and per-device configuration, thanks sn9
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12375 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/hostapd/files/hostapd.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh
index 660a90c3ef..147736bdc6 100644
--- a/package/hostapd/files/hostapd.sh
+++ b/package/hostapd/files/hostapd.sh
@@ -62,15 +62,19 @@ hostapd_setup_vif() {
append hostapd_cfg "wpa_gmk_rekey=640" "$N"
;;
*)
- return 0;
+ wpa=0
;;
esac
config_get ifname "$vif" ifname
config_get bridge "$vif" bridge
config_get ssid "$vif" ssid
+ config_get device "$vif" device
+ config_get channel "$device" channel
cat > /var/run/hostapd-$ifname.conf <<EOF
driver=$driver
interface=$ifname
+hw_mode=g
+channel=$channel
${bridge:+bridge=$bridge}
ssid=$ssid
debug=0