mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 20:00:39 +02:00
parse the a/g mode setting in /etc/config/wireless when setting up hostapd (instead of hardcoding it to g)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12673 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
f8e79eeb30
commit
f50d46ab20
@ -74,10 +74,17 @@ hostapd_setup_vif() {
|
||||
config_get ssid "$vif" ssid
|
||||
config_get device "$vif" device
|
||||
config_get channel "$device" channel
|
||||
config_get agmode "$device" agmode
|
||||
case "$agmode" in
|
||||
11a) agmode=a;;
|
||||
11b) agmode=b;;
|
||||
11g) agmode=g;;
|
||||
*) agmode=;;
|
||||
esac
|
||||
cat > /var/run/hostapd-$ifname.conf <<EOF
|
||||
driver=$driver
|
||||
interface=$ifname
|
||||
hw_mode=g
|
||||
hw_mode=${agmode:-g}
|
||||
channel=$channel
|
||||
${bridge:+bridge=$bridge}
|
||||
ssid=$ssid
|
||||
|
Loading…
Reference in New Issue
Block a user