projects
/
openwrt
/
staging
/
hauke.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2c022c
)
Fix hostapd with open access point and per-device configuration, thanks sn9
author
Florian Fainelli
<florian@openwrt.org>
Sat, 23 Aug 2008 21:21:04 +0000
(21:21 +0000)
committer
Florian Fainelli
<florian@openwrt.org>
Sat, 23 Aug 2008 21:21:04 +0000
(21:21 +0000)
SVN-Revision: 12375
package/hostapd/files/hostapd.sh
patch
|
blob
|
history
diff --git
a/package/hostapd/files/hostapd.sh
b/package/hostapd/files/hostapd.sh
index 660a90c3efaed7b446ded279207a612285f22ded..147736bdc6b4fdc59a9d1bb2b5f6f3fde6431c27 100644
(file)
--- 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