summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 660a90c3e..147736bdc 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